Filter then Subtotal

marshak

Board Regular
Joined
May 28, 2007
Messages
65
Hi all,

In need of some major help for a report due tonight.

The below calculations fill my table with values based on distinct customer numbers (customer numbers are in column A)

I created column C, because it counts the number of actual entries (that is, a customer number found in in Column A can have multiple entries)


J7 formula:
=COUNTIF(D10:D3000, "$0.00")


K7 formula:
=COUNTIF(F10:F3000, "$0.00")


L7 formula:
=COUNTIF(B10:B3000,"<$0.00")+COUNTIF(B10:B3000,">$0.00")-M7


I now need to be able to see the total of entries in the table. But I cannot figure out how to combine subtotal and countif to produce a value.

I need formulas for cells J8, K8 and L8

For example, The number of customers with only $0.0 is 137. But how many entities? I need a formula that will use the countif formula to filter (=COUNTIF(F10:F3000, "$0.00") AND then subtotal the values found in column G.

I am sorry if this is confusing.
 

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
For example, The number of customers with only $0.0 is 137. But how many entities? I need a formula that will use the countif formula to filter (=COUNTIF(F10:F3000, "$0.00") AND then subtotal the values found in column G.

Try this:

=SUMIFS(G10:G3000,F10:F3000,"$0.00")
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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