-1

I am looking to create named ranges to make linked data validation. But the names that I must have seem to be reserved. I must name the ranges L5, L6, L7, etc. Is there a way around the reserved name?

Here are my lists

Lists

I am looking to create linked drop-down lists. If the user selects L5 for a line, I want the drop down for machines to show the L5 machines, similarly for L6 and L7.

Here is where the lists should be shown.

Data Sheet

I was going to use INDIRECT in the Data Validation for this. So I would have the range Lists!$E$2:$E$4 for the data validation list in column E the Data sheet. Then I would have INDIRECT(E6) to only show the named range L5 or L6 or L7. But Excel does not like these names. What is a way around this?

user823527
  • 3,644
  • 17
  • 66
  • 110

1 Answers1

0

The answer as Tim Williams pointed out was to add a string to the named ranges to get around the reserved name issue. Then could recreate the named range with concatenation in the INDIRECT statement.

So my named ranges are L5_Machines, L6_Machines, L7_Machines. Then in the data validation I have the formula:

=INDIRECT(E1&"_Machines")

And this works perfectly.

user823527
  • 3,644
  • 17
  • 66
  • 110