#1   Report Post  
LostNFound
 
Posts: n/a
Default Formula Help

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  
R.VENKATARAMAN
 
Posts: n/a
Default

9am-7am gives 0.00 in time. if you format as number it will give you
0.08333333... that means 0.083333333.... day. so 864/.0833333......./24 will
give your per hour i.e. 432

A1 ------7:00am
A2------9:00 am
A3------A2-A1 formatted as number will be 0.0833333
B2-----864
B3----- =B2/A3/24 will give you 432


LostNFound wrote in 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







  #3   Report Post  
 
Posts: n/a
Default


-----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
.
I tried this, 9 am minus 7 am formatted as a number

returns a fraction of 1 day , or 24 hours. So just
multiply .o83 by 24 to give you hours.Then do your
calculation.
  #4   Report Post  
LostNFound
 
Posts: n/a
Default

To: R.VENKATARAMAN
Thank You,
That gets me through one step of my process...


"R.VENKATARAMAN" wrote:

9am-7am gives 0.00 in time. if you format as number it will give you
0.08333333... that means 0.083333333.... day. so 864/.0833333......./24 will
give your per hour i.e. 432

A1 ------7:00am
A2------9:00 am
A3------A2-A1 formatted as number will be 0.0833333
B2-----864
B3----- =B2/A3/24 will give you 432


LostNFound wrote in 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








  #5   Report Post  
David McRitchie
 
Posts: n/a
Default

Both responders gave you a correct answer, anonymous gave you a reason,
but not sure if that was clear. I'd like to make the answers a bit more explicit
beyond the working formulas..

The reason you have to multiply time by 24 to get hours, or divide hours
by 24 to get time, is because date and time are stored as the number
of days and fractional days. More information on Date and Time at
http://www.mvps.org/dmcritchie/excel/datetime.thm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm


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
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 01:20 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"