#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Time formula

Hi I have a small problem which should be easy to do but frustrating me just
a bit. I have some pool cars with different departments which need to be
charge for their use. I get weekly sheets in with start time and end time of
use. i.e. A1 08:45 B1 10:25 I need to calculate as follows C1 time car used
to nearest 15 minutes. D1 cost of use (C1*3.90). Should be easy but I think I
am making hard work of this and am sure there is a simple answer?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Time formula

Perhaps this in c1

=ROUND(SUM(B1-A1)*96,0)/96

Mike

"jockj215" wrote:

Hi I have a small problem which should be easy to do but frustrating me just
a bit. I have some pool cars with different departments which need to be
charge for their use. I get weekly sheets in with start time and end time of
use. i.e. A1 08:45 B1 10:25 I need to calculate as follows C1 time car used
to nearest 15 minutes. D1 cost of use (C1*3.90). Should be easy but I think I
am making hard work of this and am sure there is a simple answer?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Time formula

Thanks Mike h This solves the first past of question but not second for as
soon as i carry out the calculation C1*3.90 i get the answer 0.28 and should
be 6.825.

"Mike H" wrote:

Perhaps this in c1

=ROUND(SUM(B1-A1)*96,0)/96

Mike

"jockj215" wrote:

Hi I have a small problem which should be easy to do but frustrating me just
a bit. I have some pool cars with different departments which need to be
charge for their use. I get weekly sheets in with start time and end time of
use. i.e. A1 08:45 B1 10:25 I need to calculate as follows C1 time car used
to nearest 15 minutes. D1 cost of use (C1*3.90). Should be easy but I think I
am making hard work of this and am sure there is a simple answer?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Time formula

Hi,

I should have explained it's all about formats. From the formula

=ROUND(SUM(B1-A1)*96,0)/96

You will get a time of 1:45 or 1 hr 45 minutes if you simply multiply this
by your hourly rate you will get the same answer each time but how you see
that answer depends on the format.

Formatted as a number or general you will see something like 0.28
Formatted as time you will see 6:49 6 hours 29 minutes
A point to mention is thst .28 of a day is 6 hrs and 49 minutes

So to get the correct answer you must multiply by 24
=(C1*3.9)*24

formatted as general you will get the answer you want of 6.825
I'll leave it to you to work out the relationship between 6hrs 49 munutes
and 6.825 but to point you in the correct direction they are the same number
expressed in different ways.

Mike


"jockj215" wrote:

Thanks Mike h This solves the first past of question but not second for as
soon as i carry out the calculation C1*3.90 i get the answer 0.28 and should
be 6.825.

"Mike H" wrote:

Perhaps this in c1

=ROUND(SUM(B1-A1)*96,0)/96

Mike

"jockj215" wrote:

Hi I have a small problem which should be easy to do but frustrating me just
a bit. I have some pool cars with different departments which need to be
charge for their use. I get weekly sheets in with start time and end time of
use. i.e. A1 08:45 B1 10:25 I need to calculate as follows C1 time car used
to nearest 15 minutes. D1 cost of use (C1*3.90). Should be easy but I think I
am making hard work of this and am sure there is a simple answer?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Time formula

a bit simpler

=ROUND((B1-A1)*96,0)/96

"jockj215" wrote:

Hi I have a small problem which should be easy to do but frustrating me just
a bit. I have some pool cars with different departments which need to be
charge for their use. I get weekly sheets in with start time and end time of
use. i.e. A1 08:45 B1 10:25 I need to calculate as follows C1 time car used
to nearest 15 minutes. D1 cost of use (C1*3.90). Should be easy but I think I
am making hard work of this and am sure there is a simple answer?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Time formula

=MROUND(B1-A1,TIME(,15,))*93.6

Format cell as General


"jockj215" wrote:

Hi I have a small problem which should be easy to do but frustrating me just
a bit. I have some pool cars with different departments which need to be
charge for their use. I get weekly sheets in with start time and end time of
use. i.e. A1 08:45 B1 10:25 I need to calculate as follows C1 time car used
to nearest 15 minutes. D1 cost of use (C1*3.90). Should be easy but I think I
am making hard work of this and am sure there is a simple answer?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Time formula

Thanks both seem to be good ways round problem, Teethless mama I thought
mround would work will need to get IT to add to my computer at work can i ask
where does 93.6 come from? and Mike H where does 96 come from? Me a bit thick
with these things so appreciate the help. as the £3.90 is the hourly cost and
is due for review so may change soon.

"Teethless mama" wrote:

=MROUND(B1-A1,TIME(,15,))*93.6

Format cell as General


"jockj215" wrote:

Hi I have a small problem which should be easy to do but frustrating me just
a bit. I have some pool cars with different departments which need to be
charge for their use. I get weekly sheets in with start time and end time of
use. i.e. A1 08:45 B1 10:25 I need to calculate as follows C1 time car used
to nearest 15 minutes. D1 cost of use (C1*3.90). Should be easy but I think I
am making hard work of this and am sure there is a simple answer?

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Time formula

and Mike H where does 96 come from?

There are 96 quarter hours in a day

"jockj215" wrote:

Thanks both seem to be good ways round problem, Teethless mama I thought
mround would work will need to get IT to add to my computer at work can i ask
where does 93.6 come from? and Mike H where does 96 come from? Me a bit thick
with these things so appreciate the help. as the £3.90 is the hourly cost and
is due for review so may change soon.

"Teethless mama" wrote:

=MROUND(B1-A1,TIME(,15,))*93.6

Format cell as General


"jockj215" wrote:

Hi I have a small problem which should be easy to do but frustrating me just
a bit. I have some pool cars with different departments which need to be
charge for their use. I get weekly sheets in with start time and end time of
use. i.e. A1 08:45 B1 10:25 I need to calculate as follows C1 time car used
to nearest 15 minutes. D1 cost of use (C1*3.90). Should be easy but I think I
am making hard work of this and am sure there is a simple answer?

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Time formula

That was just to obvious I should of seen that, Thank you.

"Mike H" wrote:

and Mike H where does 96 come from?


There are 96 quarter hours in a day

"jockj215" wrote:

Thanks both seem to be good ways round problem, Teethless mama I thought
mround would work will need to get IT to add to my computer at work can i ask
where does 93.6 come from? and Mike H where does 96 come from? Me a bit thick
with these things so appreciate the help. as the £3.90 is the hourly cost and
is due for review so may change soon.

"Teethless mama" wrote:

=MROUND(B1-A1,TIME(,15,))*93.6

Format cell as General


"jockj215" wrote:

Hi I have a small problem which should be easy to do but frustrating me just
a bit. I have some pool cars with different departments which need to be
charge for their use. I get weekly sheets in with start time and end time of
use. i.e. A1 08:45 B1 10:25 I need to calculate as follows C1 time car used
to nearest 15 minutes. D1 cost of use (C1*3.90). Should be easy but I think I
am making hard work of this and am sure there is a simple answer?

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
formula for converting military time to standard time, etc Pattio Excel Discussion (Misc queries) 8 February 17th 08 01:12 AM
convert from percentage of time to time using complex formula in . Nush Excel Worksheet Functions 2 October 4th 07 05:20 PM
Formula to find Stop Time from Start Time and Total Minutes Jonathan Bickett Excel Worksheet Functions 5 March 7th 07 05:22 PM
template or formula for start time -finish time -total hours ple cc New Users to Excel 1 March 27th 06 06:06 PM
How do I set up a formula on a time sheet to calculate time in 1/. gschmid Excel Discussion (Misc queries) 2 January 18th 05 01:48 PM


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

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"