Count Filtered table with another criteria

ddander54

Board Regular
Joined
Oct 18, 2012
Messages
97
I have an Excel Table (Excel 2016) that I use this array formula to count the number of filtered rows of unique values.

=SUM(IF(FREQUENCY(IF(SUBTOTAL(3,OFFSET(A29,ROW(A29:A11459)-ROW(A29),0)),A29:A11459),A29:A11459),1))-1

So it counts the unique numbers in Col A with each filter.

What I need to do is modify it so that it counts the unique numbers in Col A for specific criteria from Col E (ie, "Billable", "Expense", "Capital").

For instance If I filter on Billable, then Billable = ###, Expense = 0, Capital = 0 and if I filter on Billable and Capital, then Billable = ###, Expense = 0 and Capital = ###

Thanks in advance,
Don
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
For a unique count of values from Column A, where the corresponding values in Column E equals "Billable", and where the data has been filtered, try...

=SUM(IF(FREQUENCY(IF(SUBTOTAL(3,OFFSET(A29,ROW(A29:A11459)-ROW(A29),0)),IF(E29:E11459="Billable",A29:A11459)),A29:A11459),1))-1

...confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,214,400
Messages
6,119,284
Members
448,885
Latest member
LokiSonic

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