+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    07-07-2005
    Location
    New York
    Posts
    21

    text line break symbol to use in a formula

    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

  2. #2
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,033

    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
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  3. #3
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,126

    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
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0