Notices
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?

Old 28th March 2005 | 15:18
  #1 (permalink)  
Thread Starter
 
Joined: Jun 2001
Posts: 176
Likes: 0
From: Some dusty outpost in the ME
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 March 2005 | 23:27
  #2 (permalink)  

Official PPRuNe Chaplain
 
Joined: Apr 2001
Posts: 3,498
Likes: 0
From: Witnesham, Suffolk
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 March 2005 | 03:56
  #3 (permalink)  
ανώνυμος
20 Anniversary
 
Joined: Feb 2004
Posts: 111
Likes: 0
From: Perth
This has been covered before. See here
R4+Z is offline  
Old 29th March 2005 | 12:09
  #4 (permalink)  
Thread Starter
 
Joined: Jun 2001
Posts: 176
Likes: 0
From: Some dusty outpost in the ME
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 March 2005 | 15:29
  #5 (permalink)  
25 Anniversary
 
Joined: Dec 1998
Posts: 4,282
Likes: 6
From: Escapee from Ultima Thule
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 March 2005 | 20:38
  #6 (permalink)  
Thread Starter
 
Joined: Jun 2001
Posts: 176
Likes: 0
From: Some dusty outpost in the ME
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


Thread Tools
Search this Thread

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

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