Referencing a named range in a formula

JV0710

Active Member
Joined
Oct 26, 2006
Messages
440
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
Hello

Please could someone help me with the following query:

I have in my worksheet, the following formula in cell C4
=SUMPRODUCT(--(Cluster=Report!C$2)*(Month=Report!$A$1)*(Hierarchy))

in cell A4 - is the name of the range that I want to sum " Hierarchy"

I want to refer to the named range "Hierarchy" in the formula as a cell reference
e.g.
=SUMPRODUCT(--(Cluster=Report!C$2)*(Month=Report!$A$1)*(indirect("range"&A4))
or
=SUMPRODUCT(--(Cluster=Report!C$2)*(Month=Report!$A$1)*(A4))

both these methods give me errors . . . Is there a way to do this ?

Thanks

JVN
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi Andrew

Thanks for your answer.

I tried that as well
=SUMPRODUCT(--(Cluster=Report!C$2)*(Month=Report!$A$1)*(indirect(A4))
and I kept getting an error #Value

and then excel ran out of resources to calculate

I rebooted and started again in a new workbook and now it works

Thank you once again

Joe
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,267
Members
452,902
Latest member
Knuddeluff

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