IF SEARCH Formulas with multiple condition

adiacal7

New Member
Joined
Jun 7, 2016
Messages
12
Hi mate I have some data as below


Orange JuiceOrange
Add Mango Jam#VALUE!
Filled up Coffe#VALUE!
Maybe repost#VALUE!

<tbody>
</tbody>

and I want to Search some word with some logic as below

=IF(SEARCH("Orange",B2),"Orange",IF(SEARCH("Mango",B2),"Mango",IF(SEARCH("Coffe",B2),"Coffe",IF(SEARCH("Repost",B2),"repost","Null"))))

I try it but it seems error value

Could someone help me please
 
Last edited:

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
In C2 enter and copy down:

=IFERROR(LOOKUP(9.99999999999999E+307,SEARCH({"coffee","mango","orange"},$B2),{"coffee","mango","orange"}),"null")
 
Upvote 0
WOW thanks mate it work,, Can I know What measning of 9.99999999999999E+307 I don't have ideas with that

 
Upvote 0

Forum statistics

Threads
1,215,360
Messages
6,124,489
Members
449,166
Latest member
hokjock

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