A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

wrapping text in an if statement



 
 
Thread Tools Display Modes
  #1  
Old June 11th, 2004, 01:51 PM
external usenet poster
 
Posts: n/a
Default wrapping text in an if statement

I want to force the text in an if statement to go to the
next line... I tried to place a ALT Return at the
appropriate place but I get a empty box instead of two
lines of text.

Example
IF ($A$1,"one line
two lines","line one
line two")

and I get one line0two lines

but what I want is
one line
two lines

any help??
  #2  
Old June 11th, 2004, 02:02 PM
David
external usenet poster
 
Posts: n/a
Default wrapping text in an if statement

try:
"one line"&char(10)&"two lines" and set the cell format to wrapped text
worked for me
--
David


" wrote:

I want to force the text in an if statement to go to the
next line... I tried to place a ALT Return at the
appropriate place but I get a empty box instead of two
lines of text.

Example
IF ($A$1,"one line
two lines","line one
line two")

and I get one line0two lines

but what I want is
one line
two lines

any help??

  #3  
Old June 11th, 2004, 02:03 PM
Bernie Deitrick
external usenet poster
 
Posts: n/a
Default wrapping text in an if statement

Format the cell for wrapped text, then use the formula:

=IF($A$1,"one line"&CHAR(10)&"two lines","line one"&CHAR(10)&"line two")

HTH,
Bernie
MS Excel MVP

wrote in message
...
I want to force the text in an if statement to go to the
next line... I tried to place a ALT Return at the
appropriate place but I get a empty box instead of two
lines of text.

Example
IF ($A$1,"one line
two lines","line one
line two")

and I get one line0two lines

but what I want is
one line
two lines

any help??



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.