View Single Post
  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default FIND FORMULA SIMILAR TO VLOOKUP FOR NON-ASCENDING VALUES

Bob Phillips wrote...
=INDEX(B:B,MATCH("Sue",A:A,0)

....

Uh, why not

=VLOOKUP("Sue",A:B,2,0)

?

Unlike 123 and possibly Quattro Pro, Excel's VLOOKUP includes and
optional 4th parameter that defaults (default value TRUE or 1) to
assuming the first column is sorted in ascending order, and matches the
largest value in the first col less than or equal to the lookup value.
When the 4th argument is FALSE or 0, VLOOKUP uses exact matching and
linear searching, and only finds exact (well, case-insensitive)
matches. [This is for the OP's benefit, not Bob's.]