SUMPRODUCT not working - what is wrong?

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
186
Hi,

I want the formula in Sheet1 to sum total sales for all months per customer per order.

Column B in both sheets= customer number. Column E in both sheets= order number. Q5-AG280= sales per month per customer and order and range to be summed.

{=SUMPRODUCT(('Sheet2'!B:B='Sheet1'!B4)*('Sheet1'!E:E='Sheet1'!E4)*('Sheet2'!Q5:AG280))}

Tried the formula above but not working, any tips?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
It's the final condition that is causing issues, I think it must reference something more specific?
 
Last edited:
Upvote 0
I don't understand exactly what not working means but SUMPRODUCT works with same size linear ranges - the ranges you try to sumproduct have nothing in common.
 
Upvote 0
I don't understand exactly what not working means but SUMPRODUCT works with same size linear ranges - the ranges you try to sumproduct have nothing in common.

I changed the ranges to but still only returning errors.

{=SUMPRODUCT(('Sheet2'!B5:B1000='Sheet1'!B5)*('Sheet1'!E5:E1000='Sheet1'!E5)*('Sheet2'!Q5:AG1000))}

 
Upvote 0
I think it has something to do with using the SUMPRODUCT across multiple sheets. I tried the same formula with all cell values in the same sheet and then it worked. How do I make it compatible when referring to multiple sheets?
 
Upvote 0
Did you really mean to compare Sheet1!E5:E1000 rather than Sheet2?
 
Upvote 0
That should work (also doesn't need to be an array formula) as long as none of the ranges have errors in, and no cells in Q5:AG1000 have text in them.
 
Upvote 0
I see your use of squiggly brackets. Are you entering this as an array formula?
I don't believe that is necessary to do this with SUMPRODUCT.

Do you have any errors in any of your ranges? If so, that will cause an error.
If you cannot find the error, bring the formula down, adding in one part at at time. When the error occurs, focus on the last part you added.


EDIT: Yeah, what Rory said! I got interrupted why replying, and didn't see his reply.
 
Last edited:
Upvote 0
I see your use of squiggly brackets. Are you entering this as an array formula?
I don't believe that is necessary to do this with SUMPRODUCT.

Do you have any errors in any of your ranges? If so, that will cause an error.
If you cannot find the error, bring the formula down, adding in one part at at time. When the error occurs, focus on the last part you added.


EDIT: Yeah, what Rory said! I got interrupted why replying, and didn't see his reply.

I tried both with and without squiggly brackets. I have no errors. Format is same on both sheets as well. I brought the formula down starting with one criteria but still just generating error. I read about people adding "indirect" to SUMPRODUCT when using it across multiple sheets. Don't know if it has to do with this but I am an Excel-beginner and not familiar with INDIRECT function yet.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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