Combine SUMIFS + SUMPRODUCT

S_W_Langdon

New Member
Joined
Feb 5, 2018
Messages
13
Hello Everyone,


I have been working on a formula for the past hour or two and am running into a brick wall and am hoping that you will be able to help by saying "Yes that is simple, this is what you do" or "Stop being stupid Excel can't do that!!!" lol


Anyway the problem I am having is around the SUMPRODUCT formula,
What I am trying to do is a SUMPRODUCT based on 2 Specific Criteria (hence why I thought SUMIFS might be the answer)


So what I am trying to do is something like this
SUMPRODUCT D:D & E:E / IF A= Employee 1 / AND C = 01/03/2018

This = 146 when done manually

ABCDE
Agent NameProcessDateVolumeAHT
Employee 1Process 101/03/201814
Employee 1Process 201/03/20180128
Employee 1Process 301/03/20180196
Employee 1Process 401/03/2018247
Employee 1Process 501/03/2018091
Employee 1Process 601/03/2018149
Employee 1Process 701/03/2018090
Employee 2Process 101/03/201804
Employee 3Process 101/03/201824

<tbody>
</tbody>

I am trying to get this to then populate in a monthly grid

ABCDEFG
01/03/1802/03/1803/03/1804/03/1805/03/1806/03/18
Employee 1
Employee 2
Employee 3

<tbody>
</tbody>


Anyway, any and all help you can give is great
Thanks Everyone

(I hope the above is clear enough, am still new to the boards and trying to figure out everything :) )
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Lets say your two tables are pasted into A1 of two sheets. Something like:

=SUMPRODUCT(--(Sheet2!$A$2:$A$1000=$A2),--(Sheet2!$C$2:$C$1000=B$1),Sheet2!$D$2:$D$1000,Sheet2!$E$2:$E$1000)
 
Upvote 0
Thanks you for the help :)

I forgot to add the '--' into my formula as this isn't something I have had to use before so was trying to calculate without it, and getting the error due to this.

Do you have a link that explains the use of the '--' as I would love to learn more about its use, rather than just adding it in and saying as if by Magic it now works... lol

I think this is what I love about Excel, no matter how much you learn, there always seems to be something else :)

Thanks again
 
Upvote 0
Its just used to coerce a TRUE/FALSE result into a number. To excel TRUE is 1 and FALSE is 0 but when used in a sumproduct like this you need to coerce them. Try typing =TRUE into a cell and then try typing =--TRUE in to a cell. Using a double negative on a number changes nothing when applied to that numbers value eg --1 = 1. You will see some people use 0+ rather than -- which works in much the same way.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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