hours to calculate cost per minute

marreco

Well-known Member
Joined
Jan 1, 2011
Messages
609
Office Version
  1. 2010
Platform
  1. Windows
Hi.
A1 - = now () Suppose it is 10:00
A2 - 10:45 refers to the time of completion of work
A3 - (A1 - A2) * 24 When I make this account gives an absurd number
A4 - Cost of 30.00 minutes
A5 - A3 x A4


I can not make this account due to cell A3 to an absurd number. Now, when I use the formula = NOW () gives the right account


thank you very much
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

pplstuff

Well-known Member
Joined
Mar 9, 2012
Messages
951
Do you have a question? What happens when now() is after the time of completion? Does this data get moved to a database?
 
Upvote 0

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,836
Office Version
  1. 2010
Platform
  1. Windows
Now includes the date.

A3: =(MOD(A1,1) - A2) * 24

... though it seems odd that the completion time is greater than the current time.
 
Upvote 0

Forum statistics

Threads
1,195,635
Messages
6,010,839
Members
441,569
Latest member
PeggyLee

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top