+ Reply to Thread
Results 1 to 16 of 16

Data Validation with 3 Criteria Checks

  1. #1
    Registered User
    Join Date
    08-21-2023
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Data Validation with 3 Criteria Checks

    Hi, I'd like to set up data validation with three criteria checks.

    The scenario is -
    Please Login or Register  to view this content.
    This is what I have so far which does not work in the data validation feature but does if I enter it in a cell and change the values in the sheet so I'm fairly sure the logic is right -

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

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,486

    Re: Data Validation with 3 Criteria Checks

    You can't do that with data validation. Just use a formula in the cell where you want the message to appear.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-21-2023
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Data Validation with 3 Criteria Checks

    That's a shame I'll have to think about how to handle it. Thank you.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,486

    Re: Data Validation with 3 Criteria Checks

    If you share a sample workbook and explain EXACTLY what you want, we might be able to offer a workaround.

  5. #5
    Registered User
    Join Date
    08-21-2023
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Data Validation with 3 Criteria Checks

    Ok cool thanks, should I post a new question or add to this one?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,486

    Re: Data Validation with 3 Criteria Checks

    Add to this one and remove the SOLVED tag for the time being.

  7. #7
    Registered User
    Join Date
    08-21-2023
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Data Validation with 3 Criteria Checks

    Hi, I've attached a sample sheet -

    Please Login or Register  to view this content.
    I've got the validation test in H3 showing a pass -

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


    Added a couple of other examples showing failures
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,486

    Re: Data Validation with 3 Criteria Checks

    OK, so DV for cell E4 and F4 should be:

    =IF($C4="W",$E4>$F4,IF($C4="L",$E4<$F4,$E4=$F4))
    Attached Files Attached Files
    Last edited by AliGW; 08-21-2023 at 11:00 AM.

  9. #9
    Registered User
    Join Date
    08-21-2023
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Data Validation with 3 Criteria Checks

    Oh nice that works, thank you!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,486

    Re: Data Validation with 3 Criteria Checks

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  11. #11
    Registered User
    Join Date
    08-21-2023
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Data Validation with 3 Criteria Checks

    Thanks, done, adding rep has been denied I need to spread the love apparently.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,768

    Re: Data Validation with 3 Criteria Checks

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    =IF(AND(C4="W",E4>F4),"Pass",IF(AND(C4="L",E4<F4),"Pass",IF(AND(C4="D",E4=F4),"Pass","Fail")))[/FORMULA]
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,486

    Re: Data Validation with 3 Criteria Checks

    adding rep has been denied I need to spread the love apparently.
    Never mind - that happens!

  14. #14
    Registered User
    Join Date
    08-21-2023
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Data Validation with 3 Criteria Checks

    Quote Originally Posted by JohnTopley View Post
    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    =IF(AND(C4="W",E4>F4),"Pass",IF(AND(C4="L",E4<F4),"Pass",IF(AND(C4="D",E4=F4),"Pass","Fail")))[/FORMULA]
    Thanks John, that seems to be a shorter/cleaner version of what I had, but doesn't work with the DV, unless I'm making an error.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,486

    Re: Data Validation with 3 Criteria Checks

    DV will NOT return messages derived by a formula - that was the point of post #2.

    You can have what I suggested as DV AND a message appearing in a cell to the right derived by a formula, but DV cannot generate that message for you. The DV message has to be done via the dialog box and needs to cover all eventualities - it's a one-stop shop.

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,768

    Re: Data Validation with 3 Criteria Checks

    To be honest, I am not even sure what the objective off the "DV" is?

    You could derive the W,D,L from the For/Against columns rather use a drop down.

+ 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. [SOLVED] VBA to Prevent Data Entry in Cell with Data Validation List - Two Criteria Validation
    By AliGW in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-25-2019, 11:48 AM
  2. Custom VBA Validation Checks.
    By Jayhrbrt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-24-2013, 07:36 PM
  3. one column validation checks
    By missy22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2012, 10:54 AM
  4. outlook vba run time error
    By missy22 in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 10-11-2012, 11:10 AM
  5. Multiple Drop Downs Validation Checks.
    By Ninjataktikz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2012, 10:58 PM
  6. [SOLVED] Multiple Data Validation Checks
    By stubbsj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-01-2012, 06:08 PM
  7. [SOLVED] Formula which checks whether a string is found in a range and checks 2 criteria
    By liranbo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2012, 05:28 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