Is there an "is like" in Excel? ---- SOLVED -----

invisigirl

Board Regular
Joined
Mar 18, 2002
Messages
130
For some reason, my brain has passed away. I need a formula that returns one of two answers (that I supply) based on whether words in the MIDDLE of a cell are two certain words. I could do this with conditional formatting if there was an "is like" match, instead of just numeric possibilities like =<> etc.

So, in English, what the formula should SAY is this: "If cell B10 contains the words 'limited coverage,' display the text 'NOTE LIMITED COVERAGE!' If it doesn't, display nothing."

This would be so dang easy if those words were at the BEGINNING of the cell. Oh well. What has happened to my brain? It keeps thinking of things I could do in Access or Showcase, and I'm obviously overlooking something easy.

Help!
This message was edited by invisigirl on 2002-10-22 20:02
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Well, I could, but my users can't. It has to be something that displays just because they hit enter. The spreadsheet is already set up to give them other results just by entering a number in one cell...this is just an additional message I want to add.
 
Upvote 0
Juan, thanks!
There aren't any numbers in the cell I'm referencing. It begins with a word or words, but the words I'm looking for will be somewhere in the middle. What would I substitute for your suggestion in that case?
 
Upvote 0
Nothing, the FIND function (As well as the SEARCH) look for the first parameter ANYWHERE in the second parameter, if it finds it, it returns the position that it found it.
 
Upvote 0
Thanks so much! I had just taken out the ISNUMBER part, which left me with an error message on false results. Put it back in and it works fine.

Guess that's why I have so much trouble in Excel - my brain keeps rejecting the terminology. :)

Thanks again, Juan. Happy day!
 
Upvote 0
These work with your search string in D1.

1. Case sensitive:

=IF(FIND($D$1,A1)),"I found it","")

2. Non-case sensitive:

=IF(SEARCH($D$1,A1),"I found it","")


Regard,

Mike
 
Upvote 0
On 2002-10-23 04:53, Ekim wrote:
These work with your search string in D1.

1. Case sensitive:

=IF(FIND($D$1,A1)),"I found it","")

2. Non-case sensitive:

=IF(SEARCH($D$1,A1),"I found it","")

Mike,

Without an ISNUMBER test, the above formulas will error out, so you will never get "".

Functions like SEARCH, FIND, and MATCH return a number when they succeed, otherwise an error value. That's why it is often more appropriate to use an ISNUMBER test instead of an ISERROR, ISERR, or ISNA test with these functions.

Aladin
 
Upvote 0

Forum statistics

Threads
1,221,960
Messages
6,163,120
Members
451,814
Latest member
P_Wood

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