+ Reply to Thread
Results 1 to 5 of 5

trouble with multiple values stacked in a cell using Alt+Enter - who needs a challenge?

  1. #1
    Registered User
    Join Date
    10-22-2012
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2007
    Posts
    9

    trouble with multiple values stacked in a cell using Alt+Enter - who needs a challenge?

    I don't even know what this function is called, but if you type a value in a cell, then hold down ALT and press enter, you get a new line within the cell. A system I export from (to an XML file then open with Excel) automatically does this. I have 2 problems I am trying to solve that I have with this.

    1. In using a V-Lookup to return the values in this cell, the results place everything on one line with a crazy little box symbol in between (I'm assuming its the symbol for "Alt+Enter") I need it to be stacked like the original. See tab "Problem #1" on my attachment. Column B is what the original data looks like that I am using for my VLookup, but column A is the way it returns (after copy/paste special of coursse) and I need it to result like column B. If you click in a cell in column A and press F2 then enter, it fixes it. My problem is I have several thousands of lines of data like this so it isn't an option. I've tried macros and can't get it to work.

    2. See 2nd tab named problem #2. Again, I have several thousand of lines of data like this. I need to convert the example data in column A to the example in column B. Basically, I want to delete all but the 1st value, and the cell may contain 1, 2, 3, or 4 vaules all stacked with the Alt+Enter function.
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: trouble with multiple values stacked in a cell using Alt+Enter - who needs a challenge

    sheriberi,

    Welcome to the forum!
    You just need to enable the wrap text option. You can do the whole column at once if you want. Just select column A and click "Wrap Text" on the Home tab (you might have to click it twice).

    For problem 2, do you want a formula or macro solution? Because this is in the Formulas & Functions section, I'm going to assume you're looking for a formula solution. Using your example file, in cell B2 and copied down:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-22-2012
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: trouble with multiple values stacked in a cell using Alt+Enter - who needs a challenge

    Format > Wrap Text...go figure! I can't believe it was that easy. Thank you sooooo much. As for problem #2: formula, macro, I don't care whichever is easiest. Do you know of a macro? I can repost this in that forum if need be.

  4. #4
    Registered User
    Join Date
    10-22-2012
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: trouble with multiple values stacked in a cell using Alt+Enter - who needs a challenge

    That formula works great though, so heck with the macro. Thanks again, you are a wiz!

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: trouble with multiple values stacked in a cell using Alt+Enter - who needs a challenge

    You're very welcome

    If that takes care of your need, please mark this thread as solved.
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:
    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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