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

Times in Excel

Old 19th April 2000 | 22:22
  #1 (permalink)  
spannersatcx
Guest
 
Posts: n/a
Question Times in Excel

I have written a spreadsheet for work that works out the monthly invoice for one of the airlines we handle. Depending on ATA and ATD and length on grnd determines the different charges we have to invoice for i.e if <3hrs rate x if >3hrs rate y, if after 1800 + 25%. Everything works except that if it arrives before midnight say 22:10 and goes at 02:00 if I put in 02:00 it comes up with ###### (bad data) but if I put in 26:00 (i.e. 24:00 + 2) it works fine. Anybody know of a way around this, the reason being I'm not always there, and others around me can't seem to get it!
 
Old 19th April 2000 | 23:37
  #2 (permalink)  
jfe117
Guest
 
Posts: n/a
Smile

A quick fix is to format your inputs as day/time;
19/04/00 22:00
20/04/00 02:00
should give a result (4:00)


------------------
'I may disagree with what you have to say, but I will defend, to the death, your right to say it' - Voltaire

[This message has been edited by jfe117 (edited 19 April 2000).]
 
Old 19th April 2000 | 23:50
  #3 (permalink)  
InFinRetirement
Guest
 
Posts: n/a
Wink

Spanners, I think JFE117 has got the idea - and he posted while I was looking at some spreadsheets I did.

However, I think if you go to Format/Cells and look at TIME you might find that the instructions you gave are 'bad data' 'cos you are 'asking' it to go BACK to 02:00 after having given it 22:10 or whatever. You do, therefore, need to IF the next day with a date, and the time. The cell format does in fact allow for that.

Hope that right.
 
Old 20th April 2000 | 01:58
  #4 (permalink)  
Tinstaafl
Guest
 
Posts: n/a
Unhappy

Another possibility is to compare the times. If the finish time is numerically LESS than the start time add 24 hrs to it & then subtract the start time.

That should compute the correct period.

Example of the method:

Start at 2200, finish at 0200

0200 is < 2200, therefore add 24 hrs = 26 hrs.

Subtract 22 hrs from 26 hrs =4 hrs period

Afraid I'm too lazy tonight to turn the above into an Excel formula though!
 
Old 20th April 2000 | 23:15
  #5 (permalink)  
spannersatcx
Guest
 
Posts: n/a
Thumbs up

Thanks all I'll give it a go tomorrow.
 

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.