Sum Time in groups?

planetpj

Active Member
Joined
Jun 25, 2002
Messages
347
I have data that comes in in this format. It signifies working hours from ___ to ___. The sample only goes up to five days but the real one goes up to a full 31 days. I am using this formula right now =C2-B2+E2-D2+G2-F2+I2-H2+K2-J2 is there shortcut to this formula? so that I do not have to do this for 31 cell groups?

Thanks in advance PJ
Book1
ABCDEFGHIJKL
1Name1122334455
2X8:008:304:305:303:304:004:305:307:308:304:00
3Y0:00
4Z3:305:302:306:005:30
Sheet1
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
Try

=SUM(B2:BK2)-SUMPRODUCT(--MOD(COLUMN(B2:BK2)-COLUMN(B2)+1,2),B2:BK2)*2

format as [h]:mm
 

Watch MrExcel Video

Forum statistics

Threads
1,133,460
Messages
5,658,899
Members
418,475
Latest member
ExcelBeginner233

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