time v cost calculation in Excel 2002 (XP)

G

Guest

I want to enter a start time and end time to show number of hour & minutes
spent against a task(done that) then I want to enter an hourly rate and
calculate the cost but I cant find a formula or calculation that converts the
time hours mins into a decimal (eg 5hr 40min = 5.66) to do the time/cost
calculation.
 
G

Guest

No factor is needed:

say a1 contains 8:50 and a2 contains 3:10 and the formula in a3 is:
=A1-A2

the value 5:40 will be displayed, but if you change the formatting of a3 to
General, then 5.666666667 will be displayed and can be used directly to be
multiplied by a rate.
 
N

Niek Otten

<if you change the formatting of a3 to General, then 5.666666667 will be displayed>

Only after you've multiplied by 24 (since time is stored as a fraction of a day)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


| No factor is needed:
|
| say a1 contains 8:50 and a2 contains 3:10 and the formula in a3 is:
| =A1-A2
|
| the value 5:40 will be displayed, but if you change the formatting of a3 to
| General, then 5.666666667 will be displayed and can be used directly to be
| multiplied by a rate.
|
| --
| Gary's Student
|
|
| "matelodave" wrote:
|
| > I want to enter a start time and end time to show number of hour & minutes
| > spent against a task(done that) then I want to enter an hourly rate and
| > calculate the cost but I cant find a formula or calculation that converts the
| > time hours mins into a decimal (eg 5hr 40min = 5.66) to do the time/cost
| > calculation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top