Sumifs on Pivot Table Plus

wsnyder

Board Regular
Joined
Sep 23, 2018
Messages
224
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to create a SUMIFS() to Sum only certain columns in my Pivot Table
I keep getting a #VALUE! error no matter what I do
Added the Range of numbers manually in Row 2
Any ideas?
Thanks,
w


Ex_Sumifs.xlsx
ABCDEFGH
1Dates(All)
21234567
3Sum of SalesColumn Labels
4Row LabelsAcmeBronxBustersDooleywhopsThingamajigsWhatchamacallitsWidgetsRUSGrand Total
5East$ 88,975.43$ 88,435.50$ 84,353.30$ 95,615.76$ 78,275.46$ 96,829.62$ 532,485.08
6North$ 82,812.59$ 84,133.30$ 96,316.45$ 88,152.49$ 93,531.99$ 92,252.10$ 537,198.91
7South$ 95,665.94$ 86,223.02$ 98,519.41$ 90,297.41$ 87,969.34$ 84,538.30$ 543,213.43
8West$ 88,643.94$ 93,228.47$ 82,503.86$ 83,993.66$ 79,119.62$ 82,713.71$ 510,203.26
9Grand Total$ 356,097.91$ 352,020.29$ 361,693.01$ 358,059.32$ 338,896.41$ 356,333.74$ 2,123,100.68
10
114
12East#VALUE!
Sheet2
Cell Formulas
RangeFormula
C2:H2C2=+B2+1
C12C12=SUMIFS($A$5:$H$9,$B$2:$H$2,"<="&C11,$A$5:$A$9,$B$12)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Give this a try:
Excel Formula:
=SUM(FILTER(FILTER($B$5:$H$8,$B$2:$H$2<=$C$11),$A$5:$A$8=$B$12))
or this:
Excel Formula:
=SUM(($B$2:$H$2<=$C$11)*($A$5:$A$8=$B$12)*($B$5:$H$8))
if you need it to run on pre 365 Excel change the 2nd one from Sum to SumProduct
 
Upvote 0
Solution
Thanks Alex,

The first formula works great!

Thanks,
w
 
Upvote 0
Hi @Alex Blakenburg

I need to add some additional criteria to the SUM(FILTER(FILTER( Formula
I added but I'm getting a #VALUE! error

Can I not keep adding more nested FILTER statements to get down to the 1 column I need to summarize?
This works as expected down to BDQ$4, but then breaks at BDQ$6

Excel Formula:
=FILTER(FILTER(FILTER(Pivot_CurrentMonth!$BDE$9:$BDL$1500,
                                         (Pivot_CurrentMonth!$BDC$9:$BDC$1500>=BDQ$2) *
                                         (Pivot_CurrentMonth!$BDC$9:$BDC$1500<=BDQ$3)),
                                         (Pivot_CurrentMonth!$BDE$6:$BDL$6=BDQ$4)),
                                         (Pivot_CurrentMonth!$BDE$8:$BDL$8=BDQ$6))


Thanks,
w
 
Upvote 0
@Alex Blakenburg

I got it.
I ended up splitting Row from Column criteria and it worked!

Thanks,
-w

Excel Formula:
=SUM(FILTER(FILTER(Pivot_CurrentMonth!$BDE$9:$BDL$1500,
                                         (Pivot_CurrentMonth!$BDC$9:$BDC$1500>=BDQ$2) *
                                         (Pivot_CurrentMonth!$BDC$9:$BDC$1500<=BDQ$3)),
                                         (Pivot_CurrentMonth!$BDE$6:$BDL$6=BDQ$4) *
                                         (Pivot_CurrentMonth!$BDE$7:$BDL$7=BDQ$5) *
                                         (Pivot_CurrentMonth!$BDE$8:$BDL$8=BDQ$6)))
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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