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

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Agent Name[/TD]
[TD]Process[/TD]
[TD]Date[/TD]
[TD]Volume[/TD]
[TD]AHT[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD]Process 1[/TD]
[TD]01/03/2018[/TD]
[TD]1[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD]Process 2[/TD]
[TD]01/03/2018[/TD]
[TD]0[/TD]
[TD]128[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD]Process 3[/TD]
[TD]01/03/2018[/TD]
[TD]0[/TD]
[TD]196[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD]Process 4[/TD]
[TD]01/03/2018[/TD]
[TD]2[/TD]
[TD]47[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD]Process 5[/TD]
[TD]01/03/2018[/TD]
[TD]0[/TD]
[TD]91[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD]Process 6[/TD]
[TD]01/03/2018[/TD]
[TD]1[/TD]
[TD]49[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD]Process 7[/TD]
[TD]01/03/2018[/TD]
[TD]0[/TD]
[TD]90[/TD]
[/TR]
[TR]
[TD]Employee 2[/TD]
[TD]Process 1[/TD]
[TD]01/03/2018[/TD]
[TD]0[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Employee 3[/TD]
[TD]Process 1[/TD]
[TD]01/03/2018[/TD]
[TD]2[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]

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

[TABLE="class: grid, width: 550"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]01/03/18[/TD]
[TD]02/03/18[/TD]
[TD]03/03/18[/TD]
[TD]04/03/18[/TD]
[TD]05/03/18[/TD]
[TD]06/03/18[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Employee 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Employee 3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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