Hey there! You are trying to multiply time with the whole number in Excel but not getting what you want, right? This is because date and time are treated differently in Excel. Since it is easier to show than to explain it, let’s start with an example.
Column A contains the names of workers.
B has the time they worked for in HH:MM:SS format.
C contains pay per hour. It is too low, I know.
In column D we want the net payable amount for that employee.
When you try to directly multiply cells in excel you will give an answer like this.
For Raju it is 189.3333. Anyone can tell that it is incorrect. But why? It should be 4400, isn’t it?
Well, when a cell is formatted as date and time, 1 translates to 24 in that cell. So each value in B column is equal to “value/24”
So to get the hours as a number, we need to multiply the cell with 24 first.
When we multiply cell B2 with 24, we get 44 as the whole number. Now we can multiply it with C2 to get the correct value.
In cell D2 write this formula and copy it in cells below:
This will work in all versions of Microsoft Excel as it is simple math.
Here I tried to explain how time and date are treated in Excel and how to do multiplication of time in excel.
So how was it? Did you learn something new? Was it helpful? Share your questions and thoughts in the comments section.
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.