Sum Multiple Columns in Pivot Table

tcustance

New Member
Joined
Sep 3, 2019
Messages
7
Hello everyone,

I have been trying to solve my problem for hours now. Wondering if anyone can point me in the direction. I am trying to do a sum of like products in a pivot table, but from multiple columns.

Here is what my data looks like:

Product 1Product 2QTY for Product 1Qty for Product 2
AB77
AC44
AA1919
AB22
AA66

I would like to have a pivot table sum the quantity for product 1 & 2 across the sheet, like below:

ProductTotal for Product
A63
B9
C4

Thank you,
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi,

I am not sure if we can show the data in Pivot table.

But to show the sum of products you can use below formula:

Excel Formula:
=SUMIF(A:A,J2,C:C)+SUMIF(B:B,J2,D:D)

Thanks,
Saurabh
 

Attachments

  • pivottable.PNG
    pivottable.PNG
    27 KB · Views: 86
Upvote 0
Saurabhj's formula will look like

Book6
ABCDEFGHIJK
1Product 1Product 2QTY for Product 1Qty for Product 2ProductTotal for Product
2AB77A63
3AC44B9
4AA1919C4
5AB22
6AA66
Sheet1
Cell Formulas
RangeFormula
K2:K4K2=SUMIF(A:A,J2,C:C)+SUMIF(B:B,J2,D:D)
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,725
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top