+ Reply to Thread
Results 1 to 2 of 2

Data Validation- Hardcoding a list and making a blank available

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-15-2009
    Location
    Herndon, VA
    MS-Off Ver
    Excel 2010
    Posts
    163

    Data Validation- Hardcoding a list and making a blank available

    I am using the List option in Data Validation. I am not referring to a named range. Instead I want to hardcode all possible values. There are only three choices: active, inactive and blank.
    Here is what I am using for the for Source field: Active, Inactive,<space, space space>. I have 3 spaces after Inactive so it does not literally say <space>. This does not work.

    I have also tried Active, Inactive, "" but then the double quotes will appear. I don't want that.

    I have also tried Active, Inactive, " " but then the double quotes with the space in between will appear. I don't want that either.

    So when I am hard coding a list of choices, how do I make a blank available as a choice in the drop down list when the user clicks the cell with data validation?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Data Validation- Hardcoding a list and making a blank available

    have you tried putting the 3 criteria in a table off to the side and then referencing them from the DV? so for instance, with your dropdown in A1
    B1=active
    B2=inactive
    B3 = space

    then for your DV list use =$B$1:$B$3
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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