Function to search array to identify 2 elements and output the matching cells corresponding column 1 value

OTOTO

Board Regular
Joined
Dec 23, 2013
Messages
209
Hi there. I am a toastmaster. My group decided that we would use a spreadsheet to sign up for roles on meeting dates. Accordingly I want to have the users fill out a userform to indicate
which dates they are interested in which roles. I have sheet1, which is seen below: It is a series of roles in the first Column (A2:A11) and a series of dates in the first Row (B1:J1).
The userform allows users to pull dates from a dropdown box. The form submits the dates along with their username to sheet 2. Sheet 2 is seen below. It contains Name, Time of entry and
the roles in the first row (A1:L1). Simple enough. What I need is the function that will be entered into the cells of sheet 1 to list the usernames for the respective dates and
roles as determined by the data entered in sheet2. Any takers?





1/23/20142/13/20142/27/20143/13/20143/27/20144/10/20144/24/20145/8/20145/29/2014
Toastmaster
Ah-Counter
Word of the Day and Grammerian
Timer
General Evaluator
Speaker #1
Evaluator #1
Speaker #2
Evaluator #2
Table Topics Master

<colgroup><col><col span="9"></colgroup><tbody>
</tbody>


<colgroup><col><col span="9"></colgroup><tbody>
</tbody>

Here's my sheet 2:

SubmitterTime SubmittedToastmasterAh-CounterWord of the Day and GrammerianTimerGeneral EvaluatorSpeaker #1 Evaluator #1Speaker #2Evaluator #2Table Topics Master
sotoole16/01/2014 17:19:5501/23/201405/08/201405/29/2014

<colgroup><col span="12"></colgroup><tbody>
</tbody>
 
Re: Why isn't this working? {=INDEX(Sheet2!A2:A1000, MATCH(B1,IF(Sheet2!C1:L1=A11,Sheet2!B3:L1000),0))} ?

Now your formula makes no references to sheet2
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Re: Why isn't this working? {=INDEX(Sheet2!A2:A1000, MATCH(B1,IF(Sheet2!C1:L1=A11,Sheet2!B3:L1000),0))} ?

Now your formula makes no references to sheet2

Change it to be 2, then... I'm confused about which sheet you reference. The formula I made goes in your report and hinges off your datasheet.

Also, my formula is for the US version of excel - I don't know what character sets other languages may have. So if you're not using the US version, that would explain the formula not working at this point - it works 100% without error for me.
 
Upvote 0
Re: Why isn't this working? {=INDEX(Sheet2!A2:A1000, MATCH(B1,IF(Sheet2!C1:L1=A11,Sheet2!B3:L1000),0))} ?

The first data set is Sheet 1:
01/23/1402/13/1402/27/1403/13/1403/27/1404/10/1404/24/1405/08/1405/29/14
Toastmaster
Ah-Counter
Word of the Day and Grammerian
Timer
General Evaluator
Speaker #1
Evaluator #1
Speaker #2
Evaluator #2
Table Topics Master

<colgroup><col><col span="9"></colgroup><tbody>
</tbody>

and the second data set is Sheet 2:
Submitter
Time SubmittedToastmasterAh-CounterWord of the Day and GrammerianTimerGeneral EvaluatorSpeaker #1 Evaluator #1Speaker #2Evaluator #2Table Topics Master
sotoole
16/01/2014 17:19:5501/23/2014 05/08/2014 05/29/2014
sotoole
16/01/2014 18:26:4801/23/2014 01/23/2014
sotoole
16/01/2014 18:29:00 01/23/2014 03/27/201404/10/2014 01/23/2014
sotoole
01/23/2014 01/23/2014
sotoole
01/23/2014 01/23/2014
sotoole
01/23/2014 01/23/2014
sotoole
01/23/2014

<colgroup><col><col><col><col><col><col span="3"><col><col><col><col></colgroup><tbody>
</tbody>


I think it should ref Sheet 2 like this:
=IFERROR(INDEX(Sheet1!$A:$A,MATCH(B$1,INDIRECT("Sheet2!"&CHAR(64+MATCH($A2,Sheet2!$C$1:$L$1,0)+2)&":"&CHAR(64+MATCH($A2,Sheet2!$C$1:$L$1,0)+2)),0)),"")

but again... no hits.
 
Upvote 0
Re: Why isn't this working? {=INDEX(Sheet2!A2:A1000, MATCH(B1,IF(Sheet2!C1:L1=A11,Sheet2!B3:L1000),0))} ?

OTOTO, you missed a sheet1 in there - ALL of them must be the same sheet.
 
Upvote 0

Forum statistics

Threads
1,214,948
Messages
6,122,420
Members
449,083
Latest member
Ava19

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