Hi all,
I have run into a little conundrum.
I have a large data table (>430K records) in which I have defined multiple named ranges--each range being a single column. The named ranges are all dynamic.
There is also one worksheet called "Reference" that summarizes some of the main geographic levels such as City, County, etc. This worksheet is basically a sheet of lists with a count of records for each member of the list.
The workbook is designed to be point-and-click using drop down lists so the user does not have to think much.
From there, I have four summary worksheets: Statewide, County, City and Branch. Each of these worksheets has multiple formulas, all SUMIFS() and COUNTIFS(), that summarize from my data sheet and reference sheet in various ways.
The reason I am posting is because my formulas work fine with just one named range, but fail with more than one. So, by example, this works:
But this will not work:
Even though "Counties" is a named range that represents the exact same range as "Data!$Q$2:$Q$463777".
Consistently, if I put a named range in for the INDIRECT() filter criteria, the formula fails.
Is there some sort of restriction in Excel against using more than one named range in a formula or something? What am I doing wrong?
I am hoping it's something I am doing wrong because I do not want to have to manually edit 500 formulas every time I run this report.
TIA
Al
I have run into a little conundrum.
I have a large data table (>430K records) in which I have defined multiple named ranges--each range being a single column. The named ranges are all dynamic.
There is also one worksheet called "Reference" that summarizes some of the main geographic levels such as City, County, etc. This worksheet is basically a sheet of lists with a count of records for each member of the list.
The workbook is designed to be point-and-click using drop down lists so the user does not have to think much.
From there, I have four summary worksheets: Statewide, County, City and Branch. Each of these worksheets has multiple formulas, all SUMIFS() and COUNTIFS(), that summarize from my data sheet and reference sheet in various ways.
The reason I am posting is because my formulas work fine with just one named range, but fail with more than one. So, by example, this works:
Code:
=COUNTIFS(Data!$Q$2:$Q$463777,INDIRECT("Reference!D"&$C$1+1)-6000,EstIncome,A17)
But this will not work:
Code:
=COUNTIFS(Counties,INDIRECT("Reference!D"&$C$1+1)-6000,EstIncome,A17)
Even though "Counties" is a named range that represents the exact same range as "Data!$Q$2:$Q$463777".
Consistently, if I put a named range in for the INDIRECT() filter criteria, the formula fails.
Is there some sort of restriction in Excel against using more than one named range in a formula or something? What am I doing wrong?
I am hoping it's something I am doing wrong because I do not want to have to manually edit 500 formulas every time I run this report.
TIA
Al