+ Reply to Thread
Results 1 to 13 of 13

Matching

  1. #1
    Forum Contributor
    Join Date
    07-28-2005
    Posts
    151

    Matching

    =MATCH(A2,$E$2:$E$1122,0)

    I am using this formula for matching, however for some values it does not work, even though there is a match. Can anyone help?

    Chris

  2. #2
    Mark Lincoln
    Guest

    Re: Matching

    With a Match_Type of 0, you're looking for exact matches. Might there
    be unseen differences in the data that appear to match?

    This could happen due to rounding; for example, a lookup value of 2.5
    would appear to match a cell that reads "2.5" in your lookup range.
    But if that "matching" cell is formatted to show a single digit and the
    value is actually 2.48, there is not actually an exact match.


  3. #3
    Forum Contributor
    Join Date
    07-28-2005
    Posts
    151
    No the numbers are not rounded. Could it be because of formating?

  4. #4
    Mark Lincoln
    Guest

    Re: Matching

    Are A2 and each cell in your lookup range all formatted as numbers? If
    a cell in the lookup range is formatted as text (or if the number is
    entered with a leading apostrophe, which forces the cell to be text),
    and A2 is a number, that will likely result in a mismatch.


  5. #5
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293
    Likewise trailing spaces or unprintable characters. You might check out the CLEAN function.

  6. #6
    Forum Contributor
    Join Date
    07-28-2005
    Posts
    151
    I just cant get this match thing to work!

    On another spreadsheet which is the same format it does work.

    What can i do?

    Chris

  7. #7
    Forum Contributor
    Join Date
    07-28-2005
    Posts
    151
    I have tred the CLEAN function and the format is fine. The march formula works perfectly on another spreadsheet.

  8. #8
    Forum Contributor
    Join Date
    07-28-2005
    Posts
    151
    I would like to post my file as an attachment but it's too big.

  9. #9
    Jerry W. Lewis
    Guest

    RE: Matching

    When I try to download your file, I get an "Invalid Attachment specified"
    message from excelforum. Besides it is usually more informative if you can
    answer the following few questions about your situation.

    What is in A2 and what is in a cell that should match.

    What is the result of ISNUMBER() for A2 and the supposedly matching cell?

    If the cells contain formulas, trace back the contents of referenced cells
    until you get to actual inputs. Alternately if the cells contain numbers,
    give the results of D2B() or D2D() for A2 and the supposedly matching cell,
    where the VBA code for these functions is given at
    http://groups.google.com/group/micro...06871cf92f8465

    Jerry

    "cj21" wrote:

    >
    > =MATCH(A2,$E$2:$E$1122,0)
    >
    > I am using this formula for matching, however for some values it does
    > not work, even though there is a match. Can anyone help?
    >
    > Chris
    >
    >
    > --
    > cj21
    > ------------------------------------------------------------------------
    > cj21's Profile: http://www.excelforum.com/member.php...o&userid=25673
    > View this thread: http://www.excelforum.com/showthread...hreadid=509337
    >
    >


  10. #10
    Forum Contributor
    Join Date
    07-28-2005
    Posts
    151
    I can explain it best with the example. Try this new attachment.

    Thankyou

    Chris
    Attached Files Attached Files

  11. #11
    Jerry W. Lewis
    Guest

    Re: Matching

    It still will not download (same error message), but since your question is
    why MATCH() does not declare a match, all that is needed is the answers to my
    previous questions (which is all I would look at if I were able to download
    your file).

    Jerry

    "cj21" wrote:

    >
    > I can explain it best with the example. Try this new attachment.
    >
    > Thankyou
    >
    > Chris


  12. #12
    Forum Contributor
    Join Date
    07-28-2005
    Posts
    151
    The example is wrong, so it's best ignored. In column A i have a list of products which are 8-digits long, the first 500 of which start with a 0. In column E i have a list of product codes that i want matched.

    The match formula matches the products beginning with 0, but ignores the rest.

    Chris

  13. #13
    Jerry W. Lewis
    Guest

    Re: Matching

    In my experience, MATCH works as it should. Therefore exploring claims that
    it is not working generally begin with understanding what is actually
    present, specifically:

    What is in A2 and what is in a cell that should match it.

    What is the result of ISNUMBER() for A2 and the supposedly matching cell?

    If the cells contain formulas, trace back the contents of referenced cells
    until you get to actual inputs. Alternately if the cells contain numbers,
    give the results of D2B() or D2D() for A2 and the supposedly matching cell,
    where the VBA code for these functions is given at
    http://groups.google.com/group/micro...06871cf92f8465

    Jerry

    "cj21" wrote:

    >
    > The example is wrong, so it's best ignored. In column A i have a list of
    > products which are 8-digits long, the first 500 of which start with a 0.
    > In column E i have a list of product codes that i want matched.
    >
    > The match formula matches the products beginning with 0, but ignores
    > the rest.
    >
    > Chris
    >
    >
    > --
    > cj21
    > ------------------------------------------------------------------------
    > cj21's Profile: http://www.excelforum.com/member.php...o&userid=25673
    > View this thread: http://www.excelforum.com/showthread...hreadid=509337
    >
    >


+ 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