Thread: =Lookup()
View Single Post
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 29 Jun 2005 20:39:06 +0100, ChuckM
wrote:


Not sure what is happening here. Here is the data:

ColA ColB
Service 17
Variety 1
Relations 14
Experience 20
Knowledge 10
Value 8
Reputation 3

Created 3 formulas to retreive the 1st, 2nd, and 3rd highest numbers in
the list (e.g.: Cell C1 has formula =Large(B1:B7,1), Cell C2 has
=Large(B1:B7,2), etc.)
Then I want to return the text value from column A and use:
=Lookup(C1,B1:B7,A1:A7)
This works for the first value and returns Experience
The second one returns Relations (wrong answer - should be Service)
The third one returns Relations (wright answer). . .

Any ideas?


Column B is your lookup_vector. The values in lookup_vector must be placed in
ascending order and they are not; so you may expect to obtain wrong answers.

Try this formula instead:

=INDEX($A$1:$A$7,MATCH(C1,$B$1:$B$7,0))

Copy/drag down as needed.




--ron