Sumif Function within Subtotal

mcbiz77

New Member
Joined
Feb 9, 2016
Messages
17
I'm looking for a subtotal equation that I can use that sums a total column when filtered based on a criteria (sumif) for tbd. I'm currently using the following equation........=sumif($A:$A,"tbd*",B:B). The table below shows what I have when a filter is in place. Three names pop up when the filter is in place, however I need to find the total for tbd. What subtotal equation can I use to find the total for tbd when a filter is in place? The output should be tbd=1.

NameTotal
John
1
tbd1
Rick1

<tbody>
</tbody>
 
Filtering and summing data from a table.... Use a Pivot Table. It handle both the various subtotals you want. (all levels or none) as well as facilitating all the filtering you may need.
2010 added Slicers for PivotTables and 2013 added the TimeLine-Slicer....
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I'm using the equation above however instead of using the name "John", I would add anything that contains "tbd". Some of the names are tbd, tbd 1, tbd 2, etc. I've tried using "*tbd" and "tbd*" however the total doesn't seem to add up.
 
Upvote 0
I'm using the equation above however instead of using the name "John", I would add anything that contains "tbd". Some of the names are tbd, tbd 1, tbd 2, etc. I've tried using "*tbd" and "tbd*" however the total doesn't seem to add up.

Needs adjusting for that request...

=SUMPRODUCT(SUBTOTAL(109,OFFSET(C2,ROW(C2:C8)-ROW(C2),0,1)),ISNUMBER(SEARCH("tbd",B2:B8))+0)
 
Upvote 0

Forum statistics

Threads
1,216,310
Messages
6,130,006
Members
449,552
Latest member
8073662045

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