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

Another Excel Question - this time about "hours"


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

Another Excel Question - this time about "hours"

Old 15th November 2007 | 16:48
  #1 (permalink)  
Thread Starter
 
Joined: May 2004
Posts: 267
Likes: 0
From: Lincs
Another Excel Question - this time about "hours"

Hi all,

Looking for a bit of help with a spreadsheet I've made up to log flight hours. Basically, I want to insert takeoff time i.e. 17:45, then insert land time i.e. 00:30 and have the programme calculate the flight duration to the minute.

I've got it working so that as long as both events take place the same day, everything is fine. The trouble comes when the aircraft lands the next day and you have 00:30 - 17:45 and no total!

I'm using Excel97 SR-1 (I know, it's the company spec). Any thoughts?

Cheers

SBG
Spotting Bad Guys is offline  
Reply
Old 15th November 2007 | 18:04
  #2 (permalink)  
 
Joined: Aug 2007
Aviation Qualifications: ATPL
Posts: 57
Likes: 1
From: The World
Try this:

Assuming A1 is OFF CHKS, and B1 CHKS ON, then:
in C1: =IF(B1<A1,B1+1,B1)-A1
Of course do not forget to format hh:mm

MP
MetoPower is offline  
Reply
Old 15th November 2007 | 19:22
  #3 (permalink)  
bnt
15 Anniversary
 
Joined: Feb 2007
Posts: 755
Likes: 26
From: Dublin, Ireland. (No, I just live here.)
Excel does do full time calculations, but you'd need to enter the full date and time in a standard format. Then it'll recognised as such by Excel, and it'll know that the 00:30 is from the next day.
bnt is offline  
Reply
Old 15th November 2007 | 19:34
  #4 (permalink)  

Official PPRuNe Chaplain
 
Joined: Apr 2001
Posts: 3,498
Likes: 0
From: Witnesham, Suffolk
Or, put an extra bit in the time calculation that if arrival time is less than departure time, add 24 hours.

Departure and arrival times and elapsed time all in hh:mm. Dep in col A, Arr in col B
Flight time is computed by =IF(B1>A1,B1-A1,B1-A1+24)

The catch is, of course, that if you put in a silly time you'll get a silly result.
Keef is offline  
Reply
Old 15th November 2007 | 19:41
  #5 (permalink)  
25 Anniversary
 
Joined: Dec 1998
Posts: 3,038
Likes: 52
From: .
input 00:30 as 24:30 and it will calculate it.
spannersatcx is offline  
Reply
Old 15th November 2007 | 20:16
  #6 (permalink)  
Thread Starter
 
Joined: May 2004
Posts: 267
Likes: 0
From: Lincs
Thumbs down

Thanks all for the replies - very helpful and it's sorted now. I had tried the "24:30" trick but it was wise to that one and kep resetting it to 00:30!
The answer provided by metopower did the trick - thanks also BNT but as the date is already shown in a column header I was reluctant to input it a second time.
Cheers!
SBG
Spotting Bad Guys is offline  
Reply
Old 16th November 2007 | 04:24
  #7 (permalink)  
 
Joined: Feb 2000
Posts: 542
Likes: 0
From: asia
Another useful trick to remember is that if you format a cell as hh:mm:ss or something similar, then that is what is displayed, even if the cell contains a full date and time. (In fact all date/time cells contain a full date and time, starting from 1900/01/01)

So you can hold full date/time in cells but only display the time portion.
stickyb is offline  
Reply
Old 16th November 2007 | 11:56
  #8 (permalink)  
Thread Starter
 
Joined: May 2004
Posts: 267
Likes: 0
From: Lincs
Aaaahhh. So can you also get it to use the system clock to generate the date?
Spotting Bad Guys is offline  
Reply
Old 17th November 2007 | 03:50
  #9 (permalink)  
 
Joined: Feb 2003
Posts: 144
Likes: 0
From: Scotland
Yes you can use

TODAY() for todays date or
NOW() for the current date & time
cdtaylor_nats is offline  
Reply
Old 17th November 2007 | 17:12
  #10 (permalink)  

Official PPRuNe Chaplain
 
Joined: Apr 2001
Posts: 3,498
Likes: 0
From: Witnesham, Suffolk
Those functions are brilliant for doing the "last 30 days" etc stuff.

BUT they update whenever you open the sheet, so don't use them for individual log entries.
Keef is offline  
Reply
Old 18th November 2007 | 14:15
  #11 (permalink)  
Thread Starter
 
Joined: May 2004
Posts: 267
Likes: 0
From: Lincs
right. I was trying that last night.

What I want to do is have the column header as the date, then below have t/o, land, on- and off- station times, plus some additional data below - serviceability etc.

It's working so far.....but is still a bit mandraulic....

SBG
Spotting Bad Guys is offline  
Reply

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.