Jul 09, 2018 12:34 PM
I thought this should be straight forward, but somehow it’s creating problems.
I have 2 date fields.
One to track what date and time work is started the other tracks time and date the work has finished.
Based on those to fields I need to find out how many hours is totally billable.
Though I could just minus the two - but I always seem to either get an #error or NaN
Anyone who can point me in the right direction?
Jul 10, 2018 12:15 AM
DATETIME_DIFF()
works for me:
I’ve used 'hour'
as the unit, but maybe you should use minutes and convert to hours to be able to bill the minutes too. I get NaN when a Date is not filled, ¿maybe there is your problem? You could check if there are the dates with IF()
to avoid that.
Jul 11, 2018 08:11 AM
Thank you that works