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))
 

Some videos you may like

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Yard

Well-known Member
Joined
Nov 5, 2008
Messages
1,929
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?
 

Jemma Atkinson

Well-known Member
Joined
Jul 7, 2008
Messages
509
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?
 

Sandeep Warrier

Well-known Member
Joined
Oct 31, 2008
Messages
2,672
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))))
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,119
Messages
5,622,837
Members
415,934
Latest member
adstocking

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
Top