View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ardus Petus
 
Posts: n/a
Default vlookup with variable col_index_num

If your column headers are in B1:H1
=MATCH("list",$B$1:$H$1,0)

HTH
--
AP

"0-0 Wai Wai ^-^" a écrit dans le message de news:
...

VLOOKUP(lookup_value,table_array,col_index_num,ran ge_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.