+ Reply to Thread
Results 1 to 3 of 3

Data validation on list of boolean values

  1. #1
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    142

    Data validation on list of boolean values

    Hi all.
    I am working on Excel 2007 but any solution to my problem needs to be compatible with earlier versions.

    I have a cell containing data validation, pick from a list, the list containing just two options:
    False, True

    This works fine, provided that I select the required option from the dropdown list presented when the cell is selected. The value selected is then treated as the boolean values FALSE and TRUE respectively when formulae in other cells refer to this cell.

    So far, so good.

    My only problem is that it seems that I HAVE To select the desired value from the drop-down list. If I simply type False or True, then it fails validation. I have never observed this with other data validation from lists, although I am usually working on Excel 2003 and have not yet had a chance to test this under that environment.

    Am I stuck with this?

    Thanks
    Last edited by 1eyedjack; 09-26-2010 at 08:17 AM.

  2. #2
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    142

    Re: Data validation on list of boolean values

    I seem to have a sort of workaround.
    Rather than naming False and True as list options within the data validation dialog box, I can create a named range of two cells on the worksheet, enter False and True into these two cells, and then refer to the list by the name of the range in the data validation. That then allows me to enter values in the cell either by selecting from drop-down list or by typing in False or True. This is the desired outcome but somewhat kludgy, so it is with some reluctance and illfeeling that I feel that I have to flag this thread as "SOLVED".

  3. #3
    Registered User
    Join Date
    08-19-2018
    Location
    Fairfax, Virginia
    MS-Off Ver
    2010 preferred, 360 current
    Posts
    1

    Re: Data validation on list of boolean values

    I've hit too many of these stupid kind of errors to count. Your Validated cell is formatted as Text. Your data list cells are likely General, but they do have the Boolean values of TRUE and FALSE in them.

    When you type into the cell you are laying down the English word "True" or "False" as Text so validation fails. When you use the pulldown, you get the Boolean value from the other cell.

    Unless you type with caps lock on, you might notice that EXCEL didn't promote True or False to uppercase. Another subtle visual clue is that, in the absence of horizontal formatting, Text cell contents are Left Justified, Boolean centered, and Numeric is Right Justified.

    Was it worth waiting 8 years for this awesome answer?

+ 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