Comparing a duration to a decimal number using IF statement gives error.

I have a fairly simple table that contains shift start and end times, subtracts a lunch break, and gives the shift length.


I want to add a column that will calculate if a meal allowance is applicable if the shift duration is > 9.5, add meal allowance, otherwise add zero.


when I use the following


IF(I2> 9.5,17.57,0), where I2 is shift length


it gives the following error


”Durations can’t be compared to other data types”.


How can I get what I need pls?


TIA

iPad Air, iPadOS 16

Posted on Aug 3, 2023 2:49 AM

Reply
3 replies

Comparing a duration to a decimal number using IF statement gives error.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.