Share via

Finding values in a Matrix

Anonymous
2012-10-24T03:19:39+00:00

I have a matrix, inwhich I want to identify a column based on a row values, go down in that column until I find the value that I am looking for and then go across that row into the first column of that row and provide that value. How do I do that?

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

Anonymous
2012-10-25T02:25:47+00:00

As the column for lookup is determined by the (x,1) and (x,y) is looked up in that columns, I think that bringing OFFSET() into the mix might be the best method. If I'm interpreting your description correctly, this is a simplistic representation of your data matrix (B2:F6) and known values (B9 & C9).

                

The formula in D9 that returns Y is,

=INDEX($B$3:$B$6,MATCH(C9,OFFSET($B$2,1,MATCH(B9,$C$2:$F$2,0),4,1),0))

INDEX function
MATCH function
OFFSET function

Edit: typed "The formula in B9 that returns Y is" insteaf of "The formula in D9 that returns Y is". Corrected description. Formula did not need modification.

Was this answer helpful?

0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-10-26T03:10:22+00:00

    Thank you for the kind words.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-10-26T01:49:55+00:00

    Jeeped,

    Thanks a lot. It worked great!

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2012-10-25T00:55:12+00:00

    Not sure how that would work. The function above would give me the output at position X and Y within the matrix. I know values at position (X,1) & position (X,Y) within the maxtrix and want function provide me with the value at position (1,Y). So if I use Match function within the Index function, I can determine X position with the value at function (X,1) but not sure how I can determine the Y position by knowing the X,Y value and then having that information provide me the value located at (1,Y) position.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2012-10-24T04:18:52+00:00

    You would use a form of INDEX(...MATCH(),MATCH()).

    INDEX function
    MATCH function

    Post back with some specifics if you require more help.

    Was this answer helpful?

    0 comments No comments