Ok so here's the main formula I'm trying to use for my "Monday Pay Hours" field
Solved
How to modify only one specific part of the formula IF - example below
IF({Monday Start} = BLANK(), 0,DATETIME_DIFF({Monday End}, {Monday Start}, 'minutes'))/60-0.5
This gives me the exact hours worked, minus a half hour lunch break
It's almost perfect, but what I need is to tell it that - IF the formula all the way up to here:
IF({Monday Start} = BLANK(), 0,DATETIME_DIFF({Monday End}, {Monday Start}, 'minutes'))/60
equals less than 5, then don't add the last step of subtracting the 0.5.
Is this possible?
Best answer by Sho
Oh, I still hadn't answered your previous question.
How about a formula like this?
IF(
AND({Monday Start},{Monday End}),
IF(
DATETIME_DIFF({Monday End}, {Monday Start}, 'minutes')/60 >= 5,
DATETIME_DIFF({Monday End}, {Monday Start}, 'minutes')/60 - 0.5,
DATETIME_DIFF({Monday End}, {Monday Start}, 'minutes')/60
),
0
)
Login to the community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
