+ Reply to Thread
Results 1 to 8 of 8

Need data validation to exclude certain entries based on specific lookup values

  1. #1
    Registered User
    Join Date
    03-15-2022
    Location
    USA
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Need data validation to exclude certain entries based on specific lookup values

    So what I would like is fairly simple but I can't wrap my head around how to do it.

    What I would like is a data validation in G7:G. I want the parameters to be if the load temp in D7 = D then the door in G7 cannot be 2,4,6,8,10,12,14,16,18,20,22,24.

    And so on and so on. So on my sheet I should not be allowed to enter an even number in G7, G14, G17, because the corresponding temp is D.

    Also I would like to keep the data validation that's already entered for that column as well, I just want both if possible . The current data validation only prevents me from entering the same door number 3x.

    Thanks for any advice.
    Attached Files Attached Files
    Last edited by AliGW; 05-12-2022 at 06:58 AM. Reason: Title changed - please think more carefully about your thread titles in future!

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

    Re: Need data validation to exclude certain entries based on specific lookup values

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-15-2022
    Location
    USA
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Need data validation to exclude certain entries based on specific lookup values

    Thank you!

    I've been having a hard time wrapping my mind around how to do this, I couldn't even think how to make an accurate thread title for what I wanted lol.

    Thanks again.

  4. #4
    Registered User
    Join Date
    03-15-2022
    Location
    USA
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Need data validation to exclude certain entries based on specific lookup values

    Any help bump?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Need data validation to exclude certain entries based on specific lookup values

    You need to mock up some ecpected results to demonstrate what you want. I confess I had no idea when I looked at your workbook. Sorry!

  6. #6
    Registered User
    Join Date
    03-15-2022
    Location
    USA
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Need data validation to exclude certain entries based on specific lookup values

    Basically I want a formula that will read the load temps and not allow an even door number to be entered, if the temp is "D".

    So in my image, you can see the load temps in blue are all "D", therefore the door # cannot be an even number.

    Does that make any more sense?Capture.PNG

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Need data validation to exclude certain entries based on specific lookup values

    In the sample workbook, please. Thanks.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,599

    Re: Need data validation to exclude certain entries based on specific lookup values

    Formula for DV in G7

    =AND(COUNTIF($G$7:$G$999,G7)<3,IF($D7="D",ISODD($G7),TRUE))

    Note Error alert message is changed.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. Replies: 1
    Last Post: 01-14-2018, 11:04 AM
  3. Multi-select from data validation isn't working with auto-assigning data validation
    By iPenguin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2017, 12:37 PM
  4. Replies: 3
    Last Post: 06-04-2015, 02:27 PM
  5. [SOLVED] Data Validation: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  6. Replies: 4
    Last Post: 12-19-2013, 10:44 AM
  7. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 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