Welcome to the Excel Forum

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.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 05-17-2009, 05:20 PM
pwermuth pwermuth is offline
Registered User
 
Join Date: 07 Jul 2005
Location: New York
Posts: 21
pwermuth is becoming part of the community
text line break symbol to use in a formula

Please Register to Remove these Ads

I am trying to combine a few cells of text into one which includes a line break. Is there a symbol I can use as part of my formula that will generate the line break?

Let's say cell A1 was "John", cell B1 "Doe", and cell C1 "25 years" and I wanted to combine them in a new cell in the following format:

John Doe
25 years

by formula
=A1&" "&B2&"<line break symbol>"&C1
where <line break symbol> is what I am looking for
Reply With Quote
  #2  
Old 05-17-2009, 05:36 PM
teylyn's Avatar
teylyn teylyn is offline
Forum Moderator
 
Join Date: 28 Oct 2008
Location: German in New Zealand
MS Office Version:2000 - 2010
Posts: 4,644
teylyn makes giving solutions look like childsplay teylyn makes giving solutions look like childsplay teylyn makes giving solutions look like childsplay teylyn makes giving solutions look like childsplay teylyn makes giving solutions look like childsplay teylyn makes giving solutions look like childsplay teylyn makes giving solutions look like childsplay teylyn makes giving solutions look like childsplay teylyn makes giving solutions look like childsplay
Re: text line break symbol to use in a formula

Hi,

try

=A1&" "&B2&CHAR(10)&C1

don't forget to set the cell to wrap text and make the rows high enough to see all lines!!
__________________
teylyn
If you want to say Thank you to a member, click the reputation icon in the title bar of the post you liked
Everyone needs a pat on the back every once in a while!
...How to Cross-post politely...
Things I do with the right side of my brain ...
Reply With Quote
  #3  
Old 05-17-2009, 07:46 PM
shg's Avatar
shg shg is offline
Forum Guru
 
Join Date: 20 Jun 2007
Location: The Great State of Texas
MS Office Version:2003, 2007
Posts: 18,450
shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay
Re: text line break symbol to use in a formula

In my standard template, I have a defined formula vbLf =CHAR(10) for just that purpose; then you can do =A1 & vbLf & B2 & vbLf & C1
__________________
Entia non sunt multiplicanda sine necessitate.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump