Forum Discussion
askjacq
Oct 05, 2021Copper Contributor
if countif help
Here's my need. Is it possible? I have a column F with group identifiers. I want the formula to say "Staff" if the cell in column F says staff. It is doing that perfectly! But wait!! I also have ...
- Oct 05, 2021
To replace FALSE on empty string
=IF( COUNTIF(F2,"*"&"Staff - Former"&"*" ), "", IF( COUNTIF(F2,"*"&"Friend of Staff"&"*"), "", IF( COUNTIF(F2,"*"&"Staff"&"*"),"Staff", "" )))
SergeiBaklan
Oct 05, 2021Diamond Contributor
Didn't check the logic behind, but this formula
=IF( COUNTIF(F2,"*"&"Staff - Former"&"*" ), "",
IF( COUNTIF(F2,"*"&"Friend of Staff"&"*"), "",
IF( COUNTIF(F2,"*"&"Staff"&"*"),"Staff" )))
have no errors.
askjacq
Oct 05, 2021Copper Contributor
I copied your formula and excel let me tab out of it, so we are so much closer. But I'm getting "false" instead of an empty cell. How do I fix that?
=IF( COUNTIF(F2,"*"&"Staff - Former"&"*" ), "", IF( COUNTIF(F2,"*"&"Friend of Staff"&"*"), "", IF( COUNTIF(F2,"*"&"Staff"&"*"),"Staff" )))
Thank you!!
- SergeiBaklanOct 05, 2021Diamond Contributor
To replace FALSE on empty string
=IF( COUNTIF(F2,"*"&"Staff - Former"&"*" ), "", IF( COUNTIF(F2,"*"&"Friend of Staff"&"*"), "", IF( COUNTIF(F2,"*"&"Staff"&"*"),"Staff", "" )))- askjacqOct 06, 2021Copper ContributorThat worked! Thank you, Sergei!!
- SergeiBaklanOct 06, 2021Diamond Contributor
askjacq , you are welcome, glad to help