Santo21

New Member
I download a report from a central server in Excel format which has names and time to show total worked hours. In this report I need to add time in two columns to get the total hours.

Here is the example:
In the first column the time is given as :18:44 and in the second column :27:04. If I use the formula =SUM(a2:b2) it gives 0:00:00. But when I manually add a 0 before the time ie 0:18:44 & 0:27:04, it adds and shows result as 0:45:48.

Now to get the total time, I add 0, which takes longer time. Is there a way to get the total time in much easier way? Please help.

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

=SUM(TIMEVALUE("0"&A2),TIMEVALUE("0"&B2))

=SUM(TIMEVALUE("0"&A2),TIMEVALUE("0"&B2))

Thanks for your quick reply. This formula works when the time is :18:44 & :27:04 (mm:ss). But for certain employees, the time is 1:15:54 (hh:mm:ss) and :14:33 (mm:ss) or it can be in mm:ss and hh:mm:ss format. So, is there a way to make sure that when I calculate the total worked hours, the formula takes care of this?

Last edited:
++Special-K99
Special thanks to Special-K99, for helping me with the formula, with this formula I took someone else help and he modified the formula and helped me to resolve my query.

Formula is =SUM(IFERROR(TIMEVALUE("0"&C2),C2),IFERROR(TIMEVALUE("0"&D2),D2))

Replies
7
Views
106
Replies
5
Views
246
Replies
5
Views
179
Replies
3
Views
511
Replies
6
Views
267

1,196,274
Messages
6,014,390
Members
441,818
Latest member
itsfaisalkhalid

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.

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

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