+ Reply to Thread
Results 1 to 4 of 4

Match() returning wrong row reference

  1. #1
    Registered User
    Join Date
    04-20-2008
    Posts
    11

    Match() returning wrong row reference

    Hi

    I'm trying to use the Match() function within a series of nested if statements to match two row references. If the two row references are the same, then I use a vlookup to fill the cell's value.

    This function is working well for the majority of my entries, but for some reason doesn't work for a handful of them, and the match() function returns incorrect row references, which then ruins my if statement to check if the row references are the same.

    I've attached a zip file with the spreadsheet. Can anyone offer any explanations why the formula isn't working for just those couple of entries?

    dee
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    match is finding correct row. you have more than one pamela so it returns first one it finds in your example its finding Pamela in b12
    not pamela in b31 same with frank and david

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by dee101
    Hi

    I'm trying to use the Match() function within a series of nested if statements to match two row references. If the two row references are the same, then I use a vlookup to fill the cell's value.

    This function is working well for the majority of my entries, but for some reason doesn't work for a handful of them, and the match() function returns incorrect row references, which then ruins my if statement to check if the row references are the same.

    I've attached a zip file with the spreadsheet. Can anyone offer any explanations why the formula isn't working for just those couple of entries?

    dee

    Because there are more than one occurrence of the First Name.

    If you want to find one pair of names in a second table, you should really create another helper column which concatenates the first and second names together, (in both sheets) and use this composite name in your MATCH() function. It will also simplify your formula since you'll only be Matching in one column.

    HTH

    HTH

  4. #4
    Registered User
    Join Date
    04-20-2008
    Posts
    11
    Thanks everyone. I should have checked my data set better.

    Under normal circumstances I would have created a new column with an Employee ID so then all the employees have a unique identifier, but due to certain data restrictions I haven't been able to.

    Again, thanks all for you help.

+ 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