+ Reply to Thread
Results 1 to 8 of 8

Data Validation allowing invalid entries

  1. #1
    Registered User
    Join Date
    10-31-2008
    Location
    England
    MS-Off Ver
    MS 2013
    Posts
    42

    Data Validation allowing invalid entries

    Hello All,

    Up to now I've not had much use for using the data validation function, but I am now using it to limit entries in a range of cells being allowed to take another cell's calculation below zero. The forumla applied to these cells is:

    Please Login or Register  to view this content.
    E17 contains the remaining hours available to be scheduled in a workshop. As hours are entered into the range of cells under the data validation they are subtracted from E17. This has worked to a point but I find myself in certain situations able to enter figures to take E17 below zero.

    Due to the preconceived layout of the spreadsheet the range of cells that the data validation is applied to is not one single area, i.e. it is something like O17:22, S17:S22, W17:22, etc. My first suspicions are that this is where the problem springs from; the minus can be achieved by the first value entered into any of those column ranges, after which a second value added will correctly refuse the entry.

    I have been careful to ensure I have selected all the right cells, have ticked “apply changes to all cells with these settings” when making changes and have tried both include and ignore blank cells.

    Any ideas anyone?


    Many thanks in advance for your help.

    Simon.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data Validation allowing invalid entries

    Can we see a sample (remove confidetial info) of your workbook telling us in what situations exactly the problem occurs?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

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

    Re: Data Validation allowing invalid entries

    See attachment.
    I selected your range(s) and used custom =$E17>0

    It seems to work fine.
    Attached Files Attached Files
    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

  4. #4
    Registered User
    Join Date
    10-31-2008
    Location
    England
    MS-Off Ver
    MS 2013
    Posts
    42

    Re: Data Validation allowing invalid entries

    Hi guys,

    See attached. I tried the simplier formula and thought I had it sussed, but see you are able to enter any figure in a 'paintshop' slot without seeing an error. ChemistB my sheet is slightly different in that I don't have a 'allowance' for each row, but instead I have made both the column and row references absolute in the formula, so this shouldn't be the problem.

    To give you a specific example, I can enter 79hrs in BL3 with only 75.4hrs available.

    Right before I uploaded the attachment I have noticed that this only seems possible if I make an entry and then click into another cell. If I hit return instead I get an error message as I should.

    Thanks for your prompt responses.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-31-2008
    Location
    England
    MS-Off Ver
    MS 2013
    Posts
    42

    Re: Data Validation allowing invalid entries

    Bump (thank you, please!)

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

    Re: Data Validation allowing invalid entries

    I think if you click outside the cell rather than using Enter, the Data Validation capabilities do not work when using a custom formula. :-/ I played around with it a little and haven't come up with a workaround yet.

  7. #7
    Registered User
    Join Date
    10-31-2008
    Location
    England
    MS-Off Ver
    MS 2013
    Posts
    42

    Re: Data Validation allowing invalid entries

    Is this something you are still pondering? Or do you think it's an Excel quirk we won't be able to get around?

    Now we seem to have pin-pointed a more specific problem should I maybe start a new thread to ask if anyone knows how to force data entry by hitting return rather than clicking away from a cell?

    I read along similar lines this morning about disabling the fill handle and drag-and-drop functions, but it's not quite the same and wouldn't help I don't think.

    Thanks,

    Simon.

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

    Re: Data Validation allowing invalid entries

    Starting a new thread might help focus people's attention.

+ 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