+ Reply to Thread
Results 1 to 10 of 10

Want a data validation droplist with empty cell as an option

  1. #1
    Registered User
    Join Date
    07-03-2010
    Location
    Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    Want a data validation droplist with empty cell as an option

    Hello,

    I want a data validation droplist with empty cell as an option. I do not want to create a source list somewhere in the sheet, I want, that empty cell was described/programmed in data validation only.
    Is that possible?

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Want a data validation droplist with empty cell as an option

    i was probably unable to completely understand your question.

    if you want to create a Data Validation list without a source list in a sheet, then just put the values in the Source box separated by commas, such as, "January, February, March" (without the quotes). if you want to allow a blank value to be selected, just do not select anything at all in the cell.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Registered User
    Join Date
    07-03-2010
    Location
    Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: Want a data validation droplist with empty cell as an option

    Sorry, my english is not perfect, but you understood, what I wanted to say. I want to allow a blank value to be selected and without a source list in a sheet. The bad thing is that if I once select something from the list - there is no way to make that cell look blank again.

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

    Re: Want a data validation droplist with empty cell as an option

    Hi,

    If you select "Ignore Blanks" you can simply delete your selection from the cell to return it to blank.

    Steve

  5. #5
    Registered User
    Join Date
    06-08-2012
    Location
    indiana, US
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Want a data validation droplist with empty cell as an option

    If you simply hit delete, the cell will be cleared, and your validated data will stil be there. You can also leave the top cell of your list empty.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Want a data validation droplist with empty cell as an option

    If you "clear contents" or hit delete or if you backspace over the entry (therefore clearing it), there should not be an issue changing the value. In the Data Validation Window, make sure "Ignore Blank" is checked.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Want a data validation droplist with empty cell as an option

    Quote Originally Posted by Romkeris View Post
    Sorry, my english is not perfect,
    no sweat - same problem in US, english not perfect ;-)

  8. #8
    Registered User
    Join Date
    07-03-2010
    Location
    Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: Want a data validation droplist with empty cell as an option

    Quote Originally Posted by sratcliff View Post
    If you simply hit delete, the cell will be cleared, and your validated data will stil be there. You can also leave the top cell of your list empty.
    Thanks. Delating cell value, suites me. Forgot about that.
    The way of leaving the first value blank in the data validation, does'nt work. It doesn't come up from the droplist, it works only if data validation comes from sourcelist somewhere in the sheet.

  9. #9
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Want a data validation droplist with empty cell as an option

    that is right - leave alone the first, any blank value inserted in a intrinsic Data Validation Source is disregarded (blanks anywhere in the list). but, mind you, white spaces around a value are indeed regarded, i.e, 'a,b,' and 'a , b ,' are values with different lengths when they show up in the dropdown list.

  10. #10
    Registered User
    Join Date
    03-24-2017
    Location
    NorthEast, USA
    MS-Off Ver
    Office 365 2016
    Posts
    1

    Lightbulb Re: Want a data validation droplist with empty cell as an option

    This can seem confusing, at first.

    The Data Validation's LIST option is meant to point to a list in the spreadsheet.
    The manual entry of actual values in the LIST box is just a 2nd method.
    So, create a list somewhere in your spreadsheet that lists all possible values.

    In my case, I had a legend at the top of the sheet with the values I wanted to allow.
    E.g., A1=Y, A2=N, A3=(blank), A4=?
    Note that A3 is just a blank cell - not the text "(blank)"
    I then selected that vertical list and set its range name to "Status_List"
    Finally, in the validation option's LIST box, I entered =Status_List
    Voila. The drop down shows Y, N, (blank), and ?

    Even better, any time you want to change the list, just change the range of values.
    Every Validation option using Status_List will instantly be updated.
    So there is not need to manually edit one cell's validation and copy to all others.
    Last edited by xorex; 03-24-2017 at 03:45 PM.

+ 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