Formula alternative to Sumproduct

Jemma Atkinson

Well-known Member
Joined
Jul 7, 2008
Messages
509
Hi, is there an alternative formula to sumproduct where i can use named ranges? The below wont work for named range

=SUMPRODUCT(--(Over2day!$Z$7:$Z$10000=Rec_Criteria!C14),--(Over2day!$H$7:$H$10000>=2),--(Over2day!$H$7:$H$10000<=29))
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi, what do you mean when you say it "won't work"?

You can use named ranges in SUMPRODUCT. Are you sure the named ranges are all the same size?
 
Upvote 0
I was under the impression that you cant you named ranges in Sumproduct, yeah they are all the same size


Hi, what do you mean when you say it "won't work"?

You can use named ranges in SUMPRODUCT. Are you sure the named ranges are all the same size?
 
Upvote 0
Hi

I'm not sure why your SUMPRODUCT formula doesn't work with named ranges.

However, try

With Control+Shift+Enter and not just Enter

Code:
=SUM(IF(NamedRange1=Rec_Criteria!C14,IF(NamedRange2>=2,IF(NamedRange3<=29,1,0))))
 
Upvote 0
Hi, is there an alternative formula to sumproduct where i can use named ranges? The below wont work for named range

=SUMPRODUCT(--(Over2day!$Z$7:$Z$10000=Rec_Criteria!C14),--(Over2day!$H$7:$H$10000>=2),--(Over2day!$H$7:$H$10000<=29))

Activate Insert|Name|Define.
Type Size in the Names in workbook box.
Type the following in the Refers to box:

=MATCH(9.99999999999999E+307,Over2day!$H:$H)-ROW(Over2day!$H$7)+1

Click Add.

Type Hrange in the Names in workbook box.
Type the following in the Refers to box:

=OFFSET(Over2day!$H$7,0,0,Size)

Click Add.

Type Zrange in the Names in workbook box.
Type the following in the Refers to box:

=OFFSET(Over2day!$Z$7,0,0,Size)

Click OK.

Now you can invoke:

=SUMPRODUCT(--(Zrange=Rec_Criteria!C14),--(Hrange>=2),--(Hrange<=29))

instead of the original SumProduct formula you posted.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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