Multiple nested if statements with the =IF(ISTEXT(SEARCH

paintdrying

New Member
Joined
Mar 28, 2018
Messages
9
So I just started cutting my teeth on some of the more complicated parts of Excel. I want to output one of a variety of text strings in a given cell based on a variety of text strings in a column to the the left. Some sort of fuzzy match would be excellent as well. I'm not using VBA either.

Practical example: output tiger ( in B5) every time Africa or India shows up in (A5), but also output horse of cow (in B5) whenever America or Europe show up in (A5).

Basically is would output a given text (of multiple possible) based on a a given text (of multiple) in the referencing cell .

<bdo dir="ltr">=IF(ISTEXT(SEARCH("Africa",A452)),A453,"lion") I believe this formula here will output lion whenever Africa Is put within the search. But how do I also say (within in the same cell) if the text happens to be America or Europe output cow </bdo>
 
What do you mean it only works for the 1st value? You only asked to have it check for multiple instances of Africa and America, not India and Europe, so that is all it is doing.
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
And I spelled Europe incorrectly in my formula, sorry that was a typo, but you can fix that part.
 
Upvote 0
Cross posted https://www.excelforum.com/excel-fo...-refrences-without-requiring-exact-match.html

Cross-Posting
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
ok sorry Mr. Excel. I actually didnt realise the two were connected one is mr. excell and the other is called excell forum
 
Upvote 0

Forum statistics

Threads
1,216,102
Messages
6,128,846
Members
449,471
Latest member
lachbee

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