PC Review


Reply
Thread Tools Rate Thread

2 related re string formatting and function behavior.

 
 
TCEBob
Guest
Posts: n/a
 
      7th Sep 2004
1. It's a puzzlement: I entered the function
=CONCATENATE(H1," ",H2)
and that's exactly what I got in the cell -- the literal function, including
"=".
The cell is formatted General.
Moreover, if I insert a mistake:
=CONCATENATE (H1," ",H2)
^space
The syntax checker pops up and when I allow it to fix the function
The newly fixed function is identical to the original one. And it works!

This seems to be true of all functions, not just strings. I tried =Sum(1,2)
with the same outcome

2. (Easier I hope) I wish the above concatenation to include line feeds for use
in word-wrap cells. Alt-Enter does it manually. Is there a symbol ("/n" maybe)
or can I type in the cr+lf ascii codes?

rs


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.754 / Virus Database: 504 - Release Date: 9/6/2004


 
Reply With Quote
 
 
 
 
Frank Kabel
Guest
Posts: n/a
 
      7th Sep 2004
Hi
1. check 'Tools - Options - View' and make sure 'Formulas' is NT
checked
2. Use
==CONCATENATE (H1,CHAR(10),H2)
and format the cell with word wrap.

Though I would not use cONCATENATE but
=H1&CHAR(10)&H2



--
Regards
Frank Kabel
Frankfurt, Germany


TCEBob wrote:
> 1. It's a puzzlement: I entered the function
> =CONCATENATE(H1," ",H2)
> and that's exactly what I got in the cell -- the literal
> function, including "=".
> The cell is formatted General.
> Moreover, if I insert a mistake:
> =CONCATENATE (H1," ",H2)
> ^space
> The syntax checker pops up and when I allow it to fix the

function
> The newly fixed function is identical to the original one. And it
> works!
>
> This seems to be true of all functions, not just strings. I tried
> =Sum(1,2) with the same outcome
>
> 2. (Easier I hope) I wish the above concatenation to include line
> feeds for use in word-wrap cells. Alt-Enter does it manually. Is
> there a symbol ("/n" maybe) or can I type in the cr+lf ascii codes?
>
> rs
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.754 / Virus Database: 504 - Release Date: 9/6/2004


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      7th Sep 2004
1. Either you have View Formulas checked in Tools>Options>View or
the cells are pre-formatted as text.

Hit CRTL + `(above TAB key) to toggle Formula View on/off, if that is the
case.

If text cells, select the cells and Format as General then re-enter by
selecting a cell and hitting F2 then <ENTER>.

For a bunch of formulas a quick way to re-enter them is to select the cells
then Edit>Replace

what: =
with: =

Replace all.

2. =H1 & " " & CHAR(10) & H2

Note: wrap text must be enabled, otherwise you will see a square in the cell.

Gord Dibben Excel MVP

On Tue, 7 Sep 2004 12:29:42 -0400, "TCEBob" <(E-Mail Removed)> wrote:

>1. It's a puzzlement: I entered the function
> =CONCATENATE(H1," ",H2)
> and that's exactly what I got in the cell -- the literal function, including
>"=".
> The cell is formatted General.
> Moreover, if I insert a mistake:
> =CONCATENATE (H1," ",H2)
> ^space
> The syntax checker pops up and when I allow it to fix the function
> The newly fixed function is identical to the original one. And it works!
>
> This seems to be true of all functions, not just strings. I tried =Sum(1,2)
>with the same outcome
>
>2. (Easier I hope) I wish the above concatenation to include line feeds for use
>in word-wrap cells. Alt-Enter does it manually. Is there a symbol ("/n" maybe)
>or can I type in the cr+lf ascii codes?
>
>rs
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.754 / Virus Database: 504 - Release Date: 9/6/2004
>


 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      7th Sep 2004
One guess for Q1 .. not really sure

Click Tools > Options > View tab
Is "Formulas" checked?
If so, uncheck it > OK

Another way to toggle formula view:
Press Ctrl + ~ (tilde key, just above tab key)
(perhaps you might have accidentally hit the above combo? <g>)

> 2. (Easier I hope) I wish the above concatenation to include line feeds

for use
> in word-wrap cells. Alt-Enter does it manually.


"the above concat" is: =CONCATENATE(H1," ",H2)

Try in say, G1: =H1&CHAR(10)&H2
Format G1 with "wrap text"

If H1 contains "text1" and H2 contains "Text2"
then in G1 will appear:

Text1
Text2

Note: You can use "&" (much shorter to key in) to concatenate instead
--
Rgds
Max
xl 97
--
Please respond, in newsgroup
xdemechanik <at>yahoo<dot>com
---
"TCEBob" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 1. It's a puzzlement: I entered the function
> =CONCATENATE(H1," ",H2)
> and that's exactly what I got in the cell -- the literal function,

including
> "=".
> The cell is formatted General.
> Moreover, if I insert a mistake:
> =CONCATENATE (H1," ",H2)
> ^space
> The syntax checker pops up and when I allow it to fix the function
> The newly fixed function is identical to the original one. And it

works!
>
> This seems to be true of all functions, not just strings. I tried

=Sum(1,2)
> with the same outcome
>
> 2. (Easier I hope) I wish the above concatenation to include line feeds

for use
> in word-wrap cells. Alt-Enter does it manually. Is there a symbol ("/n"

maybe)
> or can I type in the cr+lf ascii codes?
>
> rs
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.754 / Virus Database: 504 - Release Date: 9/6/2004
>
>



 
Reply With Quote
 
TCEBob
Guest
Posts: n/a
 
      7th Sep 2004
Thanks all!

I did have the formula view off and switched a couple times with ctl-`. As I
said, the cells are formatted General. However, the spell seems to be broken and
all seems well. These are map, lot, owner, address, business name all stacked
and centered, ready for copying into Autocad.

As to formatting, I found that once the Function is typed in, changing the
format from Text to General does not help. You have to establish the format
first.

I guess CHAR(10) works better than CHAR(13).



rs


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.754 / Virus Database: 504 - Release Date: 9/6/2004


 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      8th Sep 2004
You're welcome !
Thanks for the feedback
--
Rgds
Max
xl 97
--
Please respond, in newsgroup
xdemechanik <at>yahoo<dot>com
---


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd String Behavior with '>' DocBrown Microsoft Access VBA Modules 1 5th May 2008 04:03 AM
Alteration of behavior in the Styles and Formatting function? Eric G Microsoft Word Document Management 3 20th Nov 2005 04:48 PM
3 questions... (string related) =?Utf-8?B?R2lkaQ==?= Microsoft C# .NET 6 19th Oct 2005 06:03 PM
Formatting a textbox with string from a VBA Function James Minns Microsoft Access Forms 2 9th Dec 2004 08:49 PM
How to do I get a String from an IntPtr? (it's COM related) Robin Tucker Microsoft VB .NET 0 5th Feb 2004 12:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 PM.