How to count a column meeting a criteria

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
A column W5:W9999 contains attendance from either of 0, 1, ........31 of employees.
How to count no of employees meeting certain criteria like:
Total no. of emp with values >0.
Total no. of emp with values >0 but < 16.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
It WORKS.
But I am not sure whether it also counts '#N/A' or '#VALUE!' or not? Please reply. I want that the formula should not count '#N/A' or '#VALUE!'.
Plus, How to count if values >0 but less <16. Here also the formula should not count '#N/A' or '#VALUE!'.
 
Upvote 0
buxtongt
The formula is ALSO COUNTING appearances of '#N/A' or '#VALUE!'.
I want the formula should not count '#N/A' or '#VALUE!'.
Plus, How to count if values >0 but less <16. Here also the formula should not count '#N/A' or '#VALUE!'.
 
Upvote 0
Hi

Assuming the values and ERROR's are in the same W column:
=COUNTIFS(W5:W999,">"&0;W5:W999,"<"&16)

Vidar
 
Upvote 0
=COUNTIFS(W5:W999,">"&0;W5:W999,"<"&16)

NO it did not work. The Excel was not accepting the formula & returning back to the formula bar & blinking on 0.
 
Upvote 0
Hi

Sorry, I forgot to replace a semicolon in the middle of the formula with a comma.
(In Norway we use semicolon as seperator between arguments) :(
It should look like this:
=COUNTIFS(W5:W999,">"&0,W5:W999,"<"&16)

Vidar
 
Upvote 0
If your datas are in whole number, you can use

=FREQUENCY(W5:W999,{15,0})

Regards
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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