+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Split formula in 2 lines in 1 cell

  1. #1
    Registered User
    Join Date
    09-22-2010
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Arrow Split formula in 2 lines in 1 cell

    Hi there!

    I want to know if it's possible to "split" a formula into 2 lines of text in one cell.

    I know that by pressing Alt+Enter when writing text in one cell, a line break is done, making the text after the position where Alt+Enter was done go into a new line below the current one (always in the same cell).

    I want to do the same thing but with a formula, making the formula's 1st part appear in the 1st text line of the cell, and the 2nd part in the cell's 2nd line.
    Much like pressing Alt+Enter in the middle of the formula.


    Here's the case:
    Please Login or Register  to view this content.

    C3's formula is:

    Please Login or Register  to view this content.

    I can do a line break pressing Alt+Enter when editing the formula (between "... & A3" and "& IF(..." ), but it has no results - in the fx space the formula appears separated in 2 lines, but in the cell it has no effect.

    The effect that I desire in C3 is:

    Please Login or Register  to view this content.

    instead of:

    Please Login or Register  to view this content.


    Any help is appreciated
    Last edited by Raen; 09-22-2010 at 12:12 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Split formula in 2 lines in 1 cell

    Try this
    Please Login or Register  to view this content.
    Then apply Wrap Text to the formula cell

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    09-22-2010
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Split formula in 2 lines in 1 cell

    Didn't know that function.

    It worked, thanks

  4. #4
    Registered User
    Join Date
    10-15-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Excel 2007 : Split formula in 2 lines in 1 cell

    Hi,

    I am trying to make it work as well, but it doesn't take effect - neither version..
    my formula is as follows -

    =CONCATENATE("update_job: ",A8,"
    description: ","""",Q8,"""")

    and although ALT Enter makes formula to split to 2 lines (as you see above)- actual result doesn't split. Char(10) doesn't have any effect either..

    Any thoughts on this?

  5. #5
    Registered User
    Join Date
    10-15-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Excel 2007 : Split formula in 2 lines in 1 cell

    as soon as I posted it - firgured it out... Cell format must be set to "wrap text" - forgot about this step..

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Excel 2007 : Split formula in 2 lines in 1 cell

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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