Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
0-0 Wai Wai ^-^
 
Posts: n/a
Default vlookup with variable col_index_num


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.


  #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.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default vlookup with variable col_index_num

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

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"0-0 Wai Wai ^-^" wrote in message
...

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.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Aling multiple sets of data by header column MarkusO Excel Discussion (Misc queries) 2 April 12th 06 07:29 PM
Variable VLOOKUP source and target Vindaloo Excel Worksheet Functions 4 April 11th 06 03:56 PM
Creating cell references with variable values to use in Vlookup jackebro Excel Discussion (Misc queries) 2 December 14th 05 02:46 PM
Problems using a variable as a Table_Array in VLOOKUP Jeff Lowenstein Excel Worksheet Functions 1 July 16th 05 02:12 AM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM


All times are GMT +1. The time now is 07:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"