How to retrieve and map survey responses from a vertical table to a horizontal

sp_key

New Member
Joined
Apr 28, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have executed a Customer Survey and now need to do the analysis of their responses.

I have one table with the questions and the responses as provided by the third party platform I used to conduct the survey. I don't want to change the format of that table as I want to make sure what I build is repeatable.

I now need to map (on a second table) the responses I received people's names.
I have already done significant work using INDEX/MATCH to go through a third table (not mentioned above) in order to retrieve people's names, professions and other characteristics.

Where I'm getting stuck is the mapping from Table A (vertical) to Table B (horizontal).
I have uploaded a screenshot to illustrate the problem.

Can you please help me retrieve the data I need for columns J-M?

Many thanks in advance
Spyros
 

Attachments

  • survey.PNG
    survey.PNG
    81.2 KB · Views: 7

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
One way is potentially this:
Book1
ABCDEFGHIJKLMNO
1
2QRIdFNLNIDFNLNQ1Q2Q3Q4
3Q1Yes555534BarrySmith555534BarrySmithYesYesYesNo
4Q2Yes555534BarrySmith345677MikeSmithNo   
5Q1No345677MikeSmith123456JohnSmithYes   
6Q3Yes555534BarrySmith
7Q1Yes123456JohnSmith
8Q4No555534BarrySmith
9
Sheet1
Cell Formulas
RangeFormula
K3:N5K3=IFERROR(INDEX($B$3:$B$8,AGGREGATE(15,6,(ROW($A$3:$A$8)-2)/(($A$3:$A$8=K$2)*($C$3:$C$8=$H3)),1)),"")
 
Upvote 0
One way is potentially this:
Book1
ABCDEFGHIJKLMNO
1
2QRIdFNLNIDFNLNQ1Q2Q3Q4
3Q1Yes555534BarrySmith555534BarrySmithYesYesYesNo
4Q2Yes555534BarrySmith345677MikeSmithNo   
5Q1No345677MikeSmith123456JohnSmithYes   
6Q3Yes555534BarrySmith
7Q1Yes123456JohnSmith
8Q4No555534BarrySmith
9
Sheet1
Cell Formulas
RangeFormula
K3:N5K3=IFERROR(INDEX($B$3:$B$8,AGGREGATE(15,6,(ROW($A$3:$A$8)-2)/(($A$3:$A$8=K$2)*($C$3:$C$8=$H3)),1)),"")

Hey, I can't thank you enough for your help :)
Just to make sure I understand what I'm doing, can you please help me by clarifying what is the meaning of the '15,6' next to AGGREGATE and the '-2' after ROW?

Cheers
Spyros
 
Upvote 0
Hi Spyros,

15 stands for the SMALL function and it will return the n-th smallest which is the k-value in the function argument. 6 allows to ignore errors caused in the array calculation where I divide row numbers by a logical check like 'equal to something'. Thus row numbers 1,2,...n get divide by 1, 0, 0, 1 and results in a array filled with numbers and errors.
Why ROW()-2? Because your range start in row 3, but index requires a correct position in the range A3:A8. So row(A3) should return 1, hence the minus 2.

I hope that's clear enough.
 
Upvote 0

Forum statistics

Threads
1,215,012
Messages
6,122,682
Members
449,091
Latest member
peppernaut

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