+ Reply to Thread
Results 1 to 6 of 6

Pivot table or Chart, but data has multiple items in a single cell

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    14

    Question Pivot table or Chart, but data has multiple items in a single cell

    Looking for opinions on best solution

    Scenario:
    My data has several columns, such as name, place, items (these are just examples...)
    I have to do several pivot tables. One pivot table will be Name by Count of items provided, 2nd would be Place by Count of items provided, and third will be a list of Items and how many times they have appeared in the data. No doubt, I'll also need to somehow provide some table or graph listing the names or places, by the actual items (so, jim requested item #5 six times, item #2 twenty times.. etc

    I don't have the data yet. I will soon be provided this data via emails, and I need to add it to a spreadsheet. The people will email me with a list of items required.. some might have 1 item, other emails could have 20 items - or anything in between. For this reason, it is a challenge to have separate columns or rows for each item.
    I was going to capture it by the 3 columns provided above, and just have all the items in a single cell, separated by a comma.

    The list of items is a known list, but there are like 5,000 different options. I know I could put a known static list and then do countifs or sumifs or something, to count how many times they appear, but they are always adding new items - i could never keep up, and probably 90% of the items I would never see. I could just keep adding servers to a list as they are requested, but say in 8 months, it will become a pain trying to determine if that item requested is already on the list or not (they aren't simple words, but actually server names with complicated letters and numbers)

    example data

    Name Place Item
    Rob Canada apple, banana, orange
    Rob Canada apple
    Jim USA pineapple, banana

    etc.. this is obviously just sample, as I don't have the data yet.

    I guess my questions are 1) is this the best way to capture this information ? is there a better way that will make analyzing the data easier without a huge hassle of adding the data to spreadsheets?, and, 2) can a pivot table be created out of this mess?

    Looking for the opinions of those much more familiar with excel than I!
    thanks!
    Rob

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Pivot table or Chart, but data has multiple items in a single cell

    Always look to normalize your data. Each row in a table should contain one fact, and one value for each dimension describing that fact.

    In this case, Name, Place, Item are dimensions, so each row should contain only one value for each.

    Incidentally, are you really still using Excel 2003?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    11-26-2012
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    14

    Re: Pivot table or Chart, but data has multiple items in a single cell

    The only challenge with that, is if someone requests 20 items, i'm going to have to add 20 rows of data for that one request.. when someone asks me how many requests did that person make, its going to look like 20, when they only sent 1... they want me to track how many times each person sends a request too.

    Updated my profile forgot about that

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Pivot table or Chart, but data has multiple items in a single cell

    You could use your suggested structure to capture data, then use Get & Transform Data to normalise (create one row per item).


    Please Login or Register  to view this content.
    Then load to data model, and pivot / report to your heart's content..!
    Last edited by Olly; 08-22-2018 at 09:44 AM.

  5. #5
    Registered User
    Join Date
    11-26-2012
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    14

    Re: Pivot table or Chart, but data has multiple items in a single cell

    hmm.. I've never tried a get and transform data before.. the format of that structure looks similar to how power bi works..
    I'll give this a try in excel, thank you for your assistance!

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Pivot table or Chart, but data has multiple items in a single cell

    It's exactly the same as Power BI

+ 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. Pivot Table with Multiple Data in Single Column
    By TimEd in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-24-2016, 05:30 AM
  2. [SOLVED] Making a chart from a single table no pivot table
    By sportfan in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-30-2015, 02:15 AM
  3. Transfer and consolidate data from multiple line items to within single cell
    By Noah14 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2015, 10:43 AM
  4. [SOLVED] Multiple Pivot Tables - Single table of source data
    By some_evil in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-09-2014, 11:56 PM
  5. Replies: 0
    Last Post: 06-14-2013, 07:05 AM
  6. Replies: 2
    Last Post: 03-07-2013, 02:16 PM
  7. Orientation of multiple data items in Pivot table
    By Tim C in forum Excel General
    Replies: 3
    Last Post: 02-01-2006, 09:10 PM

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