Vlookup top to bottom & not left to right

  • Thread starter Thread starter Les Stout
  • Start date Start date
L

Les Stout

Hi all, is it possible to look up a number on the top of the sheet,
let's say a1, b1, c1,d1,etc.. and get the value in the last used cell of
the column or must one copy and past them left to right ??

thanks in advance,

Les Stout
 
find the column

=Match("Price",A1:Z1,0)

once you have the column then

Use a number larger than any in the column (assume you are looking at
numbers)
match(999999999999,F1:F500,1)

so

Putting it all together:

=OFFSET($A$1,MATCH(999999,OFFSET($A$1,1,MATCH("Price",$B$1:$Z$1),500,1),1),M
ATCH("Price",$B$1:$Z$1))
 
I guess you said a number in the first row rather than a text header, so
just replace the "Price" with a number

=OFFSET($A$1,MATCH(999999,OFFSET($A$1,1,MATCH(321,$B$1:$Z$1,0),500,1),1),M
ATCH(321,$B$1:$Z$1,0))

also in those two match formulas, I forgot to put the third argument in
which should be a zero (0). that would be true for text or number.
 

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

Back
Top