How do I find a value in an array (VLOOKUP? HLOOKUP?)

M

M Skabialka

I have a height, weight and body fat table. The columns are height, the
rows are weight, and the info between is body fat.

I would like to on a separate worksheet, enter the height and the weight and
have Excel find the bodyfat from my table and enter it on this sheet so I
can print it.

I think I need a VLOOKUP or a HLOOKUP, but I can't seem to be able to get
either to look at both height and weight and return the body fat.

B4 is the height, C4 the weight
=HLOOKUP(B4,Women!B1:AO1,1) tells me the height.
=VLOOKUP(C4,Women!A2:A71,1) tells me the weight, but I already know these.
The value I need is in cell F30

Thanks,
Mich
 
B

Bernard Liengme

I have names the horizontal range ( Women!B1:AO1) with height values as
HEIGHT
I have names the rest of the table (without top line) (Women!A2:AO71 I
think) as TABLE
Then use =VLOOKUP(C4,table,MATCH(B4,height,1)+1)
best wishes
 
M

M Skabialka

This worked!
Thanks!

Bernard Liengme said:
I have names the horizontal range ( Women!B1:AO1) with height values as
HEIGHT
I have names the rest of the table (without top line) (Women!A2:AO71 I
think) as TABLE
Then use =VLOOKUP(C4,table,MATCH(B4,height,1)+1)
best wishes
 

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

Top