Share via

Match function returning #N/A error

Anonymous
2017-05-13T03:49:38+00:00

I am making a gradebook. One of the criteria is to use the MATCH function to make it so I can type in a student ID and have it return the students name, overall score and grade. I can get it to return the cell number the student's name is in, but not the name itself.

Formula that returns everything but the name is this:

=MATCH(A16,studentid,0)

When replacing studentid with student_name it returns N/A error.

Any help would be greatly appreciated.

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

Answer accepted by question author

Bob Jones AKA CyberTaz MVP 436K Reputation points
2017-05-13T13:08:51+00:00

Further to joeu2004's response, MATCH() is not designed to return data stored in a cell. It's purpose is to return the position in which the data is found in the list. Please see this support article:

MATCH function - Office Support

Was this answer helpful?

0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Jim G 134K Reputation points MVP Volunteer Moderator
    2017-05-17T14:38:21+00:00

    I suggest using VLOOKUP instead.

    https://www.youtube.com/watch?v=-hJxIMBbmZY

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2017-05-16T00:59:04+00:00

    Hi J_andersonthethird,

    Any updates?

    Regards,

    Linda

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2017-05-14T07:40:34+00:00

    Hi J_andersonthethird,

    As Bob said that, Match function cannot return name but position. And the lookup_array part in Match function is a contiguous range of cells containing possible lookup values, an array of values or a reference to an array. For your situation, I would like to confirm the whole formula you used to get everything via student id as the lookup_array part. Some screenshot or a simple file would be appreciated.

    Thanks,

    Linda

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2017-05-13T06:25:34+00:00

    j_andersonthethird wrote:

    I can get it to return the cell number the student's name is in, but not the name itself. Formula that returns everything but the name is this:

    =MATCH(A16,studentid,0)

    When replacing studentid with student_name it returns N/A error.

    =INDEX(student_name, MATCH(A16,studentid,0), 1)

    Was this answer helpful?

    0 comments No comments