+ Reply to Thread
Results 1 to 7 of 7

Data Validation Not Working

Hybrid View

  1. #1
    Brett
    Guest

    Data Validation Not Working

    Is there a problem with Data Validation using Defined Names? I created a
    Defined Name and then used it as a Validation Criteria Formula, but it didn't
    work. Then I tried troubleshooting the problem by entering the Defined Name's
    formula instead, and it worked?

  2. #2
    Debra Dalgleish
    Guest

    Re: Data Validation Not Working

    In the Source box, type an equal sign, then the range name, e.g.: =MonthList

    There are instructions and examples here:

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

    Brett wrote:
    > Is there a problem with Data Validation using Defined Names? I created a
    > Defined Name and then used it as a Validation Criteria Formula, but it didn't
    > work. Then I tried troubleshooting the problem by entering the Defined Name's
    > formula instead, and it worked?



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  3. #3
    Brett
    Guest

    RE: Data Validation Not Working

    OK, I figured it out for myself. All I needed to do was uncheck the "Ignore
    blanks" check box. For some reason, validation criteria formulas with defined
    names won't work unless this is uncheked. Go figure?

  4. #4
    Debra Dalgleish
    Guest

    Re: Data Validation Not Working

    Data Validation lists will work, even if 'Ignore blanks' is checked.

    Brett wrote:
    > OK, I figured it out for myself. All I needed to do was uncheck the "Ignore
    > blanks" check box. For some reason, validation criteria formulas with defined
    > names won't work unless this is uncheked. Go figure?



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  5. #5
    Brett
    Guest

    Re: Data Validation Not Working

    Well it didn't work in my spreadsheet. I can try to enter the exact same
    thing, first time with the box checked and it doesn't work, the second time
    with the box unchecked and it does work.

    "Debra Dalgleish" wrote:

    > Data Validation lists will work, even if 'Ignore blanks' is checked.
    >
    > Brett wrote:
    > > OK, I figured it out for myself. All I needed to do was uncheck the "Ignore
    > > blanks" check box. For some reason, validation criteria formulas with defined
    > > names won't work unless this is uncheked. Go figure?

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


  6. #6
    Brett
    Guest

    Re: Data Validation Not Working

    Try this:
    Open a new workbook. With the active cell at A1, create the defined name
    Valid_Data =isnumber(A1). Then create Data Validation for A1 as Settings /
    Validation criteria / Allow: Custom ; Formula: =Valid_Data.

    Now enter a number in A1 - Result: no error - correct.
    Now enter a letter in A1 - Result: no error - incorrect

    Now go back to the Data Validation dialog box and uncheck 'Ignore blanks'.

    Now enter a number in A1 - Result: no error - correct.
    Now enter a letter in A1 - Result: error - correct


    "Debra Dalgleish" wrote:

    > Data Validation lists will work, even if 'Ignore blanks' is checked.
    >
    > Brett wrote:
    > > OK, I figured it out for myself. All I needed to do was uncheck the "Ignore
    > > blanks" check box. For some reason, validation criteria formulas with defined
    > > names won't work unless this is uncheked. Go figure?

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


  7. #7
    Debra Dalgleish
    Guest

    Re: Data Validation Not Working

    I agree, for data validation to work with your defined formula, you have
    to uncheck Ignore blanks. However, it's not a general requirement for
    data validation to work, when defined names are used.

    Brett wrote:
    > Try this:
    > Open a new workbook. With the active cell at A1, create the defined name
    > Valid_Data =isnumber(A1). Then create Data Validation for A1 as Settings /
    > Validation criteria / Allow: Custom ; Formula: =Valid_Data.
    >
    > Now enter a number in A1 - Result: no error - correct.
    > Now enter a letter in A1 - Result: no error - incorrect
    >
    > Now go back to the Data Validation dialog box and uncheck 'Ignore blanks'.
    >
    > Now enter a number in A1 - Result: no error - correct.
    > Now enter a letter in A1 - Result: error - correct
    >
    >
    > "Debra Dalgleish" wrote:
    >
    >
    >>Data Validation lists will work, even if 'Ignore blanks' is checked.
    >>
    >>Brett wrote:
    >>
    >>>OK, I figured it out for myself. All I needed to do was uncheck the "Ignore
    >>>blanks" check box. For some reason, validation criteria formulas with defined
    >>>names won't work unless this is uncheked. Go figure?

    >>
    >>
    >>--
    >>Debra Dalgleish
    >>Excel FAQ, Tips & Book List
    >>http://www.contextures.com/tiptech.html
    >>
    >>

    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


+ 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