How to COUNTIF cells is blank or contains specific text?

CarlStephens

Board Regular
Joined
Sep 25, 2020
Messages
128
Office Version
  1. 2016
Platform
  1. Windows
Hello All,

I am pulling my hair out with this one.

I have a range of cells that contain x3 "Rehired" and x2 blank cells, and I am using the COUNTIF formula that =COUNTIF(EPS'!$Z$3:$Z$5000,{"","Rehired"}) to count them, but this formula is not returning the total expected, which should be x5.

If I change it to =COUNTIF(EPS'!$Z$3:$Z$5000,"Rehired"), then it counts x3 as expected, and if I change it to =COUNTIF(EPS'!$Z$3:$Z$5000,"") then it counts it as x2 as expected.

But this =COUNTIF(EPS'!$Z$3:$Z$5000,{"","Rehired"}) formula only returns a total of x2 and I cannot figure it out, any help will be appreciated. Thank you.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Maybe something like this
Excel Formula:
=SUM(COUNTIF(EPS'!$Z$3:$Z$5000, {"","Rehired"}))
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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