+ Reply to Thread
Results 1 to 5 of 5

Problem with MATCH function

  1. #1
    Registered User
    Join Date
    04-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Problem with MATCH function

    Hi All,

    I'm trying to get to grips with an issue around the MATCH function in excel but I'm fast running out of ideas. It seems that some records, regardless of how they are pasted (values or rich format) or cleaned (CLEAN, TRIM, or LEFT) there are a handful of problem records which just will not match in any scenario.

    Has anybody seen anything like this before? I have linked to a screenshot below illustrating a particular record not matching whilst being in the array - formulas included for reference.

    http://www.hicup.org/excelmatch.jpg

    Thanks

    David

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Problem with MATCH function

    Hi and welcome to the board,

    it would be easier to help if you posted a zipped worksheet instead of a picture

  3. #3
    Registered User
    Join Date
    04-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Problem with MATCH function

    Thanks for the suggestion, zipped workbook at the link below..

    http://www.hicup.org/Book1.zip

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

    Re: Problem with MATCH function

    Totally agree with arthurbr, images are rarely helpful.

    A quick way to try and identify a problem is to use alternative approaches to see which / if any return a result

    G4: =MATCH(TRIM(C4),A:A,0)
    H4: =MATCH(C4&"*",A:A,0)

    If the former returns a value you have trailing spaces etc in the criteria but not the data, if the latter returns a value you (most likely) have trailing spaces in the lookup range values but not the criteria

  5. #5
    Registered User
    Join Date
    04-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Problem with MATCH function

    Perfect, direct hit

    It looks like there is a space after that particular record in the array so this worked a treat:

    Quote Originally Posted by DonkeyOte View Post
    H4: =MATCH(C4&"*",A:A,0)
    Thanks for the 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