search in multiple columns if a specific value exists

psdileep

New Member
Joined
Mar 15, 2014
Messages
10
I've data in 47000 rows and 20 columns. I've hidden all columns except two from which I need to do analysis.

I need to search in these two columns and identify if a particular string exists in either of the columns and return 'yes' or 'no'.

From the below example, I want to search for "Apple" in Col 1 and Col 2 and in Col 3, I should have row 2 and row 4 are marked as yes (for that matter some remark which says yes). Because 'Apple" can be found in row 2 and row 4.

Any formula or function I can use?

Col 1Col2
Apple is red

<tbody>
</tbody>
I like mangoes

<tbody>
</tbody>
Orange is orange

<tbody>
</tbody>
I am a boy

<tbody>
</tbody>
mango is yellow

<tbody>
</tbody>
I like apples

<tbody>
</tbody>
grapes are purple

<tbody>
</tbody>
I don’t know

<tbody>
</tbody>

<tbody>
</tbody>
 
Well, there are flaws with that formula, it'll incorrectly count "pineapple", "applecider" or "apple-cider", "applepie", etc.
 
Upvote 0

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,214,878
Messages
6,122,062
Members
449,064
Latest member
scottdog129

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