Question about total time formula
Good Afternoon! I am successfully using the following formula to calculate total time from a start and end date and time:
=((VALUE(LEFT([End Time]@row, FIND(":", [End Time]@row) - 1)) + VALUE(RIGHT([End Time]@row, 2)) / 60) + ([End Date]@row - [Start Date]@row) * 24) - (VALUE(LEFT([Start Time]@row, FIND(":", [Start Time]@row) - 1)) + VALUE(RIGHT([Start Time]@row, 2)) / 60)
The guys using the sheet want me to take the : out of the time and change to an all numbers format (0600 vs. 06:00). I don't want to mess up my formula. Any ideas on how to make that change and still have the formula calculate total time? Thanks in advance!
Answers
-
Hi Tjmarget,
Try this formula :
=VALUE(([End Date]@row - [Start Date]@row) * 24) + VALUE(LEFT([End Time]@row, 2)) + VALUE(RIGHT([End Time]@row, 2)) / 60 - VALUE(LEFT([Start Time]@row, 2)) - VALUE(RIGHT([Start Time]@row, 2)) / 60
Hope this helps!
Have a good day,
Mathieu | evolytion.com
Mathieu | Workflow Consultant
info@evolytion.com
-
Hi Mathieu!
That did the job! Thank you so much for taking the time to help me with this.
-
Great! Glad to help!
Mathieu | Workflow Consultant
info@evolytion.com
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!