Text formula which evaluates to True/ False

Banker1

Active Member
Joined
Mar 10, 2005
Messages
463
Hoping someone here can help.

I'm working with a data set that includes a series of text strings I need to evaluate in order to "recode" the strings into a normalized list I can write formulas off of. For example:

Rich (BB code):
Apple - TV 
Banana - Radio
Carrot - Web
Date - Print

I know how to write formulas to find a particular string if I wanted to rewrite the formula for each line:

Rich (BB code):
Apple - TV =IF(FIND("TV",cell ref,1),"TV","")
Banana - Radio =IF(FIND("Radio",cell ref,1),"Radio","")
Carrot - Web =IF(FIND("Web",cell ref,1),"Web","")
Date - Print =IF(FIND("Print",cell ref,1),"Print","")

What I can't figure out is how to write a nested if to incorporate those formulas above into one in order to copy down the entire range... the FIND() formula returns a #Value! error if the test string isn't found. I'm looking for a formula which will return as True/ False error.

Any ideas?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
1] Use anandvarma's table

2] B1 formula copy down :

=LOOKUP(2,1/(FIND({"Apple","Banana","Carrot","Date"},A1)),{"TV","Radio","Web","Print"})

Regards
 
Upvote 0
Thanks for the suggestions. I should have specified that my data set may or may not have a dash separating the text and the values I'm looking for could be anywhere in the string, apologies.

Bosco, I like where your formula is going, any ideas how to make it less dependent on the other text in the string? I need to identify Tv, Radio, Print and Web regardless of what other text is in the string and regardless of the search string's position.

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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