+ Reply to Thread
Results 1 to 3 of 3

Thread: Vlookup...

  1. #1
    Registered User
    Join Date
    02-08-2010
    Location
    mumbai
    MS-Off Ver
    Excel 2007
    Posts
    1

    Vlookup...

    Dear All,

    Iam just thinking some kind of automation in vlookup so lets try to do this.

    This is my formula: =VLOOKUP(A4,'Z:\Data\Extra\Check\[Jan'09.xlsx]Sheet1'!$A$2:$B$2,2,FALSE)

    This is true code but if i like to do automation means i have month values in the drop down list like Jan'09, Feb'09, Mar'09 etc.

    and if iam changing the values of months than automaticall the formula should pull the value from the repective month file.

    if any 1 have idea for the same please let me know...

  2. #2
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Vlookup...

    Hello ashish,

    welcome to the forum.

    Whereas Vlookup works on closed workbooks, you would need to involve INDIRECT() to string together your formula with varying filenames. INDIRECT, unfortunately does not work on closed workbooks, so you'll either need to make sure the workbook is open when the INDIRECT is performed, or you can resort to the morefunc.xll, wich has a formula INDIRECT.EXT, that also works on closed files.

    Explore morefunc.xll here : http://xcell05.free.fr/morefunc/english/index.htm

    If an open workbook can be assumed, your formula could be constructed like this:

    =VLOOKUP(A4,INDIRECT("'Z:\Data\Extra\Check\["&A1&"]Sheet1'!$A$2:$B$2"),2,FALSE)

    where A1 has the name of the workbook you want to reference.

    hth
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  3. #3
    Forum Moderator ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2003 & 2010
    Posts
    1,795

    Re: Vlookup...

    Hi,

    This doesn't appear to be an Access question, so would one of the Mods please move this thread to an Excel forum?

    Thanks,
    Docendo discimus.

    Please consider:
    • Thanking those who helped you. Click the reputation icon in the contributor's post and add Reputation.
    • Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0