+ Reply to Thread
Results 1 to 5 of 5

Pivot Sum of Multiple Columns

  1. #1
    Registered User
    Join Date
    07-09-2024
    Location
    United States
    MS-Off Ver
    MS 365 MSO
    Posts
    2

    Pivot Sum of Multiple Columns

    I have an excel table that I use for calculating values for a project. For a few reasons I've had to lay things out in a way that makes it difficult to set up a pivot table to show what I want it to, but I feel like it should be possible to do.

    I've attached a small basic example of what I'm working with, and what I would like to see and so far Google hasn't shown anything promising.

    Basically I have a large table with a few input columns and multiple formula columns. But the pertinent part here is two columns that have formulas to generate a value based on some of those inputs. In the example I attached, this would be the name columns. Both of those columns have their own quantity columns as well. The number columns in the attached example. Sometimes there are blanks in a row in either of those columns and I don't really care what happens with those. Sometimes the columns have matching values in the same row and sometimes they don't. Some values may exist in one column and not the other. What I would like to do is have a table like the output table in the attached example that would give me a sum of the corresponding quantities for each unique value across those two columns. I can't really predict very well what the values may be and they are always subject to change so I can't do SUMIF(S) with a table, so I feel like I'm stuck with a Pivot Table to avoid having to expand the output ranges and manually input the names it looks for. I'm not very familiar with Pivot Tables yet, so I'm open to suggestions if there is a better option here.

    Product information says Microsoft Excel for Microsoft 365 MSO Version 2406, but I have had issues with a few functions not working that I believe should with my version of Excel so there's that. There's also little consistency through the company with what version of Excel my coworkers have, so compatibility with older versions would be nice but not necessary as this will be used by me only 99 percent of the time.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,747

    Re: Pivot Sum of Multiple Columns

    Attached file contains a Power Query Solution. Split the table into two different tables. Append one to the other and then Group them to achieve the expected results.
    Attached Files Attached Files
    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

  3. #3
    Registered User
    Join Date
    07-09-2024
    Location
    United States
    MS-Off Ver
    MS 365 MSO
    Posts
    2

    Re: Pivot Sum of Multiple Columns

    Thank you so much. With a little bit of tinkering, I was able to make that work for what I need. Only drawback is that it's already past the end of the day and now I'm going to be at the office for several more hours figuring out where else I can use this new knowledge.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,747

    Re: Pivot Sum of Multiple Columns

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon (Next to Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,998

    Re: Pivot Sum of Multiple Columns

    G3=IFERROR(SUMPRODUCT(--(Table1=Table2[@Name]),($B$3:$E$12)),"")

    Copy down

+ 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. Multiple Columns in 'Multiple Consolidation Ranges' Pivot Table
    By Tamarissa in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-16-2022, 12:58 PM
  2. Pivot chart from pivot table with multiple columns
    By nilesh.acharya in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-10-2021, 11:58 PM
  3. Pivot table with multiple columns
    By Xcel_King_ in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 12-11-2018, 08:44 AM
  4. Replies: 6
    Last Post: 08-19-2015, 07:46 PM
  5. Average of Multiple Columns from multiple Pivot Tables
    By element32d in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-01-2013, 11:08 AM
  6. [SOLVED] Multiple Columns in Pivot Table (but don't show in Pivot Chart)
    By Gideon1973 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-23-2012, 10:57 AM
  7. Replies: 2
    Last Post: 08-16-2010, 06:40 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