Chesca, is the "Time" field saying what time of day they took the test? Or is it saying how long their test lasted?
Chesca, is the "Time" field saying what time of day they took the test? Or is it saying how long their test lasted?
Hey, Ron! Thanks for the reply. "Time" is the time they started the test NOT the length the test was.
Hey, Ron! Thanks for the reply. "Time" is the time they started the test NOT the length the test was.
Thanks for clarifying! Here's my solution if the appointments are in a Date field:
IF({Test Date/Time}=BLANK(),
"",
IF(
DATETIME_FORMAT({Test Date/Time}, "HH")<12,
"Morning",
IF(
DATETIME_FORMAT({Test Date/Time}, "HH")<17,
"Afternoon",
"Evening"
)
)
)

If you have JUST a time field, you'll need to set that field format to Duration. And duration is stored in seconds, so the formula would be
IF(
{Time}="",
"",
IF(
{Time}<43200,
"Morning",
IF(
{Time}<61200,
"Afternoon",
"Evening"
)
)
)
Thanks for clarifying! Here's my solution if the appointments are in a Date field:
IF({Test Date/Time}=BLANK(),
"",
IF(
DATETIME_FORMAT({Test Date/Time}, "HH")<12,
"Morning",
IF(
DATETIME_FORMAT({Test Date/Time}, "HH")<17,
"Afternoon",
"Evening"
)
)
)

If you have JUST a time field, you'll need to set that field format to Duration. And duration is stored in seconds, so the formula would be
IF(
{Time}="",
"",
IF(
{Time}<43200,
"Morning",
IF(
{Time}<61200,
"Afternoon",
"Evening"
)
)
)
Thank you SO much! I really appreciate your help. 🙂 @Ron_Daniel do you know if I can turn these times into a single select but still keep it in a formula?