close

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;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()