IF THEN to test for numbers/words/empty spaces

K

kolbydayne

Does anyone know how or if If THEN statements can be used to tes
whether or not a cell contains either a number, a particular word, o
nothing at all (not a zero, but completely blank)?

Thanks for the help
 
P

Peo Sjoblom

=IF(ISNUMBER(A1),"Number",IF(COUNTIF(A1,"*Word*"),"Word
Found",IF(A1="","Blank","Neither")))

--

Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)
 
K

Kyle

for a particular number, just type in the number (ie. IF
(C8=40, 56, 57)). for a particular word, simply type the
word with quotes (ie IF(C8="go", 56, 57)). not sure about
the blank issue, so i won't speculate, sorry.
 
K

Kyle

for a particular number, just type in the number (ie. IF
(C8=40, 56, 57)). for a particular word, simply type the
word with quotes (ie IF(C8="go", 56, 57)). not sure about
the blank issue, so i won't speculate, sorry.
 
H

hgrove

Peo Sjoblom wrote...
=IF(ISNUMBER(A1),"Number",IF(COUNTIF(A1,"*Word*"),
"Word Found",IF(A1="","Blank","Neither")))
...

Quibble: possible OP needs ISBLANK(A1) rather than A1="" since if A
were text evaluating to "" it wouldn't be confused with 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top