+ Reply to Thread
Results 1 to 8 of 8

Data Validation & Define Name & Indirect function

  1. #1
    Registered User
    Join Date
    01-02-2015
    Location
    Washington, DC
    MS-Off Ver
    2013
    Posts
    6

    Data Validation & Define Name & Indirect function

    I have two fields containing numeric values. I need to define names for them and then use data validation to create a drop down box. I need to use the indirect function so only certain options are available. Since you cannot define names starting with a number I am stuck and I don't have any ideas how to get this to work.

    Code Type
    1100 1110
    1100 1120
    1100 1130
    Attached Files Attached Files
    Last edited by MrAlex; 01-02-2015 at 03:21 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Data Validation & Define Name & Indirect function

    Start your defined names with a letter (e.g. "A"), then in your DV formula you can have:

    =INDIRECT("A" & C1)

    assuming C1 is where you make your (numeric) choice.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-02-2015
    Location
    Washington, DC
    MS-Off Ver
    2013
    Posts
    6

    Re: Data Validation & Define Name & Indirect function

    Is there a way that I could hide the "A" (or other letter) so that wouldn't show up in the dropdown?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Data Validation & Define Name & Indirect function

    It shouldn't show in the drop-down - you should only get the numbers displayed, and when you choose one the INDIRECT formula adds the A onto the beginning of the number. If this is still not clear, attach a sample workbook so I can set it up for you.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    01-02-2015
    Location
    Washington, DC
    MS-Off Ver
    2013
    Posts
    6

    Re: Data Validation & Define Name & Indirect function

    I still having trouble figuring it out. I have attached a sample workbook if you could help that would be great! Thanks!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Data Validation & Define Name & Indirect function

    You were nearly there, but you had a defined name of A_1110 although the value in C4 was 1100. Change the named range to A_1100 and then you will see the three values from column D of the NamedValues sheet shown in the drop-down in C5. Obviously, you then need to add several more named ranges of this type, depending on the choices that you can make in C4.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    01-02-2015
    Location
    Washington, DC
    MS-Off Ver
    2013
    Posts
    6

    Re: Data Validation & Define Name & Indirect function

    Thanks, that works. If not for that typo it would have worked before but your help is much appreciated!

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Data Validation & Define Name & Indirect function

    Glad to help. Thanks for feeding back, and a Happy New Year.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] INDIRECT function DATA validation
    By keby1nko in forum Excel General
    Replies: 4
    Last Post: 10-24-2014, 03:09 AM
  2. [SOLVED] Help with Data Validation using INDIRECT function
    By ddub25 in forum Excel General
    Replies: 7
    Last Post: 07-14-2012, 08:33 AM
  3. INDIRECT function and data validation
    By penguintar in forum Excel General
    Replies: 2
    Last Post: 03-23-2011, 04:02 PM
  4. Data Validation - Indirect function
    By Newport Count in forum Excel General
    Replies: 7
    Last Post: 06-09-2009, 05:11 PM
  5. Data Validation and Indirect Function
    By solnajeff in forum Excel General
    Replies: 4
    Last Post: 01-05-2008, 04:23 PM

Tags for this Thread

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