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
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