I have to columns of times that I need to find the difference between. These are 24hr times and I need to find the hours between an end time on a Monday and start time on the next Tuesday.
I have using this formula:
IF(AND(NOT({Tues Start Time}=“”), NOT({Mon Finish Time}=“”)), ROUND(ABS({Tues Start Time} - {Mon Finish Time}), 2), “”)
However, if a cell is empty, it still returns an error. I have tried using ISBLANK() also, but the same issue occurs.
As well as this, the outputs do not round to 2 decimal places, despite specifying.
I would like the output as a positive number of hours between the two times.
Can you suggest where this formula might be incorrect?
Hey,
Sure! It looks like your formula could have an issues on these areas:
The empty cell check isn’t working correctly. {Tues Start Time} and {Mon Finish Time} might be stored as numbers or text, and "" might not be correctly identifying blank cells. Instead, use ISBLANK({Column}) or check for "" explicitly.
The time difference calculation needs to handle crossing midnight correctly (since the times are on different days).
Rounding issue – The formula should ensure the calculation explicitly converts the difference to hours.
Using your formula above, calculates the correct times. However, no decimal places are showing and blank cells are still causing errors.
I think it must be the empty cell check that is not working correctly. The blank cells come from a jotform submission. I’m not sure if this is handled differently?