Lookup, match then sum to matrix .... is this possible?

blackduck

New Member
Joined
Sep 27, 2017
Messages
7
Hi, I have limited excel knowledge and I am not sure how to tackle this task. I have a survey that is for mentors and mentees wanting to participate in a mentoring program. I want to compare the responses from the mentees against the responses from the mentors to see how compatible the two people are and I want to put this in a matrix.

As an example, below is dummy data of what the survey would look like:

PersonWhatQ1Q2Q3Q4
Sammenteehappysadbluegreen
LukeMenteehappyangrypinkgreen
TomMenteehappymellowgreenred
****Mentorangrysadpurplepink
HarryMentorhappymellowredred
JohnMentorangryangryredgreen

<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>
</tbody>

In the matrix i need to produce, I need to compare the survey results from the mentor against the mentee, if they answer questions the same way then they get a score - I then need to total that score over the entire survey. I would like a score of 10 if Question 1 matches, 10 if question 2 matches, 30 if question 3 matches and 20 if question 4 matches. So using the example above the matrix would need to look like this:

****HarryJohn
Sam101010
Luke01020
Tom0300

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>


Anyone have any idea how I could create this matrix using formulas? I will need to be able to look up names in the survey, then compare the results from a particular question based on the names, then return a number if the cells match, then add that all together in a final score. Open to any suggestions on how to handle this situation. Thank you
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Welcome to Mr Excel

I think the results are different from the ones you showed. See if this is what you want.


A
B
C
D
E
F
G
H
I
J
K
L
1
Person​
What​
Q1​
Q2​
Q3​
Q4​
Question​
Q1​
Q2​
Q3​
Q4​
2
Sam​
mentee​
happy​
sad​
blue​
green​
Points​
10​
10​
30​
20​
3
Luke​
Mentee​
happy​
angry​
pink​
green​
4
Tom​
Mentee​
happy​
mellow​
green​
red​
5
Jack​
Mentor​
angry​
sad​
purple​
pink​
6
Harry​
Mentor​
happy​
mellow​
red​
red​
7
John​
Mentor​
angry​
angry​
red​
green​
8
9
10
Jack​
Harry​
John​
11
Sam​
10​
10​
20​
12
Luke​
0​
10​
30​
13
Tom​
0​
40​
0​
14

<tbody>
</tbody>


Table Question - Points in columns H:L

Formula in B11 copied across and down (gray area)
=SUMPRODUCT(--(INDEX($C$2:$F$7,MATCH($A11,$A$2:$A$7,0),0)=INDEX($C$2:$F$7,MATCH(B$10,$A$2:$A$7,0),0)),$I$2:$L$2)

Hope this helps

M.
 
Upvote 0
This is perfect - thank you so much for your assistance!!! I've tried it out and it works - you have saved me so much time. One more question - is there anyway to edit the formula so that if the cell is empty (lets say for question 1 sam and jack both leave the question blank) that the points are not assigned?:

Person
What
Q1
Q2
Q3
Q4
Sam
mentee
sad
blue
green
Luke
Mentee
happy
angry
pink
green
Tom
Mentee
happy
mellow
green
red
Jack
Mentor
sad
purple
pink
Harry
Mentor
happy
mellow
red
red
John
Mentor
angry
angry
red
green




<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
Assuming data setup like post #2 , try this in B11 copied across and down
=SUMPRODUCT(--(INDEX($C$2:$F$7,MATCH($A11,$A$2:$A$7,0),0)<>""),--(INDEX($C$2:$F$7,MATCH($A11,$A$2:$A$7,0),0)=INDEX($C$2:$F$7,MATCH(B$10,$A$2:$A$7,0),0)),$I$2:$L$2)

M.
 
Upvote 0

Forum statistics

Threads
1,214,996
Messages
6,122,636
Members
449,092
Latest member
bsb1122

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