Skip to main content
Solved

Need to mark a record based on a time range

  • August 19, 2022
  • 2 replies
  • 27 views

Forum|alt.badge.img+4

I have a table where I need to mark when flights take off between 22:00 - 07:00. I would like an If statement where it marks the record with an X when this is true. I have date fields for the departure time but I just cant quite find how to have a general standing marker based on times rather that a specific time AND date.

Best answer by Kevin_Bower

Hey kevin! Its kevin, I figured it out for you. Converted the times to decimals.

IF(OR({Departure Time (Airport Time)} < 7.0,

{Departure Time (Airport Time)} > 22.0), ‘x’, BLANK())

2 replies

Forum|alt.badge.img+4
  • Author
  • New Participant
  • Answer
  • August 19, 2022

Hey kevin! Its kevin, I figured it out for you. Converted the times to decimals.

IF(OR({Departure Time (Airport Time)} < 7.0,

{Departure Time (Airport Time)} > 22.0), ‘x’, BLANK())


ScottWorld
Forum|alt.badge.img+35
  • Genius
  • August 19, 2022

Hey kevin! Its kevin, I figured it out for you. Converted the times to decimals.

IF(OR({Departure Time (Airport Time)} < 7.0,

{Departure Time (Airport Time)} > 22.0), ‘x’, BLANK())


You could also use the HOUR() function to pull the hour out of a time field.