Results 1 to 4 of 4

How to get data validation to work when a duplicate value is pasted into a column

Threaded View

  1. #1
    Registered User
    Join Date
    11-07-2008
    Location
    St. Louis, Missouri, USA
    MS-Off Ver
    2003
    Posts
    50

    How to get data validation to work when a duplicate value is pasted into a column

    I have to enter patient's SSN's into my database. The fastest and most error free way to do this is simply copy the SSN from the electronic chart and paste into the appropriate cell in the database. I don't want duplicates. So, I need the database to alert me when I paste in a duplicate SSN.

    I know you can set data validation to do prohibit duplicates by using a formula. In the attached spreadsheet the SSN is in column B, so:
    =countif(B:B,B1)=1
    prevents duplicate SSN's from being entered.

    However, it only works when a duplicate value is typed into the cell. It doesn't work when a value is pasted into a cell. Also, I know you can use the "validation" option in "paste special", but that's another step to remember everytime I cut and paste. And sometimes I forget.

    Is there a way to get data validation to work when a duplicate value is pasted in to a cell?
    Attached Files Attached Files
    Last edited by Research RN; 02-11-2009 at 10:48 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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