lookup matrix

J

Jack

I have the following matrix. I'm given the values of C and bb
How would i write a macro to get the result? which is 8.

aa bb cc
A 1 2 3
B 4 5 6
C 7 8 9
D 10 11 12
E 13 14 15

thanks
Jack
 
S

smartin

Jack said:
I have the following matrix. I'm given the values of C and bb
How would i write a macro to get the result? which is 8.

aa bb cc
A 1 2 3
B 4 5 6
C 7 8 9
D 10 11 12
E 13 14 15

thanks
Jack

With your data in A1:B6 here is a worksheet function that will do it.

=INDEX(B2:D6,MATCH("C",A2:A6,0),MATCH("bb",B1:D1,0))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

sumif 1
incremental counting based on criteria 4
Numbers from first column 6
IF formulas 5
Auto Fill a column 3
Column multiplied by a matrix 2
Find value based on two lookup values 2
lookup in a matrix 2

Top