+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Problem of using INDEX/MATCH function with duplicated values in two sheets

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    1

    Post Problem of using INDEX/MATCH function with duplicated values in two sheets

    hi all
    I have two sheet, in that both sheet has employee ids and the training names they have attended, and some of the employees has attended more than 2 to 5 trainings.
    now the problem i want to check both the sheet for its machine correctness of data.

    if i put vlookup then it takes first value and show that this employee has attended this training, but the same employee has attended more trainings.

    how can i check this using index and match functions.

    Please help me..

    Added the sample excel sheet.

    tocheck.xlsx

    There is a sheet called "ToCheckData" under that Column D i need output. for example i have kept in sheet "Example"
    Last edited by mohiyuddinkhan; 06-27-2012 at 12:17 PM. Reason: Added sample excel sheet

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Problem of using INDEX/MATCH function with duplicated values in two sheets

    Post a sample sheet, then we might better understand your problem.

    Pete

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Problem of using INDEX/MATCH function with duplicated values in two sheets

    We can help but you have to SHOW us what your end result need is. Don't dumb it down, show us your needed output. Click GO ADVANCED and use the paperclip icon to post up a sample copy of your actual workbook, replace sensitive data with fake data. Make sure the workbook manually demonstrates your desired results based on the sample data so we see the goal and the problem.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Problem of using INDEX/MATCH function with duplicated values in two sheets

    Quote Originally Posted by mohiyuddinkhan
    hi Beaucaire

    i have already added the excel sheet to my post for which you have asked me to put.

    request you to help me on this.

    Problem of using INDEX/MATCH function with duplicated values in two sheets

    FYI: The forum sends emails to notify us when a NEW POST is added to a thread in which we are involved. You needed to "ping" the thread with a new message, editing prior posts does not do that.
    ==============


    1) On the RawData sheet, put this formula in E2, then copy down the the dataset:

    =$A2 & "-" & $B2 & "-" & $D2

    With that "unique key per row" from above, it's now simple to match things.

    2) On the ToCheckData sheet, put this formula in D2 and copy down:

    =IF(ISNUMBER(MATCH($A2&"-"&$B2&"-"&$C2, RawData!$E:$E, 0)), "Yes", "")

    You can replace the "" with "WrongData" if you wish.

    Even more informative, you could use this to get more than a "yes", how about the actual date of the found session:

    =IFERROR(INDEX(RawData!$C:$C, MATCH($A2 & "-" & $B2 & "-" & $C2, RawData!$E:$E, 0)), "none")

+ 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