Another Excel Question - this time about "hours"
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
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

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.
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.
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.
Thread Starter
Joined: May 2004
Posts: 267
Likes: 0
From: Lincs
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
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
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.
So you can hold full date/time in cells but only display the time portion.
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
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





