Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
kpt kpt is offline
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 793
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   Report Post  
Posted to microsoft.public.excel.misc
kpt kpt is offline
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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Carriage return within a cell Jon Excel Discussion (Misc queries) 3 August 7th 07 06:56 AM
Carriage Return Freddo Excel Worksheet Functions 2 March 22nd 07 10:34 AM
Carriage Return in a Concatenation [email protected] New Users to Excel 4 August 12th 06 05:12 PM
Squares for carriage return Helena Excel Worksheet Functions 3 July 6th 05 09:21 PM
Carriage Return in Excel Rod Behr Excel Discussion (Misc queries) 4 December 14th 04 01:53 PM


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

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

About Us

"It's about Microsoft Excel"