+ Reply to Thread
Results 1 to 2 of 2

Data Validation-Different Sources

  1. #1
    Registered User
    Join Date
    02-04-2004
    Posts
    30

    Data Validation-Different Sources

    Hi,

    I'm currently using a drop down menu using a named range on another worksheet. I've now inserted some new worksheets with other named ranges. Can I change the source in my drop down menu depending on what is in another cell?

    eg

    In A1 I have a drop down menu listing the names of my new three worksheets A, B and C.
    In A2 I want a drop down menu showing a list of words in column A from either worksheet A, B or C, depending on what is selected in A1. I can name the ranges in worksheet A, B and C is that helps.

    What do I type into the Source box in the Data Validation screen?

    Thanks for any help.

    Matt

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Hi Matt,

    Name your ranges in sheets A, B & C. In A2 go to data validation and using the List option type in the formula,

    Please Login or Register  to view this content.
    -64+CODE(A1) tells the CHOOSE function which named range to use in ascending order from 1,2, etc... up to 30 options. If A1 = A CODE(A1) returns the value 65 so -64+65=1 which will tell the data validation to use the first named range, B the second and C the third.

    For more advanced Dependent Data Validation techniques check out this site.

    http://www.contextures.com/xlDataVal13.html


    HTH

    Steve

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1