+ Reply to Thread
Results 1 to 7 of 7

Prevent matching entries on same row from appearing in the Data Validation dynamic range.

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Prevent matching entries on same row from appearing in the Data Validation dynamic range.

    I have the dynamic named range 'UnitList' set for a drop down list data validation for both columns H and J (from rows 6 on). However H and J should never have matching entries. Is it possible to edit the Data Validation source formula to remove the entry from the dynamic range that matches the H or J column on the same row to prevent them from ever matching? Or is there another way of achieving the same thing?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Prevent matching entries on same row from appearing in the Data Validation dynamic ran

    It's a bit of a "hack", since this doesn't really stop them from duplicating entries, but it makes it look like they haven't.

    I would suggest Conditional Formatting in column J that turns the font invisible of the value selected is already selected in H of that row.

    Or, you could leave it visible and have both cells turn bright red to basically scream "error".
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Prevent matching entries on same row from appearing in the Data Validation dynamic ran

    My thinking was that when they selected an entry in H, that entry is no longer an option in the J drop down list (and visa versa) making it not possible for the user to select a duplicate entry. Is that not possible?

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

    Re: Prevent matching entries on same row from appearing in the Data Validation dynamic ran

    Pl see attached file.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Prevent matching entries on same row from appearing in the Data Validation dynamic ran

    Thank you. However its only on the same row that they cannot match, not the entire column.

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

    Re: Prevent matching entries on same row from appearing in the Data Validation dynamic ran

    Pl see attached file.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Prevent matching entries on same row from appearing in the Data Validation dynamic ran

    Thank you.

+ 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. Data validation does not prevent invalid entries
    By DJvdW in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2013, 11:34 AM
  2. Replies: 3
    Last Post: 10-18-2010, 11:09 AM
  3. To prevent duplicate entries using Data validation.
    By legendkiller420 in forum Excel General
    Replies: 3
    Last Post: 07-09-2010, 07:47 AM
  4. [SOLVED] How to prevent copied data from appearing until triggered by anoth
    By Denny Crane in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-27-2006, 10:25 PM
  5. [SOLVED] Prevent Duplicate Validation List Entries
    By JK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2006, 04:20 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