Text String Analysis 2

mimih23

Board Regular
Joined
Oct 14, 2010
Messages
89
Please see the original data source below:
[table="width: 500, class: grid, align: right"]
[tr]
[td]Indicator[/td]
[td]Sequence Data[/td]
[/tr]
[tr]
[td]Mom[/td]
[td]5,6,7[/td]
[/tr]
[tr]
[td]Dad[/td]
[td]2[/td]
[/tr]
[tr]
[td]Sister[/td]
[td]2,7[/td]
[/tr]
[tr]
[td]Brother[/td]
[td]6,7[/td]
[/tr]
[tr]
[td]Brother[/td]
[td][/td]
[/tr]
[tr]
[td]Mom[/td]
[td][/td]
[/tr]
[tr]
[td]Aunt[/td]
[td]2[/td]
[/tr]
[tr]
[td]Aunt[/td]
[td][/td]
[/tr]
[tr]
[td]Uncle[/td]
[td]5[/td]
[/tr]
[/table]

On Worksheet 2, I would like the formula to yield the following in the Sequence Data column. The Indicator column will simply be the source data without duplicates:
[table="width: 500, class: grid, align: right"]
[tr]
[td]Indicator[/td]
[td]Sequence Data? Yes or No?[/td]
[/tr]
[tr]
[td]Mom[/td]
[td]Yes[/td]
[/tr]
[tr]
[td]Dad[/td]
[td]No[/td]
[/tr]
[tr]
[td]Sister[/td]
[td]Yes[/td]
[/tr]
[tr]
[td]Brother[/td]
[td]Yes[/td]
[/tr]
[tr]
[td]Aunt[/td]
[td]No[/td]
[/tr]
[tr]
[td]Uncle[/td]
[td]Yes[/td]
[/tr]
[/table]

Sequence data equals any variation of the numbers 5,6,and/or 7 in the Sequence Data Column per Indicator. So if a 2 and a 7 exist in the sequence data column, because 7 is present, the formula should yield a "yes". Let me know if this makes sense. Thank you in advance for your help.:confused::confused::confused::confused:
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
The indicator column is already available in Sheet2 per a copy/paste and remove duplicate process. So for this purpose, yes, the indicator column in sheet 2 is already available.
 
Upvote 0
The indicator column is already available in Sheet2 per a copy/paste and remove duplicate process. So for this purpose, yes, the indicator column in sheet 2 is already available.

In B2 of Sheet2 control+shift+enter, not just enter, and copy down:

=IF(SUM(IF(ISNUMBER(SEARCH({5,6,7},IF(Sheet1!$A$2:$A$10=$A2,Sheet1!$B$2:$B$10,"#"))),1)),"Yes","No")
 
Upvote 0
Is "#" the default for the population of any digit found in the original source. Interesting.
Thanks this works!!! I need to grow a larger brain.
 
Upvote 0

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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