Combining 2 columns usiing wildcards and using concatenate from 2 other columns

elanda

New Member
Joined
Mar 27, 2012
Messages
15
Hello,

To simplify what I am trying to do is:

If
column a = fruit
column b = banana/s OR peach/es

then concate columns c and d.

I have done it by testing FRUIT and BANANA/S as below but I don't know how to also look for PEACH/ES as well to both return true.

=IF(AND(ISNUMBER(SEARCH("FRUIT",V3)),ISNUMBER(SEARCH("BANANA*",R3))), "TRUE", "FALSE")

How do I add the final FRUIT + BANANA/S OR PEACH/ES to produce a TRUE result?

much thank for any quidance
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
try

Code:
=IF(AND(ISNUMBER(SEARCH("FRUIT",V3)),or(ISNUMBER(SEARCH("BANANA*",R3)),ISNUMBER(SEARCH("PEACH*",R3))), "TRUE", "FALSE")
 
Upvote 0
Thanks for the quick reply Alan.

Your formula works a treat and such a simple solution.

Spent hours on this.

Cheers
Adrian
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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