Subtotal

itsgrady

Board Regular
Joined
Sep 11, 2022
Messages
115
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
Seems like every time I work within a table the calculations are a little different if not in a table.

Trying to get a subtotal of one column in a table that counts all days greater than 15.

I tried both ways and I may be wrong both ways.

Subtotal(103,Blanks__CVS[Days]>15)

Subtotal(103,Blanks__CVS[Days,Blanks__CVS[Days]>15)

Thanks for you help.
 

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)
Let me share a trick I learned. I created a new column that uses Subtotal on each line to determine of the line is visible. Now I can use the column in my criteria to determine if it needs to be counted. You can use your table filter and the formula to count over 15 will only count those rows that are visible.

qLander 20230905.xlsm
ABCD
1Count over 15
25
3OneTwoDaysVisible
411311
5216151
6319141
7422131
8525201
9628211
1073141
1183481
1293771
131040301
141143311
151246321
161349141
171452101
Sheet2
Cell Formulas
RangeFormula
C2C2=SUM(COUNTIF(Blanks_CVS[Days],(Blanks_CVS[Days]>15)*(Blanks_CVS[Visible]=1)))
B5:B17B5=B4-5+2*4
D4:D17D4=SUBTOTAL(102,C4)
 
Upvote 0
Seems like every time I work within a table the calculations are a little different if not in a table.

Trying to get a subtotal of one column in a table that counts all days greater than 15.

I tried both ways and I may be wrong both ways.

Subtotal(103,Blanks__CVS[Days]>15)

Subtotal(103,Blanks__CVS[Days,Blanks__CVS[Days]>15)

Thanks for you help.
Let me share a trick I learned. I created a new column that uses Subtotal on each line to determine of the line is visible. Now I can use the column in my criteria to determine if it needs to be counted. You can use your table filter and the formula to count over 15 will only count those rows that are visible.

qLander 20230905.xlsm
ABCD
1Count over 15
25
3OneTwoDaysVisible
411311
5216151
6319141
7422131
8525201
9628211
1073141
1183481
1293771
131040301
141143311
151246321
161349141
171452101
Sheet2
Cell Formulas
RangeFormula
C2C2=SUM(COUNTIF(Blanks_CVS[Days],(Blanks_CVS[Days]>15)*(Blanks_CVS[Visible]=1)))
B5:B17B5=B4-5+2*4
D4:D17D4=SUBTOTAL(102,C4)

Thanks for the help. I will need to give this a try. It seems that ECCEL would have an easy way to do this.
 
Upvote 0
Another option also using a helper column
Excel Formula:
=COUNTIFS(Blanks_CVS[Days],">15",Blanks_CVS[Visible],1)
 
Upvote 0
Another option also using a helper column
Excel Formula:
=COUNTIFS(Blanks_CVS[Days],">15",Blanks_CVS[Visible],1)
Thanks for the help with the subtotal problem. Your solutions are always easy to follow and very helpful. Thanks!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,690
Members
449,117
Latest member
Aaagu

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