+ Reply to Thread
Results 1 to 5 of 5

Avoiding Duplicates

  1. #1
    Mald
    Guest

    Avoiding Duplicates

    I would like to apply Data Validation to entries in a cell to prevent
    duplicates, but I need the facility to enter a "valid duplicate" eg When
    entering a surname that has been used before a warning is returned but this
    can be ignored if entry is valid.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    say your area is A1 to C20. Select it go to Data Validation and enter.

    =COUNTIF($A$1:$C$20,A1)=1

    VBA Noob

  3. #3
    Bob Phillips
    Guest

    Re: Avoiding Duplicates

    Use a formula of

    =COUNTIF($A$2:$A$209,A2)>1

    where A2 is the DV cell, and on the Error Alerttab of DV, set the error
    style type to Warning

    --

    HTH

    Bob Phillips

    (replace xxxx in the email address with gmail if mailing direct)

    "Mald" <Mald@discussions.microsoft.com> wrote in message
    news:7C7CBDB7-EB31-4D1F-8168-DA2422EEF9C3@microsoft.com...
    > I would like to apply Data Validation to entries in a cell to prevent
    > duplicates, but I need the facility to enter a "valid duplicate" eg When
    > entering a surname that has been used before a warning is returned but

    this
    > can be ignored if entry is valid.




  4. #4
    Bob Phillips
    Guest

    Re: Avoiding Duplicates

    Sorry, should be = 1

    --

    HTH

    Bob Phillips

    (replace xxxx in the email address with gmail if mailing direct)

    "Bob Phillips" <bob.NGs@xxxx.om> wrote in message
    news:OKR$MSXtGHA.3264@TK2MSFTNGP03.phx.gbl...
    > Use a formula of
    >
    > =COUNTIF($A$2:$A$209,A2)>1
    >
    > where A2 is the DV cell, and on the Error Alerttab of DV, set the error
    > style type to Warning
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > "Mald" <Mald@discussions.microsoft.com> wrote in message
    > news:7C7CBDB7-EB31-4D1F-8168-DA2422EEF9C3@microsoft.com...
    > > I would like to apply Data Validation to entries in a cell to prevent
    > > duplicates, but I need the facility to enter a "valid duplicate" eg When
    > > entering a surname that has been used before a warning is returned but

    > this
    > > can be ignored if entry is valid.

    >
    >




  5. #5
    Mald
    Guest

    Re: Avoiding Duplicates

    Thanks Had done formula correct but not altered Error Alert tab works fine

    "Bob Phillips" wrote:

    > Use a formula of
    >
    > =COUNTIF($A$2:$A$209,A2)>1
    >
    > where A2 is the DV cell, and on the Error Alerttab of DV, set the error
    > style type to Warning
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > "Mald" <Mald@discussions.microsoft.com> wrote in message
    > news:7C7CBDB7-EB31-4D1F-8168-DA2422EEF9C3@microsoft.com...
    > > I would like to apply Data Validation to entries in a cell to prevent
    > > duplicates, but I need the facility to enter a "valid duplicate" eg When
    > > entering a surname that has been used before a warning is returned but

    > this
    > > can be ignored if entry is valid.

    >
    >
    >


+ Reply to Thread

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