+ Reply to Thread
Results 1 to 4 of 4

how to prevent duplicates in column with exception of number 0

  1. #1
    Registered User
    Join Date
    07-24-2019
    Location
    US
    MS-Off Ver
    2017
    Posts
    2

    Question how to prevent duplicates in column with exception of number 0

    I am creating a weighted score table. The data validation rule I would like to enforce on the column(which is user input) is no duplicate numbers in column allowed except for number 0.

    I was able to restrict duplicates with data validation rule "=COUNTIF($E$15:$E$26,$E15)<=1" but how do I add 0 as exception to be repeatable but not other numbers?

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: how to prevent duplicates in column with exception of number 0

    Use OR condition...

    So something like.
    =OR(COUNTIF($E$15:$E$26,$E15)<=1,$E15=0)
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    07-24-2019
    Location
    US
    MS-Off Ver
    2017
    Posts
    2

    Re: how to prevent duplicates in column with exception of number 0

    It worked. You are amazing.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: how to prevent duplicates in column with exception of number 0

    You are welcome

+ 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. [SOLVED] Exception to remove duplicates function
    By priyadharshane in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-17-2019, 09:43 AM
  2. [SOLVED] Identification of duplicates numbers in a column and print as duplicates with that number
    By kswapnadevi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2017, 05:25 AM
  3. How to prevent duplicates in a column in Excel?
    By wiliam_s in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2016, 10:04 AM
  4. [SOLVED] How do you prevent duplicates when using random number generator?
    By Aurbo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-07-2015, 03:48 PM
  5. Replies: 0
    Last Post: 10-05-2015, 12:07 PM
  6. Top 40 values with duplicates and with exception
    By Fabienne88 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-02-2013, 07:57 AM
  7. Prevent User Enter Duplicates in Column
    By jade82 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-22-2011, 10:48 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