SUMIFS Help

Gambit79

New Member
Joined
Dec 3, 2013
Messages
14
Hi All

I am having a lot of trouble trying to figure out a formula

I have a spreadsheet that is an extract from another system, it has peoples names, dates and hours worked.

In another spreadsheet I need to figure out how many days that they have worked by month.
i wrote a formula to calcualte the days but can't figure out how to automatically find them and add them based on a couple of criteria.

I've attached my spreadsheet

what I want to do is in the actuals sheet, under the month, I want to look for and add all the days that the person in column A has worked for that specific month, i.e. how many days has Adam worked for December.

Appreciate any help you may be able to offer.
Import Sheet
EMP NAMEWork DateEFFORTS HRSDays
Adam01-Dec-137.51
Adam02-Dec-137.51
Adam01-Jan-147.51
Adam02-Jan-147.51
Adam01-Feb-147.51
Adam02-Feb-147.51

<tbody>
</tbody><colgroup><col><col><col span="2"></colgroup>





Actuals Sheet
Dec-13Jan-14Feb-14
Adam
Mike
James
John
Mathew
Jim
Luke
Dianne
Nick
Bob

<tbody>
</tbody><colgroup><col><col span="4"></colgroup>
 

Some videos you may like

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

vlady

Active Member
Joined
Jan 26, 2012
Messages
413
maybe like this

=SUMPRODUCT((MONTH(Import!$B1:$B100)=MONTH(Actual!A1))*(YEAR(Import!$B1:$B100)=YEAR(Actual!A1))*(Import!$A1:$A100=Actual!$F10)*Import!$D$1:$D$100)
if the above works you can delete the colored blue below


Actual!A1 contains the date December 2013 B1=january 2014 ....C1,d1
F10 contains the first name down
 

Watch MrExcel Video

Forum statistics

Threads
1,122,670
Messages
5,597,482
Members
414,144
Latest member
UDFNewbie

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