SUM Hrs:Mins

scoobyblue

Active Member
Joined
Jun 30, 2004
Messages
380
I have a spreadsheet where I record details of clients I work for, totalling time worked per day. Above all the data I want a few boxes where I can enter a start & end date, client name and a calculation (sumproduct or something) to total the hours for that client from the start to end date inclusive. So by changing the dates and client name I can quickly identify hours worked.

Data column headlines as follows;

DATE CLIENT HRS:MINS

Hope all is clear, many thanks for any assistance.

Regards,
scoobyblue
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try like this. Format the result cell as Custom [h]:mm

=SUMPRODUCT(--(A2:A100>="1/4/2011"+0),--(A2:A100<="30/5/2011"+0),--(B2:B100="Mr X"),C2:C100)
 
Upvote 0
Hi,
Thanks for quick reply - I used your formula exactly and the total came to 12:25 (12hrs 25mins), when it should have read 36:25.

Any ideas?

Thanks.
 
Upvote 0
Sorry, I'd copied the formatting from a cell that was showing hrs:mins so assumed it was formatted correctly - it works now, many thanks.
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,768
Members
452,940
Latest member
rootytrip

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