+ Reply to Thread
Results 1 to 8 of 8

Data Validation with two criteria

  1. #1
    Registered User
    Join Date
    08-09-2016
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Data Validation with two criteria

    Hi guys

    Restaurant managers in our business can order five-pound note's to be used as change in their tills

    Every week they fill out a form and email it to me. I save each file to my hard drive then auto populate a master sheet which I then send to the bank for processing

    On the sheet the managers use, I need to set data validation so that they only order five pound note's that meet two criteria. These are

    'must be in multiples of £100'
    'must be minimum £500'
    'user still needs to be able to enter zero' (for use when they don't want any five's)

    I have used data validation > custom validation > formula "=MOD(D16,100)=0"
    This triggers a warning if the user does not enter a multiple of £100

    I am stuck on how to join a string of formula that will enforce the criteria 'no entries between 1-499'


    Can anyone help? Im desperate!



    loveyouall

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Data Validation with two criterias

    =(mod(d16, 100) = 0) * (d16 >= 500)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-09-2016
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Data Validation with two criterias

    Almost but using that I can't enter zero

    Thanks for such a quick response to my original post : )

  4. #4
    Registered User
    Join Date
    08-09-2016
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Data Validation with two criterias

    Perhaps it would be easier to just allow the values 0, 500, 600, 700, 800, 900 and 1000?

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Data Validation with two criterias

    Ah.

    =(mod(d16, 100) = 0) * ((d16 = 0) + (d16 >= 500))

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,816

    Re: Data Validation with two criterias

    This works for me:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Quote Originally Posted by raging_turtle View Post
    Perhaps it would be easier to just allow the values 0, 500, 600, 700, 800, 900 and 1000?
    Hmm. You didn't say there was a maximum of 1000.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  7. #7
    Registered User
    Join Date
    08-09-2016
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Data Validation with two criteria

    That's absolutely perfect! Thank you so much : )


    There is no limit on how many five's they can order, its just very very unlikely they would ever need more than 1000 so we could of set it as a max if it made writing the formula any easier. The provided solution works perfectly so we can ignore that

    Thanks again!

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Data Validation with two criteria

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to only allow data to be copy pasted based on data validation criteria
    By forea in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2016, 08:34 AM
  2. [SOLVED] CUSTOM Data validation - 2 (or more) criteria
    By dluhut in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2014, 10:47 AM
  3. Data Validation with restricted criteria
    By benghooi1020 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-08-2013, 10:27 AM
  4. data validation-Can the source of the validation criteria be dfrom a different sheet?
    By yael pinkert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2009, 04:28 AM
  5. [SOLVED] Multiple criteria in Data Validation
    By Amy Stein in forum Excel General
    Replies: 2
    Last Post: 04-06-2006, 01:10 PM
  6. [SOLVED] Data validation two criteria
    By Graham Haughs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2006, 12:35 PM
  7. Data Validation criteria
    By blatham in forum Excel General
    Replies: 1
    Last Post: 11-08-2005, 06:10 PM

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