how to get the value in the upper 5 cell

G

Guest

Dear all,

the purpose is to do a subtract to two cells, which are in the same colume
but one is upper 5 to the other.

First I have a vlookup string, "=VLOOKUP(B2,sheet2!A:M,3,FALSE)". Suppose
that the result of this vlookup value is located in sheet2!C10, I want to get
other value which is sheet2!C5. Cause C10 is not stable, it is located by
this vlookup string, how can I get the value of C5?

P.S. the value of each colume is not continous.

If anyone can give some hints, many many thanks to you!
 
T

T. Valko

One way:

=INDEX(Sheet2!A:M,MATCH(B2,Sheet2!A:A,0)-5,3)

Note that if the lookup_value is in the range Sheet2!A1:A5 you'll get an
incorrect result since there aren't 5 cells above. I'm assuming your design
and request have taken that into account.

Biff
 

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

Top