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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,213,536
Messages
6,114,207
Members
448,554
Latest member
Gleisner2

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