#### tonyainproductdata

##### New Member

- Joined
- Aug 3, 2015

- Messages
- 4

The Data page includes several lines of data with named ranges. All named ranges use the following formula so that the chart automatically updates as new data is entered in each month:

**Named Range Example on Data Page:**Product1Metric1State1 =OFFSET('Data'!$C$4,0,0,1,(COUNTA('Data'!$4:$4)))

I am using these named ranges on the Charts Page to create a dashboard.

The user can select one of five products from a data validation in-cell dropdown in cell F2: Product 1, Product 2, Product 3, Product 4, Product 5

The user can select one of two metrics from a separate data validation in-cell dropdown in cell F4: Metric 1, Metric 2

These dropdowns combine in cell L7 for a single lookup value: =CONCATENATE('Charts'!$F$2, " ", 'Charts'!$F$4)

This lookup value is then used in cell M10 to return the named range value using a compound if/then statement for the first state's named range (one state per data series):

=IF(L7="Product 1 Metric 1","'WellbeingDashboard.xlsx'!Product1Metric1State1",

IF(L7="Product 2 Metric 1","'WellbeingDashboard.xlsx'!Product2Metric1State1",

IF(L7="Product 3 Metric 1","'WellbeingDashboard.xlsx'!Product3Metric1State1",

IF(L7="Product 4 Metric 1","'WellbeingDashboard.xlsx'!Product4Metric1State1",

IF(L7="Product 5 Metric 1","'WellbeingDashboard.xlsx'!Product5Metric1State1",

IF(L7="Product 1 Metric 2","'WellbeingDashboard.xlsx'!Product1Metric2State1",

IF(L7="Product 2 Metric 2","'WellbeingDashboard.xlsx'!Product2Metric2State1",

IF(L7="Product 3 Metric 2", "'WellbeingDashboard.xlsx'!Product3Metric2State1",

IF(L7="Product 4 Metric 2", "'WellbeingDashboard.xlsx'!Product4Metric2State1",

IF(L7="Product 5 Metric 2", "'WellbeingDashboard.xlsx'!Product5Metric2State1",

ERROR))))))))))

This is where I am getting stuck. I am then trying to leverage the contents of cell M10 for the data series. I have tried a number of various formulas for the data series, but have had no success. I believe that my error is either in the step above (what the "then" statement is") or the formula itself for the data series. Here is what I have tried for the data series.

Works:

- ='WellbeingDashboard.xlsx'!Product1Metric1State1 (Tried all individual variations to ensure named ranges work)

Doesn't Work

- </SPAN></SPAN>=IF(L7="Product 1 Metric 1", 'WellbeingDashboard.xlsx'!Product1Metric1State1,</SPAN> “”)</SPAN></SPAN>
- =IF(L7="Product 1 Metric 1", Offset(Indirect(‘WellbeingDashboard.xlsx’!$B$4,0,0,1,CountA(‘Data'!$4:$4</SPAN>)),0))</SPAN></SPAN>
- =Indirect(IF(L7="Product 1 Metric 1", 'WellbeingDashboard.xlsx'!Product1Metric1,</SPAN> “”))</SPAN></SPAN>
- =Offset(‘WellbeingDashboard!$B$1,0,0,1,CountA(‘Data'!$4:$4))</SPAN></SPAN>
- =Offset(Indirect(‘Data'!$B$4,0,0,1,CountA(‘Data'!$4:$4</SPAN>)))
- =Indirect(M7)
- =M7

I am at a loss, so I would appreciate any and all ideas you might have! Thanks!