Hi,
I am posting a clip from a large spreadsheet below... headers take up the first 5 rows so the data starts from row 6 downwards.
Focus is on kit re-dispensations (column L), ignoring direct dispensations in column K. I'm not showing columns A-G as these are patient identifiers.
I have XLOOKUP set up to identify first kit re-dispensed on a given date for a given patient, so for my first patient, and re-dispensation date 10-NOV-2020 (see column L), I'm getting 208240 from column I. So far, so good.
The question is, how can I pull re-dispensed kit number #2 on the same date? In other words, can I have a formula tagging to kit #1 (208240) as a reference point and pull me kit #2 from the same date in column L (10 Nov 2020), which is kit # 226776? My problem is that dispensation and re-dispensation dates are all thrown together in a random sequence I can't just assume next entry in the spreadsheet.
I am posting a clip from a large spreadsheet below... headers take up the first 5 rows so the data starts from row 6 downwards.
Focus is on kit re-dispensations (column L), ignoring direct dispensations in column K. I'm not showing columns A-G as these are patient identifiers.
I have XLOOKUP set up to identify first kit re-dispensed on a given date for a given patient, so for my first patient, and re-dispensation date 10-NOV-2020 (see column L), I'm getting 208240 from column I. So far, so good.
The question is, how can I pull re-dispensed kit number #2 on the same date? In other words, can I have a formula tagging to kit #1 (208240) as a reference point and pull me kit #2 from the same date in column L (10 Nov 2020), which is kit # 226776? My problem is that dispensation and re-dispensation dates are all thrown together in a random sequence I can't just assume next entry in the spreadsheet.