can't get INDEX-MATCH to copy entire column

eritsuku

New Member
Joined
Jul 28, 2014
Messages
2
I have a list of dates in a table that correspond to steps along a process--it is for respondents who get invited to take a survey. Invitations ('invite') are sent to respondents, who then 'accept' the invitation, are then administered ('administer') the survey, and finally the survey gets scored ('score').

I would like to know a) how long each step of the process takes on average, and b) how long individual respondents take for each step. I would like to be able to choose any two steps (e.g., 'invite', 'score') to run these analyses. I have put in a dropdown in I2 and J2 to choose which two columns to compare. I would like to essentially create a second table that compares the two columns side-by-side, so I can see how long each respondent has taken.

I have tried =INDEX(Table1,MATCH($I$2,Table1[#Headers],0),MATCH($I$2,Table1[#Headers],0)) (and $J$2 for the second column), but I have two issues: it is returning the incorrect date, and I am not sure how to drag this formula down to retrieve all data from the corresponding column. Can someone offer any advice using formulas (I'm in an environment that frowns on macros/vba)?

The original spreadsheet has 40 columns of dates, which I believe are static. There are currently 36 respondents, and this list is dynamic. I hope to put this together for a colleague, so I am aiming for something "user-friendly."
Thank you in advance!
survey dates.xlsx
D
12
Sheet1
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
survey dates.xlsx
ABCDEFGHIJKL
1IDinviteacceptadministerscoreIDinviteaccept# daysaverage
214/10/20244/12/20244/15/20244/16/202414/10/20244/12/202422.3
324/11/20244/13/20244/14/20244/16/202424/11/20244/13/20242
434/11/20244/14/20244/15/20244/16/202434/11/20244/14/20243
544/12/20244/14/20244/16/20244/16/202444/12/20244/14/2024
6#REF!#REF!
7#REF!#REF!
8#REF!#REF!
9#REF!#REF!
10#REF!#REF!
11#REF!#REF!
12#REF!#REF!
13#REF!#REF!
14#REF!#REF!
15#REF!#REF!
16#REF!#REF!
17#REF!#REF!
18#REF!#REF!
19#REF!#REF!
20#REF!#REF!
21#REF!#REF!
22#REF!#REF!
23#REF!#REF!
24#REF!#REF!
25#REF!#REF!
Sheet1
Cell Formulas
RangeFormula
I2:J25I2=INDEX(INDIRECT("Table1[" & I$1 & "]"), ROW() - ROW(Table1[#Headers]))
K2:K4K2=[@accept]-[@invite]
L2L2=AVERAGE(K2:K25)
Cells with Data Validation
CellAllowCriteria
I1:J1List=$B$1:$E$1
 
Upvote 0
Hi

Mappe2
ABCDEFGHIJKLM
1IDinviteacceptadministerscoreidacceptscore# daysaverage
2110.04.202412.04.202415.04.202416.04.2024112.04.202416.04.202442,75
3211.04.202413.04.202414.04.202416.04.2024213.04.202416.04.20243
4311.04.202414.04.202415.04.202416.04.2024314.04.202416.04.20242
5412.04.202414.04.202416.04.202416.04.2024414.04.202416.04.20242
Tabelle1 (2)
Cell Formulas
RangeFormula
H2:J5H2=CHOOSECOLS(Table14,1,MATCH(I1,Table14[#Headers],0),MATCH(J1,Table14[#Headers],0))
K2:K5K2=CHOOSECOLS(Table14,MATCH(J1,Table14[#Headers],0))-CHOOSECOLS(Table14,MATCH(I1,Table14[#Headers],0))
M2M2=AVERAGE(K2#)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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