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."

Excel spreadsheet and time?

Thread Tools
 
Search this Thread
 
Old 28th Mar 2005, 15:18
  #1 (permalink)  
Thread Starter
 
Join Date: Jun 2001
Location: Some dusty outpost in the ME
Age: 45
Posts: 176
Likes: 0
Received 0 Likes on 0 Posts
Excel spreadsheet and time?

Hi all,

I've tried the various options for cells in an excel spreadsheet that I have created to duplicate my log book. However, whenever the hours are greater than 24, it resets and starts from zero - obviously for the next day....

Any idea's how I can over-rule this and display cumulative time?

Thanks in advance

F.
Funkie is offline  
Old 28th Mar 2005, 23:27
  #2 (permalink)  

Official PPRuNe Chaplain
 
Join Date: Apr 2001
Location: Witnesham, Suffolk
Age: 80
Posts: 3,498
Likes: 0
Received 0 Likes on 0 Posts
Excel stores date/time information as "days since 00 January 1900". If you subtract one from t'other, you get an answer in the same units. If you display it as date/time, then it appears as nonsense. If you try to add them when displayed in that way, then the total is even more nonsense.

Likewise if you just display time. That's because if you're displaying in hours and minutes, it will disregard whole days. Add 23:59 and 00:02 and you get 00:01 because that's what your clock face does.

However, if you display both as date time etc (however you prefer to see date and time), but calculate the difference in (say) hours, you can add them with no problem.

I made a little Excel sheet that shows how it works - it's here.
Keef is offline  
Old 29th Mar 2005, 03:56
  #3 (permalink)  
ανώνυμος
 
Join Date: Feb 2004
Location: Perth
Posts: 111
Likes: 0
Received 0 Likes on 0 Posts
This has been covered before. See here
R4+Z is offline  
Old 29th Mar 2005, 12:09
  #4 (permalink)  
Thread Starter
 
Join Date: Jun 2001
Location: Some dusty outpost in the ME
Age: 45
Posts: 176
Likes: 0
Received 0 Likes on 0 Posts
That has worked a treat!

R4+Z,

Thanks for the link, the [h]:mm worked prefectly.

Question though, why do the [] make the difference?

Cheers.
Funkie is offline  
Old 29th Mar 2005, 15:29
  #5 (permalink)  
 
Join Date: Dec 1998
Location: Escapee from Ultima Thule
Posts: 4,273
Received 2 Likes on 2 Posts
Without the [ ] Excel thinks it's a 'normal' date/time ie 24 hrs in a day, so once 24 hrs rolls over it has to increment a day & restart the hours count. No different to a stopwatch: Once it goes past 9/10's of a second it increments by one second & the tenth's start again at zero. Ditto the seconds --> minutes etc.

The [ ] tells Excel not to increment the day once the number exceeds the increment value, but to continue to count using the same units.
Tinstaafl is offline  
Old 29th Mar 2005, 20:38
  #6 (permalink)  
Thread Starter
 
Join Date: Jun 2001
Location: Some dusty outpost in the ME
Age: 45
Posts: 176
Likes: 0
Received 0 Likes on 0 Posts
makes sense.

Cheers
Funkie 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.