Formula question with Text

J

JoinAZ

Hi, I'm trying to create a formula that looks at a cell containing a sentence in another worksheet (called Working sheet). I want to copy that entire cell to a new worksheet if the sentence contains the word "license". I can get it to work only if just the word license shows up by itself but not if there are other words in the sentence.
Here's what I have so far.
=IF('working sheet'!D1="license",Sheet2!D1)

Thanks for your help.
 
D

Dave R.

try

=IF(ISNUMBER(SEARCH("license",'working sheet'!D1)),Sheet2!D1,"")


JoinAZ said:
Hi, I'm trying to create a formula that looks at a cell containing a
sentence in another worksheet (called Working sheet). I want to copy that
entire cell to a new worksheet if the sentence contains the word "license".
I can get it to work only if just the word license shows up by itself but
not if there are other words in the sentence.
 
D

Dave R.

You're welcome, however for the record, your original post had

=IF('working sheet'!D1="license",Sheet2!D1)

which is why I used

Sheet2!D1

...rather than the more intuitive

'working sheet'!D1
 

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