Excluding Text Entry's in a Countif

Kobi Merrikin

New Member
Joined
Oct 18, 2019
Messages
10
Hello!

I am trying to streamline a process I currently use.
I have a column of data returning a compliance score for each customer however if the customer has not had an order it display's "N/A". For example: 42.4, N/A, 100, 59.4, N/A, 75, 100. See picture.
I want to count the amount of customers that are compliant for the week. So those who are above 70 as well as those showing as N/A.
These customers are grouped into 4 buckets (for purposes of the example I will call them red, yellow, green, blue) so I want to count the compliant customers by bucket.
I can return those above 70% however the N/A cells cause a #VALUE! error.
The formula I currently have is
=IF(P2:P308>70,COUNTIF(B:B,"Red"),0)

Can anyone help how I can include the N/A cells?

Thanks in advance!
 

Attachments

  • Compliance Score.png
    Compliance Score.png
    4 KB · Views: 5

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Not sure that your formula will do what you think it will anyway, the first part is meaningless without an additional function to qualify the array.

Perhaps one of these? The first one counts greater than 70 in column P and Red in column B, the second counts N/A as well.

=COUNTIFS(P:P,">70",B:B,"Red")

=SUM(COUNTIFS(P:P,{">70","N/A"},B:B,"Red"))
 
Upvote 0

Forum statistics

Threads
1,214,412
Messages
6,119,365
Members
448,888
Latest member
Arle8907

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