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 quot;listquot; amp; return its col_index_num.
Thanks for your help.
If your column headers are in B1:H1
=MATCH(quot;listquot;,$B$1:$H$1,0)
HTH
--
AP
quot;0-0 Wai Wai ^-^quot; gt; a écrit dans le message de news:
...
gt;
gt; VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)
gt;
gt; Since my table is subject to constant change, I would like to know how to
gt; create
gt; a variable col_index_num which will look up the right column itself, eg
gt; look for
gt; the column heading which contains the word quot;listquot; amp; return its
gt; col_index_num.
gt; Thanks for your help.
gt;
gt;
=VLOOKUP(lookup_value,table_array,MATCH(quot;listquot;,OFF SET(table_array,0,0,1,),0)
,TRUE)
--
HTH
Bob Phillips
(remove xxx from email address if mailing direct)
quot;0-0 Wai Wai ^-^quot; gt; wrote in message
...
gt;
gt; VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)
gt;
gt; Since my table is subject to constant change, I would like to know how to
create
gt; a variable col_index_num which will look up the right column itself, eg
look for
gt; the column heading which contains the word quot;listquot; amp; return its
col_index_num.
gt; Thanks for your help.
gt;
gt;
- Nov 21 Wed 2007 20:40
vlookup with variable col_index_num
close
全站熱搜
留言列表
發表留言