Isabel has attended:
Excel Intermediate course
Excel Advanced course
VLOOKUP
Hi,
I have a spreadsheet where there is one tab with a list of MPs and their constituencies, and another tab with a list of schools we work with and their constituencies. I have done a VLOOKUP to match the MP with the school on the second tab.
However on the first tab, I now want to put the school name next to each MP if there was a match. It is kind of like doing the VLOOKUP backwards again. However it tells me it is invalid when I try.
The other problem is that some constituencies have several schools in them which are matched to one MP. Is there a way of matching these schools to the MP but having each match in adjacent rows?
Thank you!
RE: VLOOKUP
Hi Isabel,
Thank you for the forum question.
You can lookup a MP because you the MPs are unique on your MP table, when you want reverse lookup the MPs are not unique on the schools table. As you write "The other problem is that some constituencies have several schools in them which are matched to one MP".
The Vlookup should not return an error, but the first school on the school list. A Vlookup can only return one result.
It is possible to return more than one result but it is very complicated. I have found an example (see link below). I hope this can point you in the right direction.
https://www.get-digital-help.com/how-to-return-multiple-values-using-vlookup-in-excel/
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector