Search and return a match from a range with a string of text

VictoriaExcel

New Member
Joined
Nov 15, 2018
Messages
14
Hi,

I need to search for a match between a range of text and strings of data in a table. If a match is found then I wish to return that match into the next column.

I have tried this formula =IF(ISNUMBER(SEARCH(Schools,[@Tags])),Schools,"") but it will only return data for cells on the same rows as the match with the range.

More details below ...

Range named 'Schools' on separate sheet (what is being searched for and also what should be returned:

[TABLE="width: 408"]
<tbody>[TR]
[TD]School of Art Architecture & Design[/TD]
[/TR]
[TR]
[TD]School of Built Environment & Engineering[/TD]
[/TR]
[TR]
[TD]Carnegie School of Education[/TD]
[/TR]
[TR]
[TD]Carnegie School of Sport[/TD]
[/TR]
[TR]
[TD]School of Clinical & Applied Sciences[/TD]
[/TR]
[TR]
[TD]School of Computing Creative Technologies & Engineering[/TD]
[/TR]
[TR]
[TD]School of Cultural Studies & Humanities[/TD]
[/TR]
[TR]
[TD]Department of Languages[/TD]
[/TR]
[TR]
[TD]School of Events Tourism & Hospitality Management[/TD]
[/TR]
[TR]
[TD]School of Film Music & Performing Arts[/TD]
[/TR]
[TR]
[TD]School of Health & Community Studies[/TD]
[/TR]
[TR]
[TD]Leeds Business School[/TD]
[/TR]
[TR]
[TD]Leeds Law School[/TD]
[/TR]
[TR]
[TD]Leeds School of Social Sciences


Example strings of text from 5 of 33,522 rows:

[TABLE="width: 1000"]
<tbody>[TR]
[TD]GuestMon15Jul1230,Monday 15 July 12:30,School of Clinical & Applied Sciences,Graduands & Guests,[/TD]
[/TR]
[TR]
[TD]GraduandMon15Jul1230,Monday 15 July 12:30,School of Clinical & Applied Sciences,Graduands & Guests,[/TD]
[/TR]
[TR]
[TD]School of Health & Community Studies,Monday 15 July 15:00,Black & White Lounge,HGMon15Jul1500,Honorary Graduates and Guests,[/TD]
[/TR]
[TR]
[TD]School of Clinical & Applied Sciences,Monday 15 July 12:30,Black & White Lounge,SGMon15Jul1230,Special Guests,[/TD]
[/TR]
[TR]
[TD]GuestThu18Jul1230,Leeds Business School,Thursday 18 July 12:30,Posthumous Award Guests,[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[/TR]
</tbody>[/TABLE]
Many thanks in advance,

Victoria
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Something like this?

Excel Workbook
CDEF
1TagsSchoolSchool of Art Architecture & Design
2GuestMon15Jul1230,Monday 15 July 12:30,School of Clinical & Applied Sciences,Graduands & Guests,School of Clinical & Applied SciencesSchool of Built Environment & Engineering
3GraduandMon15Jul1230,Monday 15 July 12:30,School of Clinical & Applied Sciences,Graduands & Guests,School of Clinical & Applied SciencesCarnegie School of Education
4School of Health & Community Studies,Monday 15 July 15:00,Black & White Lounge,HGMon15Jul1500,Honorary Graduates and Guests,School of Health & Community StudiesCarnegie School of Sport
5School of Clinical & Applied Sciences,Monday 15 July 12:30,Black & White Lounge,SGMon15Jul1230,Special Guests,School of Clinical & Applied SciencesSchool of Clinical & Applied Sciences
6GuestThu18Jul1230,Leeds Business School,Thursday 18 July 12:30,Posthumous Award Guests,Leeds Business SchoolSchool of Computing Creative Technologies & Engineering
7School of Cultural Studies & Humanities
8Department of Languages
9School of Events Tourism & Hospitality Management
10School of Film Music & Performing Arts
11School of Health & Community Studies
12Leeds Business School
13Leeds Law School
14Leeds School of Social Sciences
Lookup
#VALUE!
</td></tr></table></td></tr></table>
 
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