planetsair
New Member
- Joined
- Jan 19, 2012
- Messages
- 42
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hello
I have been searching for an answer but as yet have not managed to find quite the right solution, so I’m hoping someone here may be able to help me, please J
I am wanting to search (using a partial text) through a list of data (held in sheet 2) and have a formula return a list (in sheet 1) of all the ‘words’ from sheet 2 which contain that searched for text, and also their ID
Hopefully the example below will be a bit more explanatory !
In sheet 1 – I am wanting to search for CDE in sheet 2 column A,
I am wanting a list of results to show ALL the occurrences of “CDE” from sheet 2 column A
I am also wanting to have the matching ID be shown in sheet 1 column B
[TABLE="width: 651"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]sheet 1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]sheet 2
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]a
[/TD]
[TD]b
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]a
[/TD]
[TD]b
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][/TD]
[TD]Search
[/TD]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[TD][/TD]
[TD]TEXT
[/TD]
[TD]ID
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD][/TD]
[TD]CDE
[/TD]
[TD][/TD]
[TD][/TD]
[TD]2
[/TD]
[TD][/TD]
[TD]ABCDEFGHI
[/TD]
[TD]SK001
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3
[/TD]
[TD][/TD]
[TD]HYTGREBYD
[/TD]
[TD]SK002
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD]results
[/TD]
[TD][/TD]
[TD][/TD]
[TD]4
[/TD]
[TD][/TD]
[TD]BCGHGICDA
[/TD]
[TD]SK003
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD][/TD]
[TD]TEXT
[/TD]
[TD]ID
[/TD]
[TD][/TD]
[TD]5
[/TD]
[TD][/TD]
[TD]CDEGHYTEGT
[/TD]
[TD]SK004
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD][/TD]
[TD]ABCDEFGHI
[/TD]
[TD]SK001
[/TD]
[TD][/TD]
[TD]6
[/TD]
[TD][/TD]
[TD]HYTSBHFR
[/TD]
[TD]SK005
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD]CDEGHYTEGT
[/TD]
[TD]SK004
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I don’t know if this is relevant but in reality the text will be about 20-30 characters in length and the search criteria will also be over 15 characters (rather than the ‘CDE’ shown here)
Thanks for your help in advance
Sarah
I have been searching for an answer but as yet have not managed to find quite the right solution, so I’m hoping someone here may be able to help me, please J
I am wanting to search (using a partial text) through a list of data (held in sheet 2) and have a formula return a list (in sheet 1) of all the ‘words’ from sheet 2 which contain that searched for text, and also their ID
Hopefully the example below will be a bit more explanatory !
In sheet 1 – I am wanting to search for CDE in sheet 2 column A,
I am wanting a list of results to show ALL the occurrences of “CDE” from sheet 2 column A
I am also wanting to have the matching ID be shown in sheet 1 column B
[TABLE="width: 651"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]sheet 1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]sheet 2
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]a
[/TD]
[TD]b
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]a
[/TD]
[TD]b
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][/TD]
[TD]Search
[/TD]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[TD][/TD]
[TD]TEXT
[/TD]
[TD]ID
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD][/TD]
[TD]CDE
[/TD]
[TD][/TD]
[TD][/TD]
[TD]2
[/TD]
[TD][/TD]
[TD]ABCDEFGHI
[/TD]
[TD]SK001
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3
[/TD]
[TD][/TD]
[TD]HYTGREBYD
[/TD]
[TD]SK002
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD]results
[/TD]
[TD][/TD]
[TD][/TD]
[TD]4
[/TD]
[TD][/TD]
[TD]BCGHGICDA
[/TD]
[TD]SK003
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD][/TD]
[TD]TEXT
[/TD]
[TD]ID
[/TD]
[TD][/TD]
[TD]5
[/TD]
[TD][/TD]
[TD]CDEGHYTEGT
[/TD]
[TD]SK004
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD][/TD]
[TD]ABCDEFGHI
[/TD]
[TD]SK001
[/TD]
[TD][/TD]
[TD]6
[/TD]
[TD][/TD]
[TD]HYTSBHFR
[/TD]
[TD]SK005
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD]CDEGHYTEGT
[/TD]
[TD]SK004
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I don’t know if this is relevant but in reality the text will be about 20-30 characters in length and the search criteria will also be over 15 characters (rather than the ‘CDE’ shown here)
Thanks for your help in advance
Sarah