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:

School of Art Architecture & Design
School of Built Environment & Engineering
Carnegie School of Education
Carnegie School of Sport
School of Clinical & Applied Sciences
School of Computing Creative Technologies & Engineering
School of Cultural Studies & Humanities
Department of Languages
School of Events Tourism & Hospitality Management
School of Film Music & Performing Arts
School of Health & Community Studies
Leeds Business School
Leeds Law School
Leeds School of Social Sciences


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

GuestMon15Jul1230,Monday 15 July 12:30,School of Clinical & Applied Sciences,Graduands & Guests,
GraduandMon15Jul1230,Monday 15 July 12:30,School of Clinical & Applied Sciences,Graduands & Guests,
School of Health & Community Studies,Monday 15 July 15:00,Black & White Lounge,HGMon15Jul1500,Honorary Graduates and Guests,
School of Clinical & Applied Sciences,Monday 15 July 12:30,Black & White Lounge,SGMon15Jul1230,Special Guests,
GuestThu18Jul1230,Leeds Business School,Thursday 18 July 12:30,Posthumous Award Guests,

<tbody>
</tbody>


<tbody>
</tbody>
Many thanks in advance,

Victoria
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,214,998
Messages
6,122,639
Members
449,093
Latest member
Ahmad123098

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