lookup help needed

C

catchchatur

Please see the table below

A B C
1 31 34 23
2 22 27 45
3 31 12 24
4 45 14 27
5 23 45 12

How to use lookup (or any function), which looks for value only in
column C and return the value from corresponding row in column A. Say
I want to look for "27" in column C, and if i find 27 in column C, it
should return 45 from column A.

The problem with vlookup function is that if I define my Table_array
from A1:C5, it will look for 27 in range A1:C5 and will match 27 from
cell B2 first and then would return 22. If I define my Table_array
from C1:C5, it will match 27 from row 4, but cannot return anything
from Column A because vlookup cannot return the value from outside the
range of its table_array.

I hope I am able to explain my problem. Any way to overcome it
without using VBA?

Thanks
Chatur
 
J

Joel

VLOOK only looks up the item in the first row. You need to use match and
offset

Match will return the row number. The offset is one less than the row
number because the reference cell A1 in offset is 1. If match returns row 3
then the offset of row 3 from row 1 is two which is 3 - 1.

=OFFSET(A1,MATCH(E1,C1:C5)-1,0)
 
C

catchchatur

Joel,

Thanks for your input. It worked for me however, I came across
another problem. Use of match and offset has a limitation too. If I
am not able to find exact match, I want the formula to return the
approximate match. However, to find a approximate value using match,
array should be sorted and mine is not. I cannot use the sorted array
in my database.

Is there any way it can be done?

Thanks,
Chatur
 

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

transformed vloopup 2
Sumproduct Problem 4
WCG Stats Thursday 24 August 2023 3
WCG Stats Monday 19 June 2023 3
Vlookup Function 1
Date match problem 2
Lookup based on reference 5
WCG Stats Tuesday 22 August 2023 3

Top