A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

vlookup with variable col_index_num



 
 
Thread Tools Display Modes
  #1  
Old May 16th, 2006, 06:05 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
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  
Old May 16th, 2006, 06:12 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
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  
Old May 16th, 2006, 06:15 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
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.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Variable col_index_num in vlookup Hugh Murfitt General Discussion 1 February 15th, 2006 12:17 PM
Vlookup using variable path name for range value Jeff Lowenstein Worksheet Functions 1 February 9th, 2006 01:13 AM
Vlookup to retrive HOW CAN I UPDATE jpricesr New Users 1 September 22nd, 2004 09:47 PM
Vlookup within a vlookup function James Lee Worksheet Functions 7 April 1st, 2004 01:31 PM
VLookup Help Robert Worksheet Functions 5 December 3rd, 2003 12:57 AM


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


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