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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Saurabhj

Active Member
Joined
Jun 6, 2020
Messages
413
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
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: 4

A Durfani

Active Member
Joined
Apr 12, 2019
Messages
256
Office Version
  1. 2013
Platform
  1. Windows
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)
 

Watch MrExcel Video

Forum statistics

Threads
1,129,717
Messages
5,637,947
Members
416,994
Latest member
cappiccolo

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
Top