how to search for text within a range and return "text" value

edezagon

New Member
Joined
Feb 8, 2016
Messages
3
[TABLE="class: grid, width: 20"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]RED;BLUE;YELLOW;GREEN[/TD]
[TD]=ISNUMBER(SEARCH($C$1:$C$3,A1)) ?????[/TD]
[TD]PURPLE[/TD]
[TD]BLUE[/TD]
[/TR]
[TR]
[TD]RED;PURPLE;YELLOW;BLUE[/TD]
[TD]BOTH[/TD]
[TD]RED[/TD]
[TD]GREEN[/TD]
[/TR]
[TR]
[TD]PURPLE;GREEN;RED;[/TD]
[TD]BOTH[/TD]
[TD]YELLOW[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YELLOW;BLUE;PURPLE;[/TD]
[TD]BOTH[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PURPLE;RED;YELLOW[/TD]
[TD]COLOR1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]RED;YELLOW;[/TD]
[TD]COLOR1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BLUE;[/TD]
[TD]COLOR2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BLUE;GREEN;[/TD]
[TD]COLOR2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]RED;GREEN;[/TD]
[TD]BOTH[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PURPLE;[/TD]
[TD]COLOR1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I have above range.

I want to show all those that have ONLY values from COLUMN D or ONLY COLUMN C or BOTH (call them COLOR1 and COLOR2 and BOTH)
Can I do this on one formula or do I need 2 columns of answers? Either way is OK for me.

I've looked in the forum and found a few answers, but not range within a range of partial text.

Thanks,
Elisabeth in Brussels.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,223,889
Messages
6,175,226
Members
452,620
Latest member
dsubash

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