vlookup with variable col_index_num

0

0-0 Wai Wai ^-^

VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

Since my table is subject to constant change, I would like to know how to create
a variable col_index_num which will look up the right column itself, eg look for
the column heading which contains the word "list" & return its col_index_num.
Thanks for your help.
 
B

Bob Phillips

=VLOOKUP(lookup_value,table_array,MATCH("list",OFFSET(table_array,0,0,1,),0)
,TRUE)

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)
 

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

Similar Threads


Top