+ Reply to Thread
Results 1 to 3 of 3

Alternate to Index+Match functions with duplicate values

  1. #1
    Registered User
    Join Date
    03-18-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Alternate to Index+Match functions with duplicate values

    I'm trying to pull data frm one sheet (~16000 rows) to another sheet, making use of Index and Match function from a cell (WHREIN i'm making use of function LARGE/SMALL).

    The problem is, where a cell content is identical in two or more cells (where LARGE/SMALL function is used), the Index + Match Functions returns the first value that it finds in the range.

    Is there any otherway round whereby, i can pull all the relevant data

    Illustration

    A B C D E
    1 ABC DEF 36 GEF HIJ
    2 PQR WZX 54 POL MNB
    3 AQW WER 36 TYU GFR
    4 CDF VFG 48 NJM MKL
    5 CDS XSD 40 GHJ UIO
    6 ZXC VBN 36 BHU OKM

    As can be seen frm above, in Column C, value of 36 is being repeated on 3 occassions.

    Now when i try to pull corresponding data from coulmn A/B/D or E, making use of Index+Match function, it returns value of C1 only even against C3, C6.

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    02-19-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    37

    Re: Alternate to Index+Match functions with duplicate values

    Hi,

    I'm currently trying to work out a similar problem but I'm only trying to find the second instance.

    This is what I have so far and it seems to work. I thought you might be interested to see if it fits your purposes.

    =MATCH("findstring",OFFSET(A1,MATCH("findstring",A1:A999,0),0,999,1),0)+MATCH("findstring",A1:A999,0)

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Alternate to Index+Match functions with duplicate values

    I am firmly of the option that it is always better to use "Helpers" in these instances negating the need both for Arrays and/or Volatiles both of which impact performance

    Rough example attached based on OP original example...

    (Of course if a Pivot Table is viable you should use that...)
    Attached Files Attached Files

+ 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