Hi, I tried searching the forums for a solution to my problem, but didn't come across anything that looked similar.
I am trying to apply data validation to a column of cells using named ranges. However, each row has a unique associated named range. For example:
A_______B
Birds____*
Dogs____*
Cats____*
I can easily apply data validation to these three rows separately using named ranges.
Ie three separate named ranges:
=Birds
=Dogs
=Cats
However, I need a way to quickly apply data validation to column B using different named ranges for each row because there are about 2,000 rows. Is there a way to reference text in the cells of column A that contains the name of the named range? Or maybe a bit of VB code that could do it quickly?
Does anyone know a good solution to this problem?
Thanks!
Last edited by jburban2; 10-20-2009 at 03:46 PM. Reason: solved the problem
I'm in Excel 2007.
Forgot to attach an example file - here is one. The only two differences between that file and the real one are:
1- The named ranges are on a different page
2- There are about 2000 rows instead of 5
Thanks again!
Not sure I understand, but perhaps this in col B:
=INDIRECT(A1)
EDIT: seen your attachment. Try this under List in DV:
=INDIRECT(B9&"_")
Last edited by StephenR; 10-20-2009 at 03:42 PM.
That's awesome. Works perfect.
Thank you!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks