# 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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

#### 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: 3

#### A Durfani

##### Board Regular
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
175
Replies
1
Views
67
Replies
0
Views
41
Replies
0
Views
104
Replies
1
Views
132

1,127,443
Messages
5,624,802
Members
416,054
Latest member
Ariel2219

### 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.

### Which adblocker are you using?

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

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