Searching multiple columns for text string

DarkVignette

New Member
Joined
Oct 2, 2014
Messages
3
HI everyone

I need to search two columns for a text string, and return a 'yes' or 'no'. The challenge I have is that the data is entered by a number of different people and they use a combination of lower and uppercase letters.

Currently I have this (thanks to a little worki on Google)

=IF(ISERROR(FIND(LOWER("discontinue"),LOWER(Z155),1)),"No","Yes")

But I need to extend this to search for the text string '"discontinue" on column Y too. I have tried

=IF(ISERROR(FIND(LOWER("discontinue"),LOWER(Y155:Z155),1)),"No","Yes")

but this doesn't return a correct response. I've also tried playing around with OR but can't seem to get this to function correctly, probably due to my limited skills.

Can anyone help?

P
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Welcome to MrExcel.

Use SEARCH if you want to ignore case:

=IF(SUMPRODUCT(--ISNUMBER(SEARCH("discontinue",Y155:Z155))),"Yes","No")
 
Upvote 0
Give this formula a try...

=IF(COUNTIF(Y155:Z155,"*discontinue*"),"Yes","No")
 
Upvote 0
SEARCH is a non-case sensitive function as opposed to FIND, rather than using FIND&LOWER/UPPER, you can simply use SEARCH
 
Upvote 0
Thanks for all the replies -all really helpful. Still finding my way around Excel so sometimes I miss the obvious!
 
Upvote 0

Forum statistics

Threads
1,216,207
Messages
6,129,508
Members
449,512
Latest member
Wabd

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