+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : how to add a duplicate condition to if formula

  1. #1
    Registered User
    Join Date
    04-14-2010
    Location
    california, usa
    MS-Off Ver
    Excel 2007
    Posts
    22

    Smile how to add a duplicate condition to if formula

    im using this formula:

    =IF(F2="","",IF(ISNA(VLOOKUP(F2,$A$2:$A$999,1,FALSE)),"NOT FOUND","GOOD"))

    how do i make it check the entire colum above for duplicates in addition to what is already being done? i am going to drag the formula all the way down to row 1200.
    Last edited by srollins13; 04-26-2010 at 06:51 PM.

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: how to add a duplicate condition to if formula

    I'm confused. Do you mean check column F? If so, this formula, beginning in row 3 could be =IF(F2="","",IF(OR(COUNTIF($F$2:$F2,F3),Countif($A$2:$A$999,F3)=0),"NOT FOUND","GOOD"))

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to add a duplicate condition to if formula

    =IF(AND(A2=$F$2,COUNTIF(A:A,$F$2)>1),"good with duplicate",IF(AND(A2=$F$2,COUNTIF(A:A,$F$2)=1),"good one only","not found"))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    04-14-2010
    Location
    california, usa
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: how to add a duplicate condition to if formula

    here is a sample of what i need. please see attachment.
    as you can see, i am trying to "flag" a duplicate entry and have a formula say "duplicate". thank you for all your help.
    Attached Files Attached Files

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to add a duplicate condition to if formula

    its not clear what column are you checking?
    but if you want to compare col f against col a
    =IF(COUNTIF(A:A,F2)>1,"good with duplicate",IF(COUNTIF(A:A,F2)=1,"good one only","not found"))
    dragged down

  6. #6
    Registered User
    Join Date
    04-14-2010
    Location
    california, usa
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: how to add a duplicate condition to if formula

    i am trying to compare a cell in column f against the data entered in the rows above in column f for a duplicate and against column a for a match. If data in cell f22 matches an entry in column "a", a result of "good" is returned, if no match is found then "not found" is returned. At the same time i need cell f22 to compare data in the rows above against the entire column f for a duplicate. The formula I have does what i need but check column f for duplicates. The previous returns are acceptable, but i would like to have a "duplicate" return as well.

  7. #7
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Re: how to add a duplicate condition to if formula

    G'day All,

    Does this work for you Rollins ?

    Please Login or Register  to view this content.
    Cheers

    RC
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  8. #8
    Registered User
    Join Date
    04-14-2010
    Location
    california, usa
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: how to add a duplicate condition to if formula

    you are so awesome! thank you so much

+ 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