+ Reply to Thread
Results 1 to 4 of 4

Disallow duplicate entries using SUMIF

  1. #1
    Registered User
    Join Date
    03-28-2010
    Location
    Norwich, England
    MS-Off Ver
    Excel 2003
    Posts
    30

    Disallow duplicate entries using SUMIF

    I have Excel 2010

    I am using a range or table and presented with the same problem.

    I have a list of ID's in Column A, with a column header in A1.

    I dont want duplicate entries to be entered.

    I thought if I went into the Data Validation menu (after selecting the range in A with the exception of header A1) and put a custom list of =SUMIF(A:A,A1)=1 then when I went to put a duplicate entry within the range/table the restriction would not allow me.

    However this isn't true, can someone help me with this please?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Disallow duplicate entries using SUMIF

    Try COUNTIF rather than SUMIF, i.e.

    =COUNTIF(A:A,A1)=1
    Audere est facere

  3. #3
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Disallow duplicate entries using SUMIF

    You're close. Cell A1 is just a header, so it shouldn't be part of the validation. In the validation menu, choose the CUSTOM option, and enter the following formula, starting with cell A2:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-28-2010
    Location
    Norwich, England
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Disallow duplicate entries using SUMIF

    Quote Originally Posted by BigBas View Post
    You're close. Cell A1 is just a header, so it shouldn't be part of the validation. In the validation menu, choose the CUSTOM option, and enter the following formula, starting with cell A2:

    Please Login or Register  to view this content.
    So fricking obvious Thanks.

    Am I right in thinking this works on just tables and not ranges? No workaround for ranges?

    For an ever changing list, which is added to say like 20-30 entries a day, what should I do to accommodate this? Just tab the table down all the time?

+ 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