+ Reply to Thread
Results 1 to 4 of 4

fill column with vlookup formula to other workbook that depends on cell value

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Red face fill column with vlookup formula to other workbook that depends on cell value

    Hi,

    VBA Newbie seeking help! I'll try to describe the problem I have as best as I can:

    Column B - A dynamic range that is auto-populated. The string that is contained in this range is referencing a specific workbook.

    Column G - Here I want to have a formula inserted to use vlookup and display a value from the workbook referenced in column B. I want the formulas to be auto-populated to the same number of rows that are listed in Column B.

    With the code below I am able to return the desired value in Column G, but only for the top row. Each of the following rows only displays the vlookup for the top workbook in column B. Is there anyway I can make the range dynamic when the formulas auto-populate in column G?

    Please Login or Register  to view this content.
    Any help/suggestions is greatly appreciated.

    Thanks!
    Last edited by knick12; 10-22-2012 at 02:37 PM.

  2. #2
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: fill column with vlookup formula to other workbook that depends on cell value

    knick12,

    Assuming your data starts on row 2, try the following -

    Please Login or Register  to view this content.
    Dave H
    - Mark your post [SOLVED] if it has been answered satisfactorily, by editing your original post using advanced mode.
    - Thank those that provided useful help, its nice and its very well appreciated...use the star on the lower left of the post

  3. #3
    Registered User
    Join Date
    10-18-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: fill column with vlookup formula to other workbook that depends on cell value

    Thank you Dave H! It worked like a charm!

  4. #4
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: fill column with vlookup formula to other workbook that depends on cell value

    Glad to help. Thank you for marking your thread solved.

    Dave H

+ Reply to Thread

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.6.0 RC 1