Sum working hours based on valid contract

Sasa1

New Member
Joined
Jan 13, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi community-

I'm looking for a formula to sum up working hours for various employees , grouped by Optician ID, if they had an active contract within a certain month.

I've played around with SUMIFS, but I get an error message, that it's not a formula.

=SUMIFS(G:G;B:B;J3;E:E;<=DATE(2021,3,1);AND(F:F>DATE(2021,3,1);F:F;=""))

Any pointers are most apreciated!

Be well!
Sasa
 

Attachments

  • MrExcel.PNG
    MrExcel.PNG
    62.9 KB · Views: 21

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Where are the contract dates stored? can you post your data using XL2BB tool? This will make it MUCH easier to try to assist you.
 
Upvote 0
If you put put actual dates in K2:R2 using the 1st of the month then you can put this in K3 dragged down & across
Excel Formula:
=SUM(FILTER($G$2:$G$100,($B$2:$B$100=$J3)*($E$2:$E$100<=K$2)*(($F$2:$F$100>=EOMONTH(K$2,0))+($F$2:$F$100=""))))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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