Share via

Match Function Problem with Numbers

Anonymous
2024-08-26T20:56:07+00:00

I'm using Excel's Match function on an array of card names such as AK, Q9, 77 , 54. To search for a value associated with a card I use the Left and Right functions, such as Left(Cell X): Example:

Match(Left(G5), A1:A13,0), where G5 may hold AJ or Q8 or 76 etc..

 If the cell has only letters, such as QJ, all good. But if one or both cards is a number, such as 86, I get #N/A. I tried Paste Value of the Left or

Right function for the search value but that didn’t work.

Any suggestions?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Ashish Mathur 102K Reputation points Volunteer Moderator
    2024-08-26T23:22:11+00:00

    Hi,

    Does this work?

    =IFERROR(Match(Left(G5)*1, A1:A13,0),Match(Left(G5), A1:A13,0))

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-08-26T22:28:42+00:00

    Didn't work and actually made an ok search invalid. Any other ideas? I would think others must have faced this problem.

    Thanks for your reply

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2024-08-26T21:08:03+00:00

    How about

    =MATCH(LEFT(G5), A1:A13&"", 0)

    Was this answer helpful?

    0 comments No comments