Adding time in two columns

Santo21

New Member
Joined
Sep 17, 2014
Messages
3
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 Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Change your formula to

=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?

Please do suggest.
 
Last edited:
Upvote 0
++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))
 
Upvote 0

Forum statistics

Threads
1,222,414
Messages
6,165,891
Members
451,992
Latest member
kaurmanjodh

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
Back
Top