Total Hours worked

I am using the following formula and it is not populating a response.
=IF([Time in]@row = ",", IF([Time Out]@row = ",", ([Time Out]@row - [Time in]@row ) * 24))
Answers
-
@Amber K. Unsure what your Time Out and Time In columns contain, but assume it's in some sort of time format.
To subtract the time values, you'll need to wrap both column references in teh TIME() function to create a time object like this:
=IF([Time in]@row = ",", IF([Time Out]@row = ",", (time([Time Out]@row) - time([Time in]@row) ) * 24))
Darren Mullen, Author of: Smartsheet Architecture Solutions
Get my 7 Smartsheet tips here
Take your Smartsheet knowledge to the next level and become an expert. Join the Smartsheet Guru Elite
-
No value is returned. Should show 7 hours.
-
That is because neither of your time cells equal a comma. If you are trying to get it to run if neither are blank, you would use <> "".
=IF([Time In]@row <> "",
Help Article Resources
Categories
Check out the Formula Handbook template!