+ Reply to Thread
Results 1 to 3 of 3

Problem Finding Data in Multiple Columns Using Match Function

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    nyc
    MS-Off Ver
    Excel 2007
    Posts
    2

    Problem Finding Data in Multiple Columns Using Match Function

    I have a 30000+ row spreadsheet and second version of that spreadsheet which differs by a number of rows. I am trying to use the match function to find out if a row in the new version of the spreadsheet exists in the old version and where.

    My formula is as follows
    =MATCH(1,(K2=$A:$A)*(L2=$B:$B)*(M2=$C:$C)*(N2=$D:$D)*(O2=$E:$E),0)

    It is however displaying #N/A. If I highlight the "MATCH(1,(K2=$A:$A)*(L2=$B:$B)*(M2=$C:$C)*(N2=$D:$D)*(O2=$E:$E),0)" part in the entering field and hit F9 it is acting properly and retuning the correct row location. I am wondering how I can get it to show the correct number without manually hitting F9 for every row. Thanks so much.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Problem Finding Data in Multiple Columns Using Match Function

    Excel isn't storing in memory each of the results as it goes through and checks K2 against A1, then A2, etc. You could fix this by changing this to an Array function and using CNTRL SHFT ENTER instead of ENTER (you'll see {} around the formula). HOWEVER, with that many rows, it might lock up your sheet. You could also try this non-array entered formula

    =SUMPRODUCT((K2=$A:$A)*(L2=$B:$B)*(M2=$C:$C)*(N2=$D:$D)*(O2=$E:$E)*ROW(A:A))

    Also, restricting the contents of the columns to where the data is. (i.e. $A$2:$A$30,004). Then you're not wasting memory on empty rows.
    Any of this work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    12-12-2012
    Location
    nyc
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Problem Finding Data in Multiple Columns Using Match Function

    I plugged in your version and its working completely correctly! Dropped it down to all the rows and looks like it might take an hour or so but its slowly chugging away. Thanks 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