Returning Values based on text

Tsch

New Member
Joined
Mar 4, 2011
Messages
15
Good afternoon
I am looking for help with a formula that would return values based on a cell having a text string for example.
Cell A2 would contain any of the following texts:
Stripe Silver, Matte Silver, Silver/NI, Tin Silver

I would like a formula for cell A1 that would look at cell A2 and if the word silver appears return value Update Price and if silver does not appear return value NA

Cell A1 is currently conditional formatted to look for Update Price and bold, format letters to red as well as to return value update price for any cell having a value of 0 or less.

Thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Sorry...

My intial attempt assumes that silver will be at the beginning of the word.
Using the search as opposed to find might be better as search is not case sensitive.

=IF(ISNUMBER(SEARCH("silver", B2)), "Update price","N/A" )
 
Upvote 0
Note that the difference between FIND and SEARCH is that the find function is case sensitive (Silver <> silver) whereas the search function (Silver = silver).

Just food for thought in case silver may not always exist capitalized/uncapitalized.
 
Upvote 0
Sorry...

My intial attempt assumes that silver will be at the beginning of the word.
Using the search as opposed to find might be better as search is not case sensitive.

=IF(ISNUMBER(SEARCH("silver", B2)), "Update price","N/A" )


Stop posting the same stuff I do...;) lol
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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