Canada Flag
Back to Miscellaneous questions. Back to Lookup functions.

Here is the data table. The person inquiring wanted to input two variables: Category (in the top row) and a number that appears under that category. Once these two variables were input, he wanted to return the value in column B.

In the example below, Category = BB and Number = 25. With those two variables, he wanted to return the value "ALPHA".

Lookup Picture

This formula will return the required value:
=INDIRECT(ADDRESS(MATCH(D11,OFFSET($B$2:$B$6,0,MATCH(F11,$C$2:$G$2,0)),0)+1,2))

"Barrie", you say, "that's great. Can you translate this formula in to English for me?".

"OK", says I, "this will be long-winded, but let's break it down in to its parts".





Copyright © 2001 by Barrie R. Davidson
Last updated February, 2002