+ Reply to Thread
Results 1 to 9 of 9

Break out values from a cell with multiple values

  1. #1
    Registered User
    Join Date
    05-12-2022
    Location
    Utah, US
    MS-Off Ver
    MS 365 Apps for Enterprise
    Posts
    6

    Break out values from a cell with multiple values

    I need to break out a cell with multiple values into individual rows. For example in my attached worksheet I have a cells in column J that have several comma separated values in each cell. How can I break those out into a table that retains all of the accompanying data with it, i.e., all of the other columns of data, and then shows each value in an individual row? This will eventually allow me to create a pivot table of the values when column J is broken out into individual rows.
    The formulas I am using seems to insert blank rows and separates values after a few rows. I'm not sure what I am doing wrong or what I am missing.
    Any thoughts or direction here?
    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Break out values from a cell with multiple values

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect - 16 means nothing. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-12-2022
    Location
    Utah, US
    MS-Off Ver
    MS 365 Apps for Enterprise
    Posts
    6

    Re: Break out values from a cell with multiple values

    I just updated my profile. I'm using Excel version - MS 365 Apps for Enterprise

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Break out values from a cell with multiple values

    That looks like one of my files. As you have a comma at the end of your csv list in column J, you should change the formula in AJ2 to this:

    =LEN(J2)-LEN(SUBSTITUTE(J2,",",""))

    then copy it down.

    Hope this helps.

    Pete

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Break out values from a cell with multiple values

    In power query, you can split a cell into multiple rows and the rest of the data in the row will populate those new rows.

    https://www.youtube.com/watch?v=tdblfzJ2mEY
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Registered User
    Join Date
    05-12-2022
    Location
    Utah, US
    MS-Off Ver
    MS 365 Apps for Enterprise
    Posts
    6

    Re: Break out values from a cell with multiple values

    Thank you Pete. This is indeed one of your files, found it in an earlier post. Thanks for the update. I used your suggestion and then updated the formula used in the cell to break out the multiple cell values, I updated this by adding a 'Clean' statement since my data had hard returns and then added 500 spaces in the REPT statement, in place of 100, since the data I have has as much as 10-12 values in one cell and results in a longer text strings when this formula is applied.
    After doing this, it seems to work fine. Once again. Thank you for your posting the original file and now for your update. Very helpful.

  7. #7
    Registered User
    Join Date
    05-12-2022
    Location
    Utah, US
    MS-Off Ver
    MS 365 Apps for Enterprise
    Posts
    6

    Re: Break out values from a cell with multiple values

    Thank you Alan for the YT video. This could also be a solution. Thank you

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Break out values from a cell with multiple values

    Glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  9. #9
    Registered User
    Join Date
    05-12-2022
    Location
    Utah, US
    MS-Off Ver
    MS 365 Apps for Enterprise
    Posts
    6

    Re: Break out values from a cell with multiple values

    Thank you. I've done both of your suggestions. Appreciate the help and the direction here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 03-10-2017, 07:56 PM
  2. trying to break a string of values from one cell to two
    By sirgeoff in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2015, 11:36 AM
  3. Replies: 1
    Last Post: 10-01-2013, 02:41 AM
  4. Replies: 5
    Last Post: 08-04-2013, 09:49 AM
  5. Sum values from multiple cells - multiple lookup values in single cell
    By taxdept in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2012, 04:12 PM
  6. [SOLVED] Macro to loop through cell values in a column and format multiple cell values
    By Roop in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2012, 05:39 PM
  7. [SOLVED] How can I break values apart that are in the same cell?
    By Phil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2005, 11:05 AM

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