
I have a table (left) where I am defining, per row, the date/time of lessons for an individual.
I have a second table (right) which is my resulting timetable.
I am trying to use formula to populate the timetable based on the planning table - but without luck. I have tried multiple INDEX/MATCH formula plundered from web searches... but none achieve the correct result.
Each cell in the timetable, defined by their relative Time row value and Day column header values, should be populated with the corresponding Initials value where the Time/Day combo map to the Session/Day columns of the planning table.
Hence TUESDAY, 09:00-09:30 on the timetable should be calculated as AB, because cells K3 (Day) and L3 (Time) are mapped in the planning table - with the resulting Initials being AB (cell C3).
Hopefully the image will explain better than my words.
All suggestions gratefully received.
Links to sources I have tried:
- www.listendata.com/2013/05/excel-7-ways-to-lookup-value-based-on.html
- www.careerprinciples.com/resources/index-match-with-multiple-criteria#:~:text=array%5D%2C0))-,To%20perform%20an%20INDEX%20MATCH%20with%20multiple%20criteria%20in%20Excel,inputs%20in%20the%20MATCH%20formula.
Assuming no
Excel Constraintsas per the tags posted, then I believe this should do what you are looking for:• Formula used in cell Q2
The above formula needs to fill down and fill right!. However, you can use the following one as well, which spills for the whole data.
• Formula used in cell Q2
Note: From the screenshots of the post, looks like you are using
Structured ReferencesakaTables, therefore I have used tables in the formulas above and name of the table isTable1makesure to change the name in the formula as per suit.Another way:
• Formula used in cell Q2
Where:
_Dayrefers to=Table1[[Session 1 - Day]:[Session 3 - Time]]_Intrefers to=Table1[Initials]_Timerefers to=Table1[[Session 1 - Time]:[Session 3 - Time]]are defined named ranges which will automatically grab the structured references for a new entry in the records.