Sum values that meet certain criteria

vagabond225

New Member
Joined
Mar 25, 2009
Messages
5
Hi,

I have a spreadsheet that is set out to look similar to a MS Project plan, with dates across the top, users in column A and Assignments in column B. In the corresponding cell that matches the user, date and assignment they will enter the number of hours they anticipate working on the assignment.

I then have a summary sheet that covers all assignments, week ending dates and users. I want to be able to calculate the hours and copy it into the cell in the summary sheet that matches the Day, User and Assignment. I have tried using SUMIF, but this requires the criteria cells to all be in columns, but with this sheet the dates are in a row.

Can anyone please help with this?

Regards,

Adam
 
Hi,

That is perfect. Thank you very, very much. Just what i needed.

Cheers,

Adam

Just a small note:

There is no need for the -- bit in:
Code:
=SUMPRODUCT(
    ('Project & Risk Mgmt'!$A$3:$A$20='March 2009'!$A7)*
    ('Project & Risk Mgmt'!$B$3:$B$20='March 2009'!D$4)*
    ('Project & Risk Mgmt'!$C$1:$H$1='March 2009'!D$5),
    ('Project & Risk Mgmt'!$C$3:$H$20))
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
There is no need for the -- bit in

I agree, that the use of double unary would be redundant ( I plonked it in just for the heck of it :LOL: ).
However, what would be the difference ? would it serve better as far as the speed of calculation is concerned ?
 
Upvote 0
Hi again, Aladin

Albeit, post your detailed explanation, since the Date in Excel is already considered as a number, I do not need to coerce it with the double unary, correct ?

Also, as I said earlier, I just put those for the heck of it. I also wanted to know if that could make any difference as long as the performance is concerned ?

Thank you very much, Aladin.
 
Upvote 0

Forum statistics

Threads
1,215,694
Messages
6,126,258
Members
449,307
Latest member
Andile

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