+ Reply to Thread
Results 1 to 5 of 5

Data Validation bug in Excel

Hybrid View

JohnWmBeckner Data Validation bug in Excel 03-12-2007, 10:20 AM
starguy try this ... 03-12-2007, 10:51 AM
JohnWmBeckner Same result 03-12-2007, 11:07 AM
starguy can you attach a sample file? 03-12-2007, 11:14 AM
JohnWmBeckner attachment 03-12-2007, 12:23 PM
  1. #1
    Registered User
    Join Date
    03-12-2007
    Posts
    3

    Data Validation bug in Excel

    I am using Excel 2007. I want to validate data in a cell based on a range but also with the ability to override based on another cell. Specifically, cell F55 is my data entry formatted as a percentage. Cell AA55 is my minimum value, AB55 is my maximum value. If I place "Y" in cell P72, then the range is ignored and any value is acceptable. Normally P72 is blank.

    My conditional test under custom data validation is:

    =IF(UPPER(P72)="Y", TRUE, AND(F55>=AA55, F55<=AB55))

    This works fine if P72 is not blank. If P72 is blank, then validation does not occur. I copied the validation formula into an empty worksheet cell and if I have P72 blank and enter an invalid value into F55, the formula shows "FALSE" which is what I would expect, however the data validation does not return an exception as it should. If I enter "N" (or any text other than "Y") in P72, the function works.

    Does anyone know why this formula does not work in data validation but works as a cell value?

    Thanks for any help I can get - this has been extremely frustrating!

    John Wm Beckner
    JohnWmBeckner@hotmail.com.nospam

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by JohnWmBeckner
    I am using Excel 2007. I want to validate data in a cell based on a range but also with the ability to override based on another cell. Specifically, cell F55 is my data entry formatted as a percentage. Cell AA55 is my minimum value, AB55 is my maximum value. If I place "Y" in cell P72, then the range is ignored and any value is acceptable. Normally P72 is blank.

    My conditional test under custom data validation is:

    =IF(UPPER(P72)="Y", TRUE, AND(F55>=AA55, F55<=AB55))

    This works fine if P72 is not blank. If P72 is blank, then validation does not occur. I copied the validation formula into an empty worksheet cell and if I have P72 blank and enter an invalid value into F55, the formula shows "FALSE" which is what I would expect, however the data validation does not return an exception as it should. If I enter "N" (or any text other than "Y") in P72, the function works.

    Does anyone know why this formula does not work in data validation but works as a cell value?

    Thanks for any help I can get - this has been extremely frustrating!

    John Wm Beckner
    JohnWmBeckner@hotmail.com.nospam
    try this

    =OR(AND(P72="",F55>=AA55,F55<=AB55),UPPER(P72)="Y")

  3. #3
    Registered User
    Join Date
    03-12-2007
    Posts
    3

    Same result

    StarGuy, thanks but the result is the same. I have tried many variants of my formula with no success.

    John

  4. #4
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by JohnWmBeckner
    StarGuy, thanks but the result is the same. I have tried many variants of my formula with no success.

    John
    can you attach a sample file?

  5. #5
    Registered User
    Join Date
    03-12-2007
    Posts
    3

    attachment

    The workbook contains trade secrets and I am under an NDA. So I stripped everything but what is pertinent.

    Thanks,

    John
    Attached Files Attached Files

+ 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