Two-way lookup with dates (extract date based on person and visit)

Jebboh

New Member
Joined
Nov 8, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hey all,

I have an issue with my excel sheet where I am trying to extract a date from a calendar based on specific persons correct participation/visit. Essentially I have two tables: first one is a schedule where different participants are listed and everytime when they participate, one selects the occasion from a drop-down menu to track the progress and dates. The second table is on another sheet and is meant to further include the details of each participation and would be later used as source for pivot tables and graphs.

I've been trying two-way/nested xlookups and index/match methods to get the date of the occasion into the second table from the first based on person name and occasion code, however, I am really starting to run out of ideas now. Below a mock-up screenshot of the two tables. All help much appreciated!

1643978737834.png
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Could a person have the same Occasion code multiple times?
 
Upvote 0
Ok, how about
+Fluff 1.xlsm
ABCDEFGHI
101/01/202202/01/202203/01/202204/01/202205/01/202206/01/202207/01/2022
2AmyP1P2P3
3BenP1
4CarrieP1
5David
6
7
8
9
10
11AmyP101/01/2022
12BenP103/01/2022
13AmyP204/01/2022
14AmyP305/01/2022
15CarrieP106/01/2022
16
Data
Cell Formulas
RangeFormula
C11:C15C11=FILTER($B$1:$H$1,MMULT(SEQUENCE(,ROWS($A$2:$A$5),,0),($A$2:$A$5=A11)*($B$2:$H$5=B11))>0)
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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