Count formula with filters

Ebraham

Board Regular
Joined
Mar 21, 2015
Messages
215
Hi,

i have the below data where i want to filter on case column where it is A,B and C and count "Non Client" and NonClient" in Account column...... and than devide it with the total count of A,B and C.

AccountCase
addA
NonClientB
125Peding
NonClientB
Non ClientC
NonClientPeding
12426B
 

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
Maybe:

Book1
ABCD
1AccountCase
2addA0.6
3Non ClientB
4125Peding
5NonClientB
6Non ClientC
7NonClientPeding
812426B
9
Sheet19
Cell Formulas
RangeFormula
D2D2=SUM(COUNTIFS(A:A,"Non*Client",B:B,{"A","B","C"}))/SUM(COUNTIF(B:B,{"A","B","C"}))
 
Upvote 0
thanks it worked as required !!!

Just for understanding * works as optional for space?
 
Upvote 0
Yes, in the IFS functions, a * is a wildcard character, and matches anything. So here it matches either a space or nothing. It will match anything starting with Non and ending with Client, even NonspaceshipClient, but that's unlikely! It's also not case-sensitive. There are ways to check for exactly NonClient or "Non Client" if necessary, this was just quicker.

Glad to help!
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,525
Members
449,088
Latest member
RandomExceller01

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