LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default variable vlookup

=vlookup(A1,Indirect("'[Text(Today(),"mmm_")&B1&".xls]Sheet1'!A1:B200"),2,Fa
lse)

Where B1 contains the company name.

[Jan_ABCCORP.xls]Sheet1!A1:B200

might be an example reference.

Jan_ABCCORP.xls must be open for this to work.

--
Regards,
Tom Ogilvy


shaharul wrote in message
...
can somebody help me with creating a variable lookup formula in VBA with
the table array referring to various workbooks depending on the months
and company to be extracted from. i have try to work it out but all
sort of errors come out.



 
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
VLookup Variable Offset Glenda Excel Discussion (Misc queries) 1 April 7th 10 02:01 PM
Vlookup using a variable for the workbook name Phil Excel Discussion (Misc queries) 4 November 10th 08 09:30 PM
Vlookup - Variable look_up value? Stcyrk Excel Discussion (Misc queries) 3 October 5th 07 10:17 PM
vlookup with variable col_index_num 0-0 Wai Wai ^-^ Excel Worksheet Functions 2 May 16th 06 06:15 PM
Variable col_index_num in vlookup Hugh Murfitt Excel Discussion (Misc queries) 1 February 15th 06 12:17 PM


All times are GMT +1. The time now is 07:25 AM.

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

About Us

"It's about Microsoft Excel"