Using dynamic named ranges, data validation, and SUMIFS together.

Houman

New Member
Joined
Jun 16, 2011
Messages
13
Dear Mr. Excel Community,

I hope that all is well. I’m looking to you for some help using named ranges, data validation, and the sumifs function together.

Here is a simplified version of my problem:

I have two columns: Column A has letters X, Y, and Z in the first three rows and column B has the numbers 1, 2, and 3.

I have named the range (A1:A3) “Letters”.

In cell C1 I have used data validation to allow a list of named ranges, including “Letters”.

In cell D1 I’m using the formula:

=SUMPRODUCT(SUMIFS(B:B,A:A,INDIRECT(C1))

To find the sum of the B column (Using the SUMPRODUCT and INDRECT is the only way I can get the formula to work).

Everything is rosy so far.

Now if I change the name range to a dynamic one inserting:

=OFFSET($A$1,0,0,COUNTA(Lists!$A:$A),1)

In the “Refers to” box of the Name Manager for “Letters”, the SUMIFS formula above stops working.

The dynamic range itself seems to be correct, it is the INDRECT referencing using the data validation cell that is somehow breaking things down.

Ideally I’d like to avoid using macros.

Any help would be truly appreciated.

Best,
Houman
 
Last edited:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,214,893
Messages
6,122,118
Members
449,066
Latest member
Andyg666

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