+ Reply to Thread
Results 1 to 10 of 10

Pivot table with multiple data entries in one cell.

  1. #1
    Registered User
    Join Date
    08-08-2023
    Location
    USA
    MS-Off Ver
    O365
    Posts
    5

    Pivot table with multiple data entries in one cell.

    Hello there,

    It's kind of hard to explain so let me just show you a table.

    Column1 Column4
    Num1 111
    Num2 111
    Num3 111, 112
    Num4 112
    Num5 111
    Num6 112
    Num7 112, 111
    Num8 112, 111

    Let's say this is my data, I want to create a pivot table that will separate those "111, 112" entries and sort them as if they were both 111 and 112. Giving me a table that would count the occurrences and in which Column1 rows they appear in.

    This feels like it should be simple but I can't figure it out, thank you.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Pivot table with multiple data entries in one cell.

    Please confirm the Excel product that you're using. This is easy with O365... but you joined only yesterday and your profile says Excel 2016. I'm just hoping you made a mistake!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-08-2023
    Location
    USA
    MS-Off Ver
    O365
    Posts
    5

    Re: Pivot table with multiple data entries in one cell.

    Hey Glenn, thank you for responding. I think you are correct in that I made a mistake. I believe I have Excel through O365 (version 2307 is what it says).

  4. #4
    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,935

    Re: Pivot table with multiple data entries in one cell.

    Update your forum profile to O365, please.
    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.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Pivot table with multiple data entries in one cell.

    All done in a single cell's calculation. Is this what you want? make sure that the results area is EMPTY.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-08-2023
    Location
    USA
    MS-Off Ver
    O365
    Posts
    5

    Re: Pivot table with multiple data entries in one cell.

    This is exactly what I'm looking for. I still have one problem though which was due to me giving a bad example. The values I need sorted like this are text strings like "Staphylococcus epidermidis, Micrococcus leteus". Maybe I just changed the wrong things when adopting your formula, I'll create a file to demonstrate next comment. Thank you once again. (Also just to address some common troubleshooting, my results area is empty, the only values I changed were the ranges (A2:A9, etc))

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Pivot table with multiple data entries in one cell.

    Try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    When I see a number, I automatically convert it to a number. But if the 111 222 are actually TEXT use the above instead.

  8. #8
    Registered User
    Join Date
    08-08-2023
    Location
    USA
    MS-Off Ver
    O365
    Posts
    5

    Re: Pivot table with multiple data entries in one cell.

    Hello, sorry for the delayed response, I've tried the formula but it unfortunately doesn't seem to be working. I created a more accurate mock Excel that might help you help me. Thank you very much once again.
    Attached Files Attached Files

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Pivot table with multiple data entries in one cell.

    Apart from the columns being different, the biggest change was the existence of rows in column S that were blank!

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    08-08-2023
    Location
    USA
    MS-Off Ver
    O365
    Posts
    5

    Re: Pivot table with multiple data entries in one cell.

    It works perfectly, thank you!

+ 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. [SOLVED] Organize data to create pivot table when multiple values in one cell
    By TheGreatTate in forum Excel General
    Replies: 15
    Last Post: 05-16-2022, 11:54 AM
  2. [SOLVED] Pivot table or Chart, but data has multiple items in a single cell
    By Rilly in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 08-22-2018, 10:24 AM
  3. Replies: 5
    Last Post: 08-08-2016, 08:58 AM
  4. Replies: 1
    Last Post: 04-05-2016, 11:20 AM
  5. Pivot table that aggregates duplicate entries in multiple columns
    By InnerPickle in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-15-2015, 08:07 PM
  6. [SOLVED] Entries on pivot table removed when table cell = 0
    By lockers in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-23-2014, 12:29 AM
  7. Summing data from a table with multiple entries
    By JLitchford in forum Excel General
    Replies: 1
    Last Post: 03-18-2010, 08:02 PM

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