Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-13-2016, 05:14 AM
pabyford pabyford is offline Calculate Time in Hours and Percent Mac OS X Calculate Time in Hours and Percent Office 2008 for Mac
Novice
Calculate Time in Hours and Percent
 
Join Date: Mar 2013
Posts: 4
pabyford is on a distinguished road
Default Calculate Time in Hours and Percent

I need a formula that will calculate the total time in Whole Hours & Percent of Hour.

It also needs to calculate over Midnight - 20:00 hrs to 01:30 hrs which should equal 5.5 hrs total time.

I have read through some similar issues but cannot find anything to covers the over midnight part.

I am using Office 2008 for MAC.



Thanks in advance.
Reply With Quote
  #2  
Old 12-13-2016, 06:29 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Calculate Time in Hours and Percent Windows 7 64bit Calculate Time in Hours and Percent Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

The over midnight calculation can be obtained using =MOD(end_time-start_time,1)

Quote:
I have read through some similar issues but cannot find anything to covers the over midnight part.
Astonishing as this is a well known problem

What do you mean by "Whole hours and % of an hour". What should the result look like?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 12-13-2016, 06:34 AM
pabyford pabyford is offline Calculate Time in Hours and Percent Mac OS X Calculate Time in Hours and Percent Office 2008 for Mac
Novice
Calculate Time in Hours and Percent
 
Join Date: Mar 2013
Posts: 4
pabyford is on a distinguished road
Default

So if the time on site is equal to 5 hours and 30 minutes, the answer I am needing is 5.5 hours or 3 hours and 15 minutes would be 3.25 hours.

Thanks.
Reply With Quote
  #4  
Old 12-13-2016, 06:38 AM
pabyford pabyford is offline Calculate Time in Hours and Percent Mac OS X Calculate Time in Hours and Percent Office 2008 for Mac
Novice
Calculate Time in Hours and Percent
 
Join Date: Mar 2013
Posts: 4
pabyford is on a distinguished road
Default

Also forgot to add that the time format is in 24 hrs using 0":"00
Reply With Quote
  #5  
Old 12-13-2016, 06:52 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Calculate Time in Hours and Percent Windows 7 64bit Calculate Time in Hours and Percent Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

To change sexagesimal to decimal, multiply by 24 and format as number
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #6  
Old 12-13-2016, 11:43 AM
xor xor is offline Calculate Time in Hours and Percent Windows 10 Calculate Time in Hours and Percent Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

An alternative to what has already been mentioned is to use (in C1):

=((B1<A1)+B1-A1)*24

where A1 holds start_time and B1 end_time, and where C1 is formatted General.
Reply With Quote
  #7  
Old 12-13-2016, 12:29 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Calculate Time in Hours and Percent Windows 7 64bit Calculate Time in Hours and Percent Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Xor, I like your unpersonalized approach....
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply

Tags
time calculation



Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate time from midnight on (Weekend hours, Fri-Sat night shift problem) stormrider2230 Excel 1 01-20-2016 01:41 PM
Calculate Time in Hours and Percent Calculate Average Time Elapsed in Days, hours and minutes Nina46 Excel 9 09-11-2015 02:09 AM
Calculate Time in Hours and Percent Need a formula to calculate turnaround time in hours ram_cl1981 Excel 5 09-29-2014 02:20 PM
Calculate Time in Hours and Percent Calculate difference by days and hours alysolyman Excel 6 05-13-2013 02:19 AM
Calculate Time in Hours and Percent How to get cells to calculate time? jrasche2003@yahoo.com Excel 2 02-09-2007 07:10 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft