#1   Report Post  
LostNFound
 
Posts: n/a
Default Time Issues

I want to use excel to subtract two times and then divide a specified cell by
the sum and return the value. Example: I get to point A @ 7:00am depart @
9:00am and deliver 864 boxes. How many boxes per hour did I deliver? When I
sum 9:00am - 7:00am I get 2:00 then if I divide 864 by that I get 0:00 if I
leave it formatted as time. And if I change the format to general I get
10368?? I should get 432

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

XL stores times as fractional days, so you can use regular math
operations on them. To get fractional hours, multiply fractional days by
24:

A1: 864
A2: 7:00
A3: 9:00

A5: = A1/((A3-A2)*24)


In article ,
"LostNFound" wrote:

I want to use excel to subtract two times and then divide a specified cell by
the sum and return the value. Example: I get to point A @ 7:00am depart @
9:00am and deliver 864 boxes. How many boxes per hour did I deliver? When I
sum 9:00am - 7:00am I get 2:00 then if I divide 864 by that I get 0:00 if I
leave it formatted as time. And if I change the format to general I get
10368?? I should get 432

  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 1 Mar 2005 04:11:01 -0800, "LostNFound" wrote:

I want to use excel to subtract two times and then divide a specified cell by
the sum and return the value. Example: I get to point A @ 7:00am depart @
9:00am and deliver 864 boxes. How many boxes per hour did I deliver? When I
sum 9:00am - 7:00am I get 2:00 then if I divide 864 by that I get 0:00 if I
leave it formatted as time. And if I change the format to general I get
10368?? I should get 432


Excel stores time as fraction of a day.

So to get what you wish:

Boxes per hour: =Boxes/((Departure-Arrival)*24)

or

Boxes per hour: =Boxes/(Departure-Arrival)/24


--ron
  #4   Report Post  
 
Posts: n/a
Default

hi,
you are dealing with time.
24 hrs is 1 (day).
2 hours is 1/12 of 1(day) or .08 days
2 hours is not 2 (days)
your are not deviding by 2. your are deviding by .08
864/.08=10368
best you stick to whole numbers for this. avoid time.
9-7=2/864=462

-----Original Message-----
I want to use excel to subtract two times and then divide

a specified cell by
the sum and return the value. Example: I get to point A @

7:00am depart @
9:00am and deliver 864 boxes. How many boxes per hour did

I deliver? When I
sum 9:00am - 7:00am I get 2:00 then if I divide 864 by

that I get 0:00 if I
leave it formatted as time. And if I change the format to

general I get
10368?? I should get 432

.

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
Summing Time Pete Excel Discussion (Misc queries) 3 February 8th 05 12:52 PM
Calculating tvl time in Excel 2000 Rev.9.2720 Brandi Excel Worksheet Functions 5 January 27th 05 09:15 PM
entering numbers to display a time format Ian Williams/Eazygig Excel Discussion (Misc queries) 1 January 10th 05 11:57 AM
Help - Information with time and date PM Excel Discussion (Misc queries) 4 January 6th 05 08:25 AM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 4 November 18th 04 03:24 PM


All times are GMT +1. The time now is 01:27 AM.

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

About Us

"It's about Microsoft Excel"