Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default Forcing a line feed in the middle of a string

I have a cell like this:
=AT4&" "&AU4&" "&AT5&" "&AU5&" "&AT6&" "&AU6

This concatenates some text in a cell. I'd like to force a line feed after
the 2nd and 4th parameter for formatting purposes. I tried & char(13) & but
that didn't work. I appreciate any help on this.



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 236
Default Forcing a line feed in the middle of a string

I usually just insert:
&"{Alt+Enter}"&

just for clarity you press Alt+Enter and not type it there.
Make sure that the cell that has this formula is formatted as Wrap Text (in
format cell).

"dhstein" wrote in message
...
I have a cell like this:
=AT4&" "&AU4&" "&AT5&" "&AU5&" "&AT6&" "&AU6

This concatenates some text in a cell. I'd like to force a line feed
after
the 2nd and 4th parameter for formatting purposes. I tried & char(13) &
but
that didn't work. I appreciate any help on this.





  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Forcing a line feed in the middle of a string

Try chr(10) and make sure you set the format to wrap text--else you'll see a
little square in your cell.

=at4&chr(10)&...



dhstein wrote:

I have a cell like this:
=AT4&" "&AU4&" "&AT5&" "&AU5&" "&AT6&" "&AU6

This concatenates some text in a cell. I'd like to force a line feed after
the 2nd and 4th parameter for formatting purposes. I tried & char(13) & but
that didn't work. I appreciate any help on this.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default Forcing a line feed in the middle of a string

AB, Dave,

Thanks.



"Dave Peterson" wrote:

Try chr(10) and make sure you set the format to wrap text--else you'll see a
little square in your cell.

=at4&chr(10)&...



dhstein wrote:

I have a cell like this:
=AT4&" "&AU4&" "&AT5&" "&AU5&" "&AT6&" "&AU6

This concatenates some text in a cell. I'd like to force a line feed after
the 2nd and 4th parameter for formatting purposes. I tried & char(13) & but
that didn't work. I appreciate any help on this.


--

Dave Peterson

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
How do I insert a line feed in a formula? TX_KniveS Excel Worksheet Functions 5 October 31st 08 12:55 AM
Concatenate with Line Feed not working Cummings Excel Discussion (Misc queries) 3 April 8th 08 02:42 PM
Fonts & Line Feed in a Cell Mark B Excel Discussion (Misc queries) 4 February 8th 07 05:50 PM
Replace Line Feed nsv Excel Discussion (Misc queries) 7 February 16th 06 04:37 PM
How do I get rid of line feed characters in wrapped text? Gladmac Excel Discussion (Misc queries) 3 January 18th 05 06:40 PM


All times are GMT +1. The time now is 05:51 AM.

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

About Us

"It's about Microsoft Excel"