Allocating Mentors to Students based on criteria

Georgieee_xo

New Member
Joined
Aug 8, 2018
Messages
1
Hi,

I am trying to find a formula which enables me to match students with a mentor on the basis of 'area of interest' and 'location'.

I have a spreadsheet with student and mentor data in separate sheets (approx. 150 students and 150 mentors). I have added a 'helper' column, and used a VLOOKUP to allocate mentors, based on the criteria, which works with a small population, but I have run into a major problem when applying it over 150 pairs. I want to allocate each mentor to only one student. At the moment, students with the same criteria are being allocated the same mentor (first one to appear on the mentor list who fits with the criteria). For example, John Smith (mentor) will be allocated to all students who match his criteria. Is there a way to get the formula to skip to the next mentor (who fits the criteria) if the previous mentor has already been allocated to a student?

I basically want to do the VLOOKUP + if mentor is already allocated, skip to next match.

Student Data (example)

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]First Name[/TD]
[TD]Surname[/TD]
[TD]Area of interest[/TD]
[TD]Location[/TD]
[TD]Mentor[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]Bloggs[/TD]
[TD]Finance[/TD]
[TD]London[/TD]
[TD]*VLOOKUP result*
Tom Jones[/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[TD]Doe[/TD]
[TD]Law[/TD]
[TD]Birmingham[/TD]
[TD]*VLOOKUP result*
Amy Adams
[/TD]
[/TR]
[TR]
[TD]Ryan[/TD]
[TD]Davies[/TD]
[TD]Politics[/TD]
[TD]London[/TD]
[TD]*VLOOKUP result*
John Smith[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Doe[/TD]
[TD]Medicine[/TD]
[TD]Cardiff[/TD]
[TD]*VLOOKUP result*
Julia Roberts[/TD]
[/TR]
[TR]
[TD]Emily[/TD]
[TD]Smith[/TD]
[TD]Politics[/TD]
[TD]London[/TD]
[TD]*VLOOKUP result*
John Smith**
[/TD]
[/TR]
</tbody>[/TABLE]

**should be Kate Moss as John Smith has already been allocated

Mentor Data (example)

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Helper
[/TD]
[TD]First Name
[/TD]
[TD]Surname
[/TD]
[TD]Practice Area
[/TD]
[TD]Location[/TD]
[/TR]
[TR]
[TD]PoliticsLondon[/TD]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]Politics[/TD]
[TD]London[/TD]
[/TR]
[TR]
[TD]FinanceLondon[/TD]
[TD]Tom[/TD]
[TD]Jones[/TD]
[TD]Finance[/TD]
[TD]London[/TD]
[/TR]
[TR]
[TD]LawBirmingham[/TD]
[TD]Amy[/TD]
[TD]Adams[/TD]
[TD]Law[/TD]
[TD]Birmingham[/TD]
[/TR]
[TR]
[TD]MedicineCardiff[/TD]
[TD]Julia[/TD]
[TD]Roberts[/TD]
[TD]Medicine[/TD]
[TD]Cardiff[/TD]
[/TR]
[TR]
[TD]PoliticsLondon[/TD]
[TD]Kate[/TD]
[TD]Moss[/TD]
[TD]Politics[/TD]
[TD]London[/TD]
[/TR]
</tbody>[/TABLE]

I hope that makes sense! Any help would be greatly appreciated.

Thank you :)
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Welcome to the MrExcel board!

I would add another helper column to list full name. Then use this, copied down

Excel Workbook
ABCDEF
1First NameSurnameArea of interestLocationMentor
2JoeBloggsFinanceLondonTom Jones
3JaneDoeLawBirminghamAmy Adams
4RyanDaviesPoliticsLondonJohn Smith
5JohnDoeMedicineCardiffJulia Roberts
6EmilySmithPoliticsLondonKate Moss
7AnnSmithPoliticsLondonNone Available
8
9
10HelperFirst NameSurnamePractice AreaLocationFull Name
11PoliticsLondonJohnSmithPoliticsLondonJohn Smith
12FinanceLondonTomJonesFinanceLondonTom Jones
13LawBirminghamAmyAdamsLawBirminghamAmy Adams
14MedicineCardiffJuliaRobertsMedicineCardiffJulia Roberts
15PoliticsLondonKateMossPoliticsLondonKate Moss
Mentor Allocation



The formula could be marginally simpler if you also added a helper column to the top table

Excel Workbook
ABCDEF
1First NameSurnameArea of interestLocationMentorArea/Location
2JoeBloggsFinanceLondonTom JonesFinanceLondon
3JaneDoeLawBirminghamAmy AdamsLawBirmingham
4RyanDaviesPoliticsLondonJohn SmithPoliticsLondon
5JohnDoeMedicineCardiffJulia RobertsMedicineCardiff
6EmilySmithPoliticsLondonKate MossPoliticsLondon
7AnnSmithPoliticsLondonNone AvailablePoliticsLondon
8
9
10HelperFirst NameSurnamePractice AreaLocationFull Name
11PoliticsLondonJohnSmithPoliticsLondonJohn Smith
12FinanceLondonTomJonesFinanceLondonTom Jones
13LawBirminghamAmyAdamsLawBirminghamAmy Adams
14MedicineCardiffJuliaRobertsMedicineCardiffJulia Roberts
15PoliticsLondonKateMossPoliticsLondonKate Moss
Mentor Allocation (2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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