# Sum Multiple Columns in Pivot Table

#### tcustance

##### New Member
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 1 Product 2 QTY for Product 1 Qty for Product 2 A B 7 7 A C 4 4 A A 19 19 A B 2 2 A A 6 6

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

 Product Total for Product A 63 B 9 C 4

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
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
27 KB · Views: 4

#### A Durfani

##### Active Member
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)

Replies
0
Views
207
Replies
1
Views
77
Replies
0
Views
64
Replies
0
Views
128
Replies
1
Views
153

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?

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