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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,425
Office Version
  1. 2019
Change your formula to

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

Santo21

New Member
Joined
Sep 17, 2014
Messages
3
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:

Santo21

New Member
Joined
Sep 17, 2014
Messages
3
++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))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,891
Messages
5,834,263
Members
430,273
Latest member
Windrunner

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
Top