+ Reply to Thread
Results 1 to 5 of 5

Index, Match & And function doesn't seem to be working when there is duplicate data

  1. #1
    Registered User
    Join Date
    11-25-2013
    Location
    San Jose, California, US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Index, Match & And function doesn't seem to be working when there is duplicate data

    Hi,
    I am editing an existing data in a report with new data. Basically old data does not have column "city" and I would like to add city for analysis. I can't completely replace the old data due to calculation issues (it is a long explanation), so I am using Index, Match & and functions to bring in "City" from new data to the old data. But unfortunately, it is giving me incorrect data (and yes I am using Shift+Ctrl+Enter). Please see attached example.

    I am assuming it is because of duplicate data but I can't get my head around it. I would really appreciate any help.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Index, Match & And function doesn't seem to be working when there is duplicate data

    =INDEX('New Data'!$F$2:$F$8,MATCH(1,('New Data'!$A$2:$A$8=A2)*('New Data'!$B$2:$B$8=B2)*('New Data'!$C$2:$C$8=C2)*('New Data'!$D$2:$D$8=D2)*('New Data'!$E$2:$E$8=E2),0))

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Index, Match & And function doesn't seem to be working when there is duplicate data

    Or check the file

    Azumi
    Attached Files Attached Files

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Index, Match & And function doesn't seem to be working when there is duplicate data

    welcome to the forum. it seems like the repeated item in New Data has the exact info in other columns. so maybe just:
    =INDEX('New Data'!$F$2:$F$8,MATCH(A2,'New Data'!$A$2:$A$8,0))

    or:
    =VLOOKUP(A2,'New Data'!$A$2:$F$8,6,0)

    but if you need to match every columns, then you need this array formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    11-25-2013
    Location
    San Jose, California, US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Index, Match & And function doesn't seem to be working when there is duplicate data

    Thank you, Azumi! Can you please tell me the what is the benefit of using Match(1,...) and is the formula basically sumproduct?

+ 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. Index and Match function not working
    By Ystar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-02-2013, 07:11 AM
  2. [SOLVED] Index/Match Function not working
    By melnemac32 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2013, 07:11 AM
  3. Index Match formula doesn't seem to be working
    By ortmandj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-17-2013, 08:04 PM
  4. Index, Match, Large Function returning duplicate names
    By RNeel55 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2013, 04:09 PM
  5. Replies: 1
    Last Post: 07-27-2011, 07:40 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