Letsdoexcel
New Member
- Joined
- Sep 20, 2017
- Messages
- 2
Good day, I have the following issue:
Table 1:
Column A: dateTime
Column B: Item ID
Table 2: (another worksheet)
Column D: dateTime 2
Column E: Item ID
Column F: User ID
I have to find the User ID for the related Item ID and dateTime 1 in Table 1 with the following criteria:
1. item ID from Column B = item ID from column E
2. Closest dateTime 2 to dateTime1 (dateTime2 must be always less than dateTime1, but the closest value. Basically it is the closest past date and time in relation to dateTime 2 of the same item ID.
Thank you in advance!
Table 1:
Column A: dateTime
Column B: Item ID
Table 2: (another worksheet)
Column D: dateTime 2
Column E: Item ID
Column F: User ID
I have to find the User ID for the related Item ID and dateTime 1 in Table 1 with the following criteria:
1. item ID from Column B = item ID from column E
2. Closest dateTime 2 to dateTime1 (dateTime2 must be always less than dateTime1, but the closest value. Basically it is the closest past date and time in relation to dateTime 2 of the same item ID.
Thank you in advance!