+ Reply to Thread
Results 1 to 4 of 4

New Line in a formula (Alt-Enter)

  1. #1
    Registered User
    Join Date
    03-22-2007
    Posts
    5

    New Line in a formula (Alt-Enter)

    I am trying to create a formula in a cell to put together two cells, but I want to include a new line between them.

    Example:
    Cell1
    5050 Encinas Ave

    Cell2
    San Diego, Ca.

    Cell3 (this is how I want it to look - I am aware I can individually do Alt - Enter - but how do I put that in a formula?)
    5050 Encinas Ave
    San Diego, Ca.

    I don't want cell3 to look like this one all one line in the cell
    5050 Encinas Ave San Diego, Ca

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try
    =A1&CHAR(10)&A2
    then format the formula cell as wrapped text

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    03-22-2007
    Posts
    5

    thanks Noob - However it didn't work

    Noob,
    thanks for the quick reply. However I typed it exactly and it just puts the formula in the new cell - not the results.

  4. #4
    Registered User
    Join Date
    03-22-2007
    Posts
    5

    Now it works - THANKS

    Noob,
    for some reason I inserted another column and then tried your formula and then it worked!

    Not sure why it wouldn't work in the column I was using.

    SO THANKS A LOT!!!!!!!

+ Reply to Thread

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.6.0 RC 1