Hi, I need a help with advanced lookup formula.
What i need to achieve is record IN and OUT time according to swipe times provided by security officers (Im transfering this data into pivot table).
Which looks like that:
pivot.jpg
Data in Pivot table is sorted from newest to oldest. It is not an issue for day shifts.
The problem that im having is Night shifts (marked as "Green" and "Yellow")
Screenshot 2022-05-12 113338.jpg
Formula needs to look for a TIME(from pivot table) where,
Action = "EXT Main Gate In (13) (In)",
IF Shift = "Yellow" or "Green" then TIME BETWEEN 17:00 AND 19:00
And date = date from master sheet.
Really similiar for OUT Time, the only difference is gonna be date = date from master sheet +1 and time between 05:00 and 07:00.
Bookmarks