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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Carriage return during an if statement



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2009, 04:55 PM posted to microsoft.public.excel.misc
kpt
external usenet poster
 
Posts: 11
Default Carriage return during an if statement

I have several cells combined and during the IF stament I want to use
carriage return to align stuff with in the cell. Any ideas?
  #2  
Old May 15th, 2009, 05:05 PM posted to microsoft.public.excel.misc
Sheeloo
external usenet poster
 
Posts: 797
Default Carriage return during an if statement

Use CHAR(10)

=IF(A1=1,"First Line" & Char(10) & "Second Line","In one line only")

You may have to format the cell alignment as "Wrap Text"

"kpt" wrote:

I have several cells combined and during the IF stament I want to use
carriage return to align stuff with in the cell. Any ideas?

  #3  
Old May 15th, 2009, 05:31 PM posted to microsoft.public.excel.misc
kpt
external usenet poster
 
Posts: 11
Default Carriage return during an if statement

Thank you
works great

"Sheeloo" wrote:

Use CHAR(10)

=IF(A1=1,"First Line" & Char(10) & "Second Line","In one line only")

You may have to format the cell alignment as "Wrap Text"

"kpt" wrote:

I have several cells combined and during the IF stament I want to use
carriage return to align stuff with in the cell. Any ideas?

 




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 12:45 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.