Hello - I need help figuring out a lookup problem.
Table 1: A list of Pay Dates
Table 2: Daily timekeeper data with Week Start and Week End Date fields.
The goal: To find the Pay Date in Table 1 that is greater than the Week Start Date in Table 2 and no more than 13 days from from the Week End Date in Table 2.
[Week Start Date] < [Pay Date] and
DateTimeDiff([Pay Date], [Week End Date], 'Days') <= 13
Expressed differently, I need a way to tell the conditional statement to search Table 1 for a date that matches the conditions above. I am not sure if this is done via a function that I am just not familiar with or with a tool. Most of the discussions on Lookup seem to point everyone to the Join or Find Replace tools, but I am not seeing a way in either of those to apply a condition before looking for the value.
Thanks for any guidance you can provide.