+ Reply to Thread
Results 1 to 13 of 13

Data Validation for Duplicate Entry

  1. #1
    Registered User
    Join Date
    01-08-2019
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    Data Validation for Duplicate Entry

    Good Morning !

    can anyone solve this issue...

    Sr.No SUN
    10 A
    12 C
    10 B
    12 D
    10 A
    12

    Here is the question that if i put "A" in front of 10 and again if i put 'A' in front of 10. how it will stop me as showing "Duplicate Data".
    I hope you all understand my problem. Please give solution ASAP.

    Thank you !...
    Last edited by AliGW; 01-08-2019 at 02:23 AM.

  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
    80,908

    Re: Data Validation for Duplicate Entry

    Welcome to the forum!

    I have improved your title to bring it into line with our requirements (please see our rules).
    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
    01-08-2019
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    Re: Data Validation for Duplicate Entry

    Thank you for reply
    Please resolve the issue.

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Data Validation for Duplicate Entry

    >Select the entire column where you need to avoid duplicates.
    >On the Data tab, in the Data Tools group, click Data Validation.
    > In the Allow list, click Custom.
    > In the Formula box, enter the formula shown below and click OK.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    >Switch to the "Error alert" tab, and enter your text into the fields Title and Error message.
    >In Title mentioned : "Duplicate entry"
    In Message Box mentioned : "You have entered an Data that already exists in this column."


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Registered User
    Join Date
    01-08-2019
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    Re: Data Validation for Duplicate Entry

    Thank you for your reply,
    But my concern is if i put same value in front of same Sr.No then it show "Duplicate entry" .
    Dupblicate entry.png

  6. #6
    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
    80,908

    Re: Data Validation for Duplicate Entry

    That's precisely what AVK's solution does - did you try it?

  7. #7
    Registered User
    Join Date
    01-08-2019
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    Re: Data Validation for Duplicate Entry

    Yes i tried.. it showing Duplicate value even i put "A" with other Sr. No..like....10,12....

  8. #8
    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
    80,908

    Re: Data Validation for Duplicate Entry

    Try this:

    =AND(COUNTIF(A:A,A2)=1,COUNTIF(B:B,B2)=1)

  9. #9
    Registered User
    Join Date
    01-08-2019
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    Re: Data Validation for Duplicate Entry

    it's not working.. every entry shows as "duplicate entry"Dupblicate entry.jpg

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Data Validation for Duplicate Entry

    Try below in B2, Copy and paste towards down
    =COUNTIFS($A:$A,$A2,$B:$B,$B2)=1
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  11. #11
    Registered User
    Join Date
    01-08-2019
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    Re: Data Validation for Duplicate Entry

    Thank you so much ..It's Working now....

  12. #12
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Data Validation for Duplicate Entry

    Always it is better to attach a sample excel file with expected result along with your requirement and explanation

  13. #13
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Data Validation for Duplicate Entry

    Select range i.e. "B2" to "B100"
    > In the Allow list, click Custom.
    > In the Formula box, enter the formula shown below
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    >Switch to the "Error alert" tab, and enter your text into the fields Title and Error message.
    >In Title mentioned : "Duplicate entry"
    In Message Box mentioned : "You have entered an Data that already exists in this column."
    and click OK.
    Last edited by avk; 01-08-2019 at 05:12 AM. Reason: Formula range change

+ 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. Dublicate records
    By jklausen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2018, 03:27 PM
  2. Macro that groups dublicate data
    By infogirl96 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-17-2017, 08:11 AM
  3. Avoid dublicate entry
    By Nisar.mohammed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-11-2015, 03:30 AM
  4. Need help to Show msg to inform dublicate
    By vietdieu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2012, 09:38 AM
  5. aviod dublicate values
    By arsalantgp in forum Excel General
    Replies: 1
    Last Post: 09-22-2011, 03:03 AM
  6. Delete dublicate
    By nackgr in forum Excel General
    Replies: 2
    Last Post: 01-04-2011, 04:54 AM
  7. How do I delete dublicate cells?
    By Retroactive78 in forum Excel General
    Replies: 1
    Last Post: 04-20-2005, 05: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