+ Reply to Thread
Results 1 to 7 of 7

Determining if duplicate values exist across a row (then do that over 2000 rows)

  1. #1
    Registered User
    Join Date
    07-11-2013
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2010
    Posts
    1

    Determining if duplicate values exist across a row (then do that over 2000 rows)

    Hi everyone,

    I am trying to determine if the value in cell Y2 also exists anywhere in cells AE2:QE2.

    My initial stab at it is
    Please Login or Register  to view this content.
    This results in a #VALUE! error (I am pretty sure that's because excel doesn't like the AE2:QE2 part).

    I would do a formula-driven conditional format for this, but I have 2000+ rows that need to be acted on, so that's not feasible.

    Is there any way to have excel check if the Y2 value exists in AE2...QE2, cell by cell?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,775

    Re: Determining if duplicate values exist across a row (then do that over 2000 rows)

    try
    =IF(countif(AE2:QE2, Y2)>0, "Duplicate", "No Match")
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Determining if duplicate values exist across a row (then do that over 2000 rows)

    Here's another one...

    =IF(COUNT(MATCH(Y2,AE2:QE2,0)),"Duplicate","No Match")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,775

    Re: Determining if duplicate values exist across a row (then do that over 2000 rows)

    @Tony Valko
    is there an advantage in processing or other to using that count/match ?
    just learning here too

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Determining if duplicate values exist across a row (then do that over 2000 rows)

    The OP said they need to copy the formulas down about 2000 rows.

    In that case the COUNT/MATCH formula is "significantly" faster to calculate relative to the task at hand.

    Here are the calculation times of the 2 formulas entered in 2000 rows.

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    Test1
    Test2
    Test3
    Test4
    Test5
    Average
    2
    COUNTIF
    0.06798
    0.06799
    0.07200
    0.06795
    0.07218
    0.06962
    3
    MATCH
    0.01604
    0.01288
    0.01256
    0.01270
    0.01287
    0.01341


    You may get different results based on the configuration of your machine.

    I used the calculation timer code found here:

    http://msdn2.microsoft.com/en-us/library/aa730921.aspx

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,775

    Re: Determining if duplicate values exist across a row (then do that over 2000 rows)

    @Tony Valko
    Thanks for taking the time to show that - useful to know

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Determining if duplicate values exist across a row (then do that over 2000 rows)

    You're 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] Need to find if duplicate values exist in a column, concatenate cells and then delete
    By Siemieniuk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-22-2017, 07:22 PM
  2. [SOLVED] Find if duplicate values exist in a column, concatenate cells and then de
    By filky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2014, 10:14 PM
  3. Replies: 7
    Last Post: 12-07-2013, 02:33 PM
  4. Replies: 8
    Last Post: 04-12-2012, 08:02 PM
  5. Determining If Multiple Values Exist In Row
    By amsnss in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2008, 08:20 AM

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