Lookup Function

K

kmwhitt

I have a simple table with 4 rows and 3 columns on one worksheet - A4:C7. On
another worksheet I would like to lookup a value from the table and have it
show up in cell F2. The column and row headings are NOT numbers. They are
text, so I don't think HLOOKUP or VLOOKUP will help. Correct? What function
is best suited to accomplish this?

Thanks,

Kevin
 
B

Biff

They are text, so I don't think HLOOKUP or VLOOKUP will help. Correct?

No, you can use TEXT in lookup tables. Try it!

Biff
 
K

kmwhitt

Thanks, Biff....

I can get the function to work when I use a number, but not when I am
referencing the contents of a cell.

For example:

=HLOOKUP($C$4,INDIRECT("'" & C1 & "'!A4:C7"),"$C$3",FALSE)

I've also tried:

=HLOOKUP($C$4,INDIRECT("'" & C1 & "'!A4:C7"),$C$3,FALSE)

and

=HLOOKUP($C$4,INDIRECT("'" & C1 & "'!A4:C7"),"Stain Only",FALSE)
where Stain Only is a column header in my table.

This works:

=HLOOKUP($C$4,INDIRECT("'" & C1 & "'!A4:C7"),2,FALSE)
but does not accomplish what I want.

Please advise. Thanks again,

Kevin
 
Top