Marc L
Excel Ninja
It seemed that 83 pairing is the maximum pairs
Same result with the Mentees worksheet sorted in descending order
but it may depend on the list order according to Mentors' free Mentees # …
It seemed that 83 pairing is the maximum pairs
Same result with the Mentees worksheet sorted in descending orderbut it may depend on the list order according to Mentors' free Mentees # …
cheq
I hoped to get an answer about Your three ... four case.
As well as, do data need to be some specific order that You could get expected results.
About Your the specific orders:
Do those need to be in those orders eg Programme & Gender would give different results than Gender & Programme?
You seems to hope have only those three criteria.
Same result with the Mentees worksheet sorted in descending orderbut it may depend on the list order according to Mentors remaining Mentees # …
5) Remaining Mentees and Mentors just casually matched
*Additionally, I would like to have the flexibility that all-female mentors can match with male/female mentees, while male mentors can only match with male mentees.
I try two different ways but nothing matches for Code alone after the previous steps (like for Gender & Code),maybe with a better attachment …
As this important information must be in the initial post !I agree with the steps summary as follows:• 1 : Programme & Gender & Code• 2 : Programme & Gender• 3 : Programme• 4 : Gender & Code• 5 : Code• 6 : Gender• 7 : remaining female mentors allocated to remaining mentees.That's it ?
According to points 7 & 8 then it shoud be an unique point like remaining mentors allocated to remaining mentees ?Whatever female or male mentors remaining as according to point 6 one mentors gender can be entirely allocatedso it may remain only a single mentors gender, female or male !So my point just follows your post #56 which is different than your last post !So after the point 6, if a mentors gender is remaining, whatever female or male,this gender must be allocated to the opposite gender mentees remainingor according to your post #56 only female mentors remaining must be allocated to the male mentees remaining ?
As point 6 is only for matching genders (A) so at point 7 only the non matching mentees genders remain …So your B is my post #58 point 7 ! Aka remaining female mentors allocated to remaining male mentees …
cheq
# StillI missing: I hoped to get an answer about Your three ... four case.
# Do data need to be some specific order that You could get expected results? ... because You've written next sentence:
I figured out the problem. It's caused because column A (Mentee ID) in the mentee list sheet is not in ascending order.
# I tried to find logic from Your previous writings
Latest idea: ... For the specific order, I hope to have: ...
# I tested to add one more criteria. ... there do not need anything new function ...
# Programme & Gender would give different results than Gender & Programme?
From my understanding, it would not give a different value.
... but with my sample, it will/would to give different results.
# for the matching: (As many as matching with 1) & 2) & 3) below is preferred)
... and after that Gender should overrule 1,2,3.
If Gender should take care - as the highest - then there should be enough Female/Male Mentors?
Same way there could be possible: Male/Male, Female/Female, Male/Female & Female/Male -combinations even with "No preference"-gender.
...
Seems there has changed details this-way-that-way - windy.
he remaining mentors will not process in point 7 and thus point 8 is needed. I hope I have not misled the logic.
# StillI missing: I hoped to get an answer about Your three ... four case. >> #42 Reply
I reviewed #42 reply again. What I mean is to get as many matching of 3 criteria matched. In that example, four cases fulfilled, which are the Mentees-Bail, Brittni, Nesta & Dick.
# Do data need to be some specific order that You could get expected results?
So, Your answer seems to be Yes, it needs.
ps. There are many other details, which makes differences in results ... if eg try to compare mine or Marc L's.
Yes. I think so.
# Genders - Female / Male / Non-binary
Someone would accept only same or only other gender and someone would say - 'no matter'.
Now, You logic has Male/Male and Female/Female, ( if it matches then that would be plus one point (or number of criteria points) )
... but if it do not match, is something absolute no? ... in my used logic - it's not.
Thanks for clarifying this part for me.
# My real sample has around 75 female mentors & 25 male mentors.
How many mentees are those ready to take?
... There are almost same number of those or
female mentors would have 10 and male mentors would have 30?
10 mentees per mentor
Male mentors: 25; Female mentors: 75
Male mentees: 294; Female mentees: 677
# This is the best logic I can think of at the present moment:
... think ...
I've use other logic - as I've have few times written - that's one reason with differences with results.
I can continue with my logic and try to use some of Your thoughts.
Sure! Thanks for helping me and take your time, please!
Ok so my new point 7 is the remaining mentors must be allocated to remaining mentees so post #56 to be forgotten …Another point : all the mentors' mentees # are pretty the same like for example 10 or it could be have some gaplike one has 5 and another as 40 for example ? Relative to speed execution …Pretty the same like 10 mentees per mentor, please.Still cell G3 as default mentees # or another cell or a hardcode value within the VBA procedure ?It's so nice to have cell G3 to input the mentees #, which is user-friendly.
cheq
Mentees per Mentor could be default eg two ... user will give a message, if it should be more.
View attachment 78840
Priority of criteria should mark in top row as above ( without those - no work ).
There could be 'more data' as sample ABC - without priority - no effect.
All selections effects results!
The logic of sample is still same.
Mentees-Mentors -sheet has 'quick filtering'-option.
According to posts #18 & 57 attachments, direction & VBA procedure updated in post #27, could be a bit faster …
cheq #71
# the logic mentioned in which post?
> #36 reply and after that those settings which You do in the beginning
# Are there any problems with less than "15" no. "Mentees per Mentors" then?
There are none problems, if You keep Your 10 - it's users choice.
... the results could get quicker, but about 500 Mentees won't get Mentors. It could be a challenge for those Mentees.
My sample should take care that case. (#73)
# Do You still hope to get that Gender-case to be more useful?