To convert an Excel time to money based on an hourly rate, first convert the time to a decimal value. In the formula shown, the formula in D5, copied down the table, is:
How this formula works
Excel times are stored as fractional parts of one day. For example, 12 hours is equal to 0.5, and 18 hours is equal to 0.75. This means if you try to multiply an Excel time by an hourly rate, you'll get a total far less than expected.
The trick is to first convert the Excel time to a decimal time by multiplying by 24.
=(B5*24)// returns 1
Then you can multiply by the hourly rate:
Note: technically, the parentheses in the formula above are not needed and added for clarity only.
Formatting time durations
By default, Excel may display time, even time that represents a duration, using AM/PM. For example, if you have a calculated time of 6 hours, Excel may display this as 6:00 AM. To remove the AM/PM, apply a custom number format like:
h:mm // display hours and minutes
In cases where calculated time exceeds 24 hours, you may want to use a custom format like:
[h]:mm // display hours > 24
The square bracket syntax [h] tells Excel to display hour durations of greater than 24 hours. If you don't use the brackets, Excel will simply "roll over" when the duration hits 24 hours (like a clock). This is the time format used in column B in the above example.
To convert a valid Excel time into decimal hours, simply multiply by 24. In the example shown, the formula in C6 is: = B6 * 24 which returns a value of 1. How this formula works In the Excel time system, one 24-hour day is equal to 1. This means...
To convert hours in decimal format to a valid Excel time , divide by 24. In the example shown the formula in C5 is: = B5 / 24 which returns 0.04167, the equivalent of 1 hours. Cell D6 shows the same result formatted as time, which displays 1:00. How...
To extract the time from a date that contains time (sometimes called a "datetime"), you can use a formula based on the MOD function . In the example shown, the formula in D5 is: = MOD ( B5 , 1 ) which returns the time portion of the value in B5, 1:...
Excel Formula Training
Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.