Find Text in Group

tommiexboi

New Member
Joined
Apr 24, 2017
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hello,

Need your quick help.
I'm trying to write a formula where from a group I can find if it has a text (specific/partial).
"Has Black?" is the result I want.

[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl63, width: 64"]Animal[/TD]
[TD="class: xl63, width: 64"]Color[/TD]
[TD="width: 64"][/TD]
[TD="class: xl63, width: 64"]Animal[/TD]
[TD="class: xl63, width: 64"]Has Black?[/TD]
[/TR]
[TR]
[TD="class: xl63"]dog[/TD]
[TD="class: xl63"]brown[/TD]
[TD][/TD]
[TD="class: xl63"]dog[/TD]
[TD="class: xl63"]Yes[/TD]
[/TR]
[TR]
[TD="class: xl63"]dog[/TD]
[TD="class: xl63"]brown[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]dog[/TD]
[TD="class: xl63"]black[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]cat[/TD]
[TD="class: xl63"]white[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]cat[/TD]
[TD="class: xl63"]white[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]cat[/TD]
[TD="class: xl63"]black[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
How about


Book1
ABCDE
1AnimalColorAnimalBlack
2dogbrowndogyes
3dogbrown
4dogblack
5catwhite
6catwhite
7catblack
Data
Cell Formulas
RangeFormula
E2=IF(ISNUMBER(MATCH(D2&"|"&E1,INDEX(A2:A7&"|"&B2:B7,0),0)),"yes","no")
 
Upvote 0
Another option..

Excel Workbook
ABCDEF
1AnimalColorAnimalColorResult
2dogbrowndogBlackYes
3dogbrown
4dogblack
5catwhite
6catwhite
7catblack
Find Text in Group
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
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