A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Sara wrote:
not sure how to put the date and time into the same cell though?
Simply 11/10/2012 15:15 or 11/10/2012 3:15 PM. Use the appropriate short-date form for your region.
Sara wrote:
are you able to give me a seperate sum for column C (B-A) and D (C x 0.20)?
Sorry. You did say that the first time, but I missed it. Also, it seems that I misinterpreted what is in column D: it is total cost, not the hourly rate.
Previously, you wrote: "total the number of hours used in column C". I interpret that to mean that you want to display elapsed time a decimal number of hours, not in the form h:mm.
Do one of the following depending on whether you have date/time or just time (within a single 24-hour period) in A2 and B2.
C2: =(B2-A2)*24
or
C2: =(B2-A2+(A2>B2))*24
ideally formatted as Number instead of General so that you can control the appearance.
Then D2 is simply:
=ROUND(C2*0.2,2)
formatted as Currency if you wish.
PS: If you have many such calculations in column D, I suggest that you put the hourly rate (0.20) into some cell (e.g. X1), then reference that cell as follows:
=ROUND(C2*$X$1,2)
The use of $X$1 instead of X1 makes it easy to copy the formula down column D.