#1   Report Post  
pogo827
 
Posts: n/a
Default minutes between


Hi All

I want to be able to work out minutes between scheduled
arrival times and actual arrival times.

Example...... scheduled arrival...........actual
arrival...........Difference
----------------------22:00----------------------22:30-------------30mins
----------------------22:00----------------------00:30-------------150
mins
-----------------------22:00---------------------21:30...............-30
mins
............................00:30................. .........23:30...............
- 60 mins
.............................00:30................ .........00:15..................-15
mins


I know the schedule before hand so on a daily basis all I need to enter
is the actual this then should give me the difference.

Oh and yes just to make it fun for you it’s a night operation so the
first wagons arrive around 20:00 and the last ones in arrive around
02:00 the following morning but all I need is the difference between
scheduled arrival and actual arrival.

Kind regards Mick
PS feel free to email your excel files to I use
this as a email address I give the world


--
pogo827
------------------------------------------------------------------------
pogo827's Profile:
http://www.excelforum.com/member.php...o&userid=24108
View this thread: http://www.excelforum.com/showthread...hreadid=377141

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

If you don't expect differences of more than plus or minus 12 hours, try:

=TEXT((MOD(C1-B1+0.5,1)-0.5)*1440,"0 \min\s")

This assumes that actuals are in column C, scheduled in column B

In article ,
pogo827 wrote:

Hi All

I want to be able to work out minutes between scheduled
arrival times and actual arrival times.

Example...... scheduled arrival...........actual
arrival...........Difference
----------------------22:00----------------------22:30-------------30mins
----------------------22:00----------------------00:30-------------150
mins
-----------------------22:00---------------------21:30...............-30
mins
...........................00:30.................. ........23:30...............
- 60 mins
............................00:30................. ........00:15...............
...-15
mins


I know the schedule before hand so on a daily basis all I need to enter
is the actual this then should give me the difference.

Oh and yes just to make it fun for you it’s a night operation so the
first wagons arrive around 20:00 and the last ones in arrive around
02:00 the following morning but all I need is the difference between
scheduled arrival and actual arrival.

Kind regards Mick
PS feel free to email your excel files to I use
this as a email address I give the world

  #3   Report Post  
pogo827
 
Posts: n/a
Default


This does work in a older version of excel but in excel 2003 it
gives a #value, I thought that newer versions would be backward
compatible

=TEXT((MOD(C1-B1+0.5,1)-0.5)*1440,"0 \min\s")


--
pogo827
------------------------------------------------------------------------
pogo827's Profile: http://www.excelforum.com/member.php...o&userid=24108
View this thread: http://www.excelforum.com/showthread...hreadid=377141

  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Hmmm... that's new to me, but then I don't use that technique very often.

Either change to

=TEXT((MOD(C1-B1+0.5,1)-0.5)*1440,"0 \mi\n\s")

or

=TEXT((MOD(C1-B1+0.5,1)-0.5)*1440,"0 ""mins"")

or

=(MOD(C1-B1+0.5,1)-0.5)*1440

and format the cell(s) with one of the above Custom Format codes.

In article ,
pogo827 wrote:

This does work in a older version of excel but in excel 2003 it
gives a #value, I thought that newer versions would be backward
compatible

=TEXT((MOD(C1-B1+0.5,1)-0.5)*1440,"0 \min\s")

  #5   Report Post  
pogo827
 
Posts: n/a
Default


Thanks for that
I'm well impressed ;)
all 3 worked fine :)


--
pogo827
------------------------------------------------------------------------
pogo827's Profile: http://www.excelforum.com/member.php...o&userid=24108
View this thread: http://www.excelforum.com/showthread...hreadid=377141

Reply
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
Adding hours and minutes Patrick Excel Worksheet Functions 16 June 18th 08 09:24 PM
convert hours and minutes to minutes idaho Excel Discussion (Misc queries) 2 January 27th 05 09:45 PM
Adding minutes to time Randberger Excel Discussion (Misc queries) 4 January 19th 05 08:49 PM
Minutes bob Excel Worksheet Functions 3 December 17th 04 05:58 PM
convert minutes into hours:minutes tlf713 Excel Worksheet Functions 3 December 15th 04 10:42 PM


All times are GMT +1. The time now is 09:21 AM.

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"