LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 85
Default Time, & Ceiling?

I asked this question yesterday,
My spread sheet is used to track arrival times at a specific location. The
location has a scheduled arrival time in column C, in column D I enter the
actual arrival time when a vehicle arrives, and column E calculates the
difference.

I use the 1904 time system so Ill be able to calculate and show negative
time. Column E is set with =IF(D3=€€,€€,D3-C3) this will have column E appear
blank until the actual time is entered.

Without =IF(D3=€€,€€,D3-C3)in column E and with =D3-C3 this will show the
negative of the scheduled time i.e. -4:59 or -18:44. The schedule time is
always present in column C.

The trouble Im having now is; often a vehicle will arrive right on time
which will calculate like 0:00.
This is good, but after a few on time calculations some of will appear like
this -0:00, and thats not good.

Would anyone know of a way to prevent the negative sign from appearing when
the arrival time is on time?

Pete_UK answered;
If you changed it to this:
=IF(D3=€€,€€,CEILING(D3-C3,1/24/60))
this will round your result up to the nearest minute, so this should
correct for -0:00.

Today I tried that, and it worked for the result of 0:00. But when the
result is a minus number less than 0:00 the formula will show #NUM. If
possible I need to have the actual negative number.
Any help is appreciated.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ROUNDUP vs CEILING Rebecca_SUNY Excel Worksheet Functions 7 April 27th 23 07:43 PM
ceiling Dala Excel Discussion (Misc queries) 6 June 3rd 08 11:13 AM
Cumulative sum with a ceiling Max Excel Worksheet Functions 6 January 2nd 07 12:34 AM
Max, Ceiling, If, Etc Chris W via OfficeKB.com Excel Discussion (Misc queries) 3 November 22nd 05 09:40 PM
ceiling & floor Bill Ridgeway New Users to Excel 1 August 7th 05 02:32 PM


All times are GMT +1. The time now is 10:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"