Countifs Error

Huey462

Board Regular
Joined
Jul 25, 2011
Messages
147
I have two columns of data, one is strictly numerical (other than the header) and the other displays a text string depending on the nested if. My problem is that I want to find the number of times each of the 3 text possibilities correspond to each numerical value.

Column D contains either 5, 6, or 7
Column L. contains either "Vacant', "SAR Match", or "SAR Mismatch"

the formula
=COUNTIFS(Merge!L:L,"Vacant",Merge!D:D,5)
returns "0" but a countif for "Vacant" and "5" return 24 and 3 respectively

I'm guessing the problem lies in counting a text and number combination. Is there a way around this issue?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Sounds like the values in D are TEXT numbers.

=COUNTIFS(Merge!L:L,"Vacant",Merge!D:D,"5")
 
Upvote 0
Do any of your Vacant & 5 occur on the same row?
 
Upvote 0
returns "0" but a countif for "Vacant" and "5" return 24 and 3 respectively
That by itself doesn't mean the countifs will return a non 0 result.

Countifs will only count occurances where both criteria are true 'on the same row'

So if L2 = Vacant and D2 = 5, then it's counted
But if L5 = Vacant and D5 = 7, then it's not counted
And if L8 = SAR Match and D8 = 5, then it's not counted
 
Last edited:
Upvote 0
Apologies for the delayed reply.

There are matches and the problem was user error. I do appreciate the feedback
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,209
Members
453,022
Latest member
RobertV1609

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