+ Reply to Thread
Results 1 to 7 of 7

Prevent duplicates in worksheet change in two columns together

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Prevent duplicates in worksheet change in two columns together

    Hello everyone
    I have columns B & C (Name and Code)
    If the name in column B and the code in column C is duplicated then to display message that this is duplicate
    For example :
    if name in column B was Ahmed and the code was 10 it is ok
    if the name in column B was another name and the code was 10 it is ok too
    but if the name Ahmed again is existing then it shouldn't have the same code again (it should have different code)

    Generally I need to prevent the duplicate entries for the same name and code in worksheet change
    Thanks advanced
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Prevent duplicates in worksheet change in two columns together

    I see you've got this in the VBA section. This in A4 and dragged down will do it without VBA


    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Prevent duplicates in worksheet change in two columns together

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Prevent duplicates in worksheet change in two columns together

    Please Login or Register  to view this content.
    Last edited by kalbasiatka; 07-17-2016 at 03:53 AM.
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Prevent duplicates in worksheet change in two columns together

    Thanks a lot for replies
    Mr. Jindon your solution is great but I need it in worksheet change > if the change was in column B or Column C .. to display a message if there is a duplicate only

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Prevent duplicates in worksheet change in two columns together

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Prevent duplicates in worksheet change in two columns together

    Thank you very much mr. Jindon
    That's exactly what I need ..
    Best Regards for all of you great people

+ 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. Replies: 0
    Last Post: 10-05-2015, 12:07 PM
  2. Replies: 9
    Last Post: 09-24-2014, 09:14 AM
  3. [SOLVED] How to prevent worksheet change invoking System X Control change event
    By dmw2014 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-13-2014, 10:35 PM
  4. Excel Userform Prevent Duplicates 2 columns
    By henryvo07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2014, 06:40 PM
  5. Change text colour of duplicates to white for a range of columns
    By kayoke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2012, 02:11 AM
  6. Prevent unhide of rows/columns w/out worksheet protection?
    By annonymous in forum Excel General
    Replies: 2
    Last Post: 03-10-2005, 04:06 PM
  7. [SOLVED] can you prevent viewing of specific columns in a worksheet
    By Tamara in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2005, 01:06 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