Countif not returning the value I need.

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
The values in B74 & B75 both have a space after the word "Inspect", so the countif returns 0 (ie false).
Remove the space & it should work
 
Upvote 0
OK, got it.

The AND comprises an ISBLANK, ISNUMBER, and a COUNTIF
The COUNTIF for P408 is searching for B71:B130 for J117

J117 is Inspect

There is no Inspect in the range B71:B130 therefore the AND() will fail and a blank will be returned.

For N408

J116 is Full
Full occurs in B71:B130 so you get a result for N408.
 
Upvote 0
You are awesome!! Thank you. What is a good countif replacement that will return true if there is a space?
 
Upvote 0
Me thinks that Special-K99 & I are looking at different sheets.
Not sure which sheet you were referring to, but I was talking about "MN SN 2" and I think Special-K99 is referring to "MN SN 1"
 
Upvote 0
You are awesome!! Thank you. What is a good countif replacement that will return true if there is a space?
The best way, would be to remove the space. Otherwise it could cause further problems in future.
 
Upvote 0
Me thinks that Special-K99 & I are looking at different sheets.
Not sure which sheet you were referring to, but I was talking about "MN SN 2" and I think Special-K99 is referring to "MN SN 1"

I totally forgot I had more than one sheet on that file. I was having trouble with "MN SN 2" sheet and the space after "Inspect" was what broke it
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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