Lookup function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a worksheet that has the following data.

5000 10000 15000 25000
A 1 6 7 9
B 3 4 2 1
C 5 5 7 3
D 12 16 15 99

What I want to do through code is to supply 10000 and C through variables to
a function and have it return to me a 5. Does anyone have any code that would
accomplish this?
 
Hi,

Believe you are looking at the function index()
=INDEX(A1:E5,4,2)
which consists of the area, row number, column number
If you are also looking for integrating row and column numbers, you
will need to combine
=MATCH(A10,A1:A5,FALSE) for row
=MATCH(A11,A1:E1,FALSE) for column
provided you input your variables in A10 and A11

HTH
Cheers
Carim
 

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

Back
Top