+ Reply to Thread
Results 1 to 8 of 8

List items several times with multiple results in pivot table

  1. #1
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    List items several times with multiple results in pivot table

    I am not sure how to explain this to make it not seem so complicated, because I think it should be quite simple, I am just not getting the right setup in my pivot table.

    I have column A with 16,000 part numbers.
    The rest of the columns list videos associated with each part number.
    F, H, J, L, N all have the number of the video that is tied to the part number.

    I attached an image with the spreadsheet setup.
    In the end, I want the pivot table to list the each part number with each video, but as a line item for each instance.

    AAA-WWGP 12
    AAA-WWGP 2
    AAA-WWGP 1
    AAA-WWGP 1
    AAA-WWGP 2
    ABC-00001 22
    ABC-00001 16
    ABC-00002 14
    ABC-00002 158
    ABC-00002 22

    I appreciate anyone's help in getting this to work as it will save me a ton of time. Thanks so much!Capture.PNG
    Last edited by karstens; 02-11-2019 at 11:28 AM.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,909

    Re: List items several times with multiple results in pivot table

    It sounds like you actually want to unpivot your data, which you can do using a consolidation range pivot table: https://contexturesblog.com/archives...ot-excel-data/

    is one example.
    Rory

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

    Re: List items several times with multiple results in pivot table

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data. Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Also - which Excel version do you use?
    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...

  4. #4
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    Re: List items several times with multiple results in pivot table

    Thank you. I attached the example.
    Also, I am using Home and Business 2013.
    Attached Files Attached Files

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

    Re: List items several times with multiple results in pivot table

    You can easily use Power Query to unpivot your date.

    Format your source data as a table, then use query:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    Re: List items several times with multiple results in pivot table

    Sorry to sound ignorant, but I am not sure how to use the code you mentioned.
    Is power query something I need to add on?
    Or is there maybe a better way I should arrange my original data?

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

    Re: List items several times with multiple results in pivot table

    This will tel you how to switch on Power Query: https://www.excelcampus.com/install-power-query/

    See link in my signature for how to use Power Query code.

    It's well worth it.

  8. #8
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    Re: List items several times with multiple results in pivot table

    Thanks. I will give that a try.
    Last edited by karstens; 02-13-2019 at 12:41 PM.

+ 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] Copy block of rows based n times, n being list of items
    By sreeks in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-23-2016, 11:29 AM
  2. Replies: 1
    Last Post: 09-04-2014, 12:14 PM
  3. Select Multiple Items in a List and then Print Those Items
    By dcdoc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-26-2013, 01:16 PM
  4. How to repeat vba code a number of times depending on items in an excel list
    By qaliq in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-18-2013, 08:13 AM
  5. Replies: 4
    Last Post: 02-14-2012, 04:56 PM
  6. Generating a items in a list n times
    By jk1 in forum Excel General
    Replies: 4
    Last Post: 09-09-2011, 06:06 AM
  7. Replies: 1
    Last Post: 11-29-2010, 09:09 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