Multi Level Subtotals

ahennema

New Member
Joined
Sep 14, 2005
Messages
34
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I found a formula (see below) that lets me subtotal on changes in 2 columns. However I need to subtotal on changes in 3 columns. IS there a modification to the below formula that would allow me to add one more column? I would check for changes in columns A, B and C and subtotal the value in Column D.

I can get the result using a Pivot Table however I really just want the subtotal to be a running value in column E

I don't understand the formula enough to modify it for one more column...
Spreadsheet Formulas
Cell Formula
D2 =IF(B2=B3,"",SUMPRODUCT(--($A$2:$A$23=A2),--($B$2:$B$23=B2),$C$2:$C$23))
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
SUMPRODUCT(--($A$2:$A$23=A2),--($B$2:$B$23=B2),$C$2:$C$23)

Try duplicating the syntax that tests for column A and changing it for column C.

References to what was the summing column (C) should be changed to the new summing column, D.
 
Upvote 0
That worked, below is the actual formula if anybody is interested:


IF(AND(B2=B3, C2=C3), "",SUMPRODUCT(--($A$2:$A$547=C2),--($B$2:$B$547=D2),--($C$2:$C$547=E2),$D$2:$D$547))


Thank you

arich
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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