INDEX & MATCH using multiple criteria
Hi and thank you!
I'm using Smartsheet to track and complete medical cases. I'm using two sheets, one patient-facing that I've called the Intake sheet, and one for me, which I call the Tracking sheet. I'm using INDEX and MATCH to copy basic demographic data from the intake sheet to the tracking sheet. Since the same person can have more than one case, the one field that would be different and desired is the date of the case (for my purposes, multiple cases on the same date are treated as the same case). I'm using email as the unique identifier of the person, and would like to use the date of the case as the case identifier for each case that needs to be tracked. I've coded a flag on the intake sheet to let me know when there are duplicates, and I bring that result onto the tracking sheet using INDEX and MATCH. In the case of duplicates (only the date field of the case matters), I want to bring only the most recent case date forward onto the tracking sheet.
I have the INDEX and MATCH working for the other fields, but need to compare dates to get the most recent case.
=IFERROR(INDEX({Intake Date of Exposure}, MATCH([Email]@row, {Email}, 0)), "Email Not on Intake")