+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    02-26-2010
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Help with IF numbers match in same column

    Hi all

    Thanks in advance for your help! I'm having a problem getting the following scenario to work:

    I'd like to check a column for a duplicate number. If a duplicate is found then I want a result of 0, if a duplicate is not found then I want a result of 1. I feel like this should be really simple, but I just can't get it to work. This is my formula at the moment (where E16 to E26 is the column of numbers:

    =IF(E16=E17:E26,0,1)

    It's not working. I've also tried the following:

    =IF(MATCH(E16,E17:E26,0)>=1,0,1)

    This half worked, in that if the number was duplicated, the correct result was generated (0). However, if the number isn't duplicated, the result was given as #N/A (instead of 1)

    Any suggestions will be much appreciated.
    Last edited by damonfreemanza; 02-27-2010 at 04:14 PM. Reason: solved

  2. #2
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,140

    Re: Help with IF numbers match in same column

    =IF(ISERROR(Match(E16,E17:E26,0)),1,0)

  3. #3
    Registered User
    Join Date
    02-26-2010
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Help with IF numbers match in same column

    Brilliant. Thanks!

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.2.0