Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vlookup

ResolvedVersion 2013

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

Mon 13 Apr 2020: Automatically marked as resolved.

Excel tip:

Hiding and unhiding rows using the keyboard

CTRL + 9 hides your columns and CTRL + SHIFT + ( unhides them although you would need to highlight the row letters either side as per normal

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.