Example Ask: I have a [Date] column with values like 2022-09-04 12:30:40
and want to find if the timestamp for that day is between 9:01am and 5:29pm.
Solution: Convert the time to minutes and check if the time in minutes is between the start and end time in minutes.
The formula for minutes is: Minute([Date]) + (Hour([Date]) * 60
- 9:01am in minutes is
9*60 + 1
- 5:29pm in minutes is
17*60 + 29
The final formula is:
Between(Minute([Date]) + (Hour([Date]) * 60), 9*60 + 1, 17*60 + 29)