Find a word in a sentence

C

Chicago2Paris

I searched the board, but couldn't find an exact answer to my issue, so I'm
looking for some help.

I have a column that may contain text or may be blank.

I want to place an "x" on another sheet if:
1. There is text in the cell AND
2. The cell does not contain the word "Already" in the sentence

Thanks!
 
T

T. Valko

=IF(AND(ISTEXT(A1),ISERROR(SEARCH("Already",Sheet1!A1))),"x","")

Ooops!

I left out the sheet reference in the ISTEXT function. Should be :

=IF(AND(ISTEXT(Sheet1!A1),ISERROR(SEARCH("Already",Sheet1!A1))),"x","")
 
R

Rick Rothstein

Shouldn't your Sheet1 reference go on the A1 in the ISTEXT function call as
well?
 
R

Rick Rothstein

Two things...

First, I left out the sheet reference, so my post should have been this...

=IF(Sheet1!A1="","",LEFT("X",COUNTIF(Sheet1!A1,"*already*")=0))

Second, if you *really* meant "text" as your post said, meaning pure numbers
should not return an "X", then use this instead...

=IF(ISNUMBER(Sheet1!A1),"",LEFT("X",COUNTIF(Sheet1!A1,"*already*")=0))
 
R

Rick Rothstein

It was my mistake... I accidentally read your referenced line (the one with
the '>' symbol in front of it) as the formula you were posting and responded
to that.
 

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