Go Back  PPRuNe Forums > Misc. Forums > Computer/Internet Issues & Troubleshooting
Reload this Page >

How to calculate h and min with Excel?

Wikiposts
Search
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

How to calculate h and min with Excel?

Thread Tools
 
Search this Thread
 
Old 29th Sep 2002, 18:35
  #1 (permalink)  
Thread Starter
 
Join Date: Aug 2000
Location: formally Alamo battleground, now the crocodile with palm trees!
Posts: 965
Likes: 0
Received 0 Likes on 0 Posts
Question How to calculate h and min with Excel?

I am trying to design my own logbook with Excel. Being a total inexperienced user of the so-called Master of Spreadsheet program, I find myself unable to pass the first "programming" hurdle.

It is fairly easy to make calculations with Excel, not when it comes to time units however. What settings/formulae must be used to do the following:

01:45
00:56
---------
Yes, I still know how to do this in my head, Excel however ....

7 7 7 7
Squawk7777 is offline  
Old 29th Sep 2002, 18:44
  #2 (permalink)  
 
Join Date: Dec 1997
Location: Penarth South Wales
Posts: 950
Likes: 0
Received 0 Likes on 0 Posts
If you format the columns (or rows) with the following "Custom" format [hh]:mm , it will add up the hours correctly.

H
Hamrah is offline  
Old 30th Sep 2002, 08:15
  #3 (permalink)  
 
Join Date: Dec 1999
Location: Where?
Posts: 145
Likes: 0
Received 0 Likes on 0 Posts
This may also help

To calculate hours on a dailty basis, when finish time is after 24:00, use the following:

Format cells to HH:mm

Cell A1 is Start Time
Cell B1 is Finish Time

=IF(B1-A1>0,(B1-A1),(B1-A1)+1)

It works for me in Excel & Works when total time is less than 24 hours.

Hope this helps and makes sense.

Cheers,
idgas is offline  
Old 5th Oct 2002, 10:40
  #4 (permalink)  
 
Join Date: Apr 2000
Location: South of YSSY
Age: 72
Posts: 438
Likes: 0
Received 3 Likes on 1 Post
Smile

Haven't got Excel but an idea occurs...

If possible, try expressing times in angular measure (degrees, minutes and seconds). If Excel will handle angular measure in this format, otherwise remember the conversion from radians to degrees (2 times pi radians is 360 degrees).

These will total up to so many degrees, minutes and seconds. Just convert the degrees portion to hours and that might get you going in the right direction, especially if you are trying to total up logbook hours (which I assume is something like the intended function).

Dunno if this is helpful, but it is a lateral thinking approach which has worked for me in the past on a slightly different application.
criticalmass is offline  
Old 2nd Feb 2003, 04:55
  #5 (permalink)  
Thread Starter
 
Join Date: Aug 2000
Location: formally Alamo battleground, now the crocodile with palm trees!
Posts: 965
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

Hamrah is correct!

It took me a while to restart this project . The key to correct calculations is to put the hours in brackets [hh]:mm. If you don't do it, Excel will not recognise it as elapsed hours, therefore you cannot exceed 24 hours.

7 7 7 7
Squawk7777 is offline  
Old 12th Feb 2003, 13:05
  #6 (permalink)  
 
Join Date: Apr 1999
Location: www.e-jets.org
Posts: 154
Likes: 0
Received 0 Likes on 0 Posts
Do you still need help with this,

I can help with any questions you have


http://www.bigfoot.com/~P-air
P-air is offline  
Old 12th Feb 2003, 22:01
  #7 (permalink)  
 
Join Date: Jan 2001
Location: Far Far East - and a good touch of South
Posts: 29
Likes: 0
Received 0 Likes on 0 Posts
I have been using a home grown logbook package for 15 years now and the problems of Hours and Minutes (base 60) math is a sod. Particularly as the numbers grow. (Rounding errors etc). The only successful tactic I found (and it is totally reliable on even the most pedestrian system and software) - is to go back to minutes and do the Maths at that point and then return the answer to HH.MM format.

Here are Excell type routines : Assume HH.MM in A1

B1 : =(INT(A1)*60)+((A1-INT(A1))*100) ' This gets you MM

To recombine B1 to HH.MM

C1 : =(INT(B1/60))+(MOD(B1,60)/100) ' This gets you HH.MM

Note HH.MM format with a decimal point - NOT a colon.

Just put the Minutes into a seperate column and do all the maths there. Enjoy...

D&G
Dibble&Grub is offline  
Old 20th Feb 2003, 06:11
  #8 (permalink)  
 
Join Date: Feb 2000
Location: asia
Posts: 542
Likes: 0
Received 0 Likes on 0 Posts
Just to bring this one back to the top - note the comments about HH in brackets
stickyb is offline  
Old 21st Feb 2003, 13:44
  #9 (permalink)  
 
Join Date: Jan 2003
Location: SX in SX in UK
Posts: 1,082
Likes: 0
Received 0 Likes on 0 Posts
If you format the cells using the following :- Format - Cells - Time then pick the example '30.55.7' this will quite happily add up you hours past 100hr - at least it does on my electro-logbook.

BUT!! if you have Windows XP, this particular format has been removed and the time will only total up to 23:59
Kolibear is offline  
Old 23rd Feb 2003, 10:08
  #10 (permalink)  
 
Join Date: Dec 2000
Location: UK
Age: 60
Posts: 181
Likes: 0
Received 0 Likes on 0 Posts
Excel 97 users should use [h]:mm as it doesn't seem to like two h's.
Llademos is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.