Replacing the row index in HLOOKUP

M

Martin Smith

I have an array of data with the first column and the first row being
sizes and the contents of the table being price.

I want to have a drop list where the user selects size a, size b and
gets given the price.

I have successfully done this with HLOOKUP however while the first list
is the values of the first row the second list is the index 1,2,3,4,
etc not the sizes in the first list as I wanted.

How can I get the drop down list to display the actual data from the
first column while returning the index number as required by the
HLOOKUP formula?

Thanks,

Martin
 
B

Bob Phillips

I think you want INDEX MATCH

=INDEX(full_range,MATCH(row_value,first_column,0),MATCH(Col_value,first_row,
0))

--
HTH

Bob Phillips

(replace somewhere in email address with googlemail if mailing direct)
 
B

Bob Phillips

No, you can include them as well as long as you include the first column in
the first row and vice versa.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

 
M

Martin Smith

No, you can include them as well as long as you include the first column in
the first row and vice versa.

When I first specified the full array it was off by one cell across and
down? or was that up? I can't remember but I'll go and take another
look. That said the sheet seems to be working ok.
 

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