Multi-date array lookup

Samhill62

Board Regular
Joined
Jun 2, 2016
Messages
54
Hi Excel gurus,
I have a conundrum I need solving (I have been working on it for at least 48 hours!

On worksheet 1, I have an array which is comprised of multiple columns and rows and each cell in the array is populated with a date. The dates represent dates of bonus payments made to Colleagues. The colleagues names are in the column at the farthest left side.

On worksheet 2, I have a table which has a header row of individual sequential dates and eventually a number of rows beneath.

I would like the table on Worksheet 2 to automatically list all of the names relating to the individuals who have been paid on the date that is in the respective header.
"Easy!" I hear you say, not for this numbskull!! Please help?!?

Many thanks in advance.

Sheet 1:



Sheet 2:

 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi Sam,

Can you copy & paste some sample data?
 
Upvote 0
Hi Sam,

Can you copy & paste some sample data?

Hi Ras,

Tried to insert pictures but even that failed. Here is the simplified version:

Array:

Bob
15/01/2019
23/01/2019
31/01/2019
08/02/2019
11/02/2019
Pete
15/01/2019
16/01/2019
23/01/2019


Mike
17/01/2019
31/01/2019
01/02/2019
29/04/2019
30/04/2019
Will
17/01/2019
26/02/2019
29/03/2019
15/04/2019
08/05/2019
Dave
19/01/2019
20/01/2019
04/02/2019
05/02/2019
20/02/2019
Alice
21/01/2019
29/01/2019
06/02/2019


Jane
22/01/2019
04/02/2019
20/02/2019
01/04/2019
25/04/2019
Steve
23/01/2019
31/01/2019
11/02/2019
19/02/2019
07/03/2019
Harry
23/01/2019
31/01/2019
11/02/2019
19/02/2019
20/03/2019

<tbody>
</tbody>


Output (on a different worksheet):

21/01/201922/01/2019 23/01/2019 24/01/2019###############
Alice Jane Steve Julianetcetc
Ted Ralph Harryetcetc
Mark Johnetc
etc

<tbody>
</tbody>

Cheers,

Sam.
 
Last edited:
Upvote 0
How about


Excel 2013/2016
ABCDEF
1
2Bob15/01/201923/01/201931/01/201908/02/201911/02/2019
3Pete15/01/201916/01/201923/01/2019
4Mike17/01/201931/01/201901/02/201929/04/201930/04/2019
5Will17/01/201926/02/201929/03/201915/04/201908/05/2019
6Dave19/01/201920/01/201904/02/201905/02/201920/02/2019
7Alice21/01/201929/01/201906/02/2019
8Jane22/01/201904/02/201920/02/201901/04/201925/04/2019
9Steve23/01/201931/01/201911/02/201919/02/201907/03/2019
10Harry23/01/201931/01/201911/02/201919/02/201920/03/2019
Sheet1



Excel 2013/2016
BCDEFG
121/01/201922/01/201923/01/201924/01/201911/02/201925/04/2019
2AliceJaneBobBobJane
3PeteSteve
4SteveHarry
5Harry
Sheet3
Cell Formulas
RangeFormula
B2=IFERROR(INDEX(Sheet1!$A$2:$A$10,AGGREGATE(15,6,(ROW(Sheet1!$A$2:$A$10)-ROW(Sheet1!$A$2)+1)/(Sheet1!$B$2:$F$10=B$1),ROWS($A$1:A1))),"")
 
Upvote 0
Many thanks Fluf, just brill. This is why you are gurus :cool:. AGGREGATE- new one on me!

Cheers once again for everyone’s input.

Sam.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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