+ Reply to Thread
Results 1 to 4 of 4

To prevent duplicate entries using Data validation.

  1. #1
    Registered User
    Join Date
    06-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    18

    To prevent duplicate entries using Data validation.

    -------------------------------
    Hi,

    I juz wanna prevent the duplicate entries in a range using the data validation. I know , we can use the "custom list" in data validation and use the formula =countif(range,criteria)=1 to prevent the duplicates. But My problem is typical..In the selected range, i will use the text "NA" and some numbers. So i juz want the numerics to be prevented in the data validation. If i use the above countif formul, it also prevents the word "NA". But i need "NA" to be allowed and to prevent only the numbers.

    Can anyone help me out?-------------------------------------------------
    Last edited by legendkiller420; 07-09-2010 at 07:40 AM. Reason: Notification

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: To prevent duplicate entries using Data validation.

    See

    http://www.excel-it.com/data_validation.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: To prevent duplicate entries using Data validation.

    Hi,

    How about this, presuming the validated range is all of column A, starting at A1

    =OR(NOT(ISNUMBER(A1)),COUNTIF($A:$A,A1)=1)

    EDIT:
    or more simply

    =OR(ISTEXT(A1),COUNTIF($A:$A,A1)=1)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Registered User
    Join Date
    06-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: To prevent duplicate entries using Data validation.

    Hi sweep..

    Reallly thanks...It is working,,,

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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