+ Reply to Thread
Results 1 to 9 of 9

Running vblookup between two .xlsm documents

  1. #1
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Running vblookup between two .xlsm documents

    Dear Gurus.

    I have two workbooks one names "Quote" other named "product supply".
    In "Quote" i would like to have somthink like a Vblookup that on a givin line can enter price's, disciptions and other data automaticly on that line, From the "Product Supply".
    Example
    "Quote" A:1 Dropdown list. Select product, Then refers to "product supply" of that product, then trasphers data into "Quote" A:2
    Last edited by D_Rennie; 05-19-2009 at 10:58 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Running vblookup between two .xlsm documents

    Something like

    =Vlookup(A1,'[C:\mydocs\product supply.xlsm]Sheet1'!$A$1:$X$100,2,FALSE)

    change path to reflect actual path.

    change sheet name and ranges to suit.

    This formula looks in column A of table in A1:X100 and takes value from column 2 of the table where value in column A matches A1 of your active workbook.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Running vblookup between two .xlsm documents

    Thankyou for the responce.
    That looks like what i need. I cant seam to figure it out.
    Would you be kind enough to do a demostration that relates to my documents.
    On "quote" cell B:17 Lookup "product supply" (use prices from colum N)
    enter price on quote cell H:17
    Im sure I could get it in seconds not hours if i could see in being used.
    Cheers
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Running vblookup between two .xlsm documents

    What exactly are we looking up in the Product Supply workbook.. I don't notice any related data?

  5. #5
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Running vblookup between two .xlsm documents

    My fault Ive posted the worng copy of "product supply"

    If i could have a dropdown list on the "quote" from cells B16:B37 or manually enter A product code (refer to "product supply" cells B8:B11)
    Then on "quote" cell range H16:37. A Price is then entered from "product supply" colum N.

    Example "quote" cell B16 = CL6, enter price from "product supply" cell N8 into "quote" cell H16.

    Please not With clicking the print and preview buttion in "quote" a file will be saved into the C: folder.
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Running vblookup between two .xlsm documents

    First, if you want to enter anything other than what is in the drop down, you will have to disable Error message.. to do that go to Data|Validation and in the Error Alert tab, uncheck "show error alert after invalid data is entered"

    Second, the data in the Product Supply column B has extra spaces at the ends.. please get rid of them...

    Now, while the Product Supply book is opened, enter this formula in H16:

    =VLOOKUP(B16,'[Product Supply-1.xlsm]Sheet1'!$B$8:$N$11,13,0)

    adjusting range to suit.

    copy down...

    Once you close the Product Supply workbook, the formula will automatically add the path...

  7. #7
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Running vblookup between two .xlsm documents

    Thankyou Works well apart from one thing.
    If product list "quote" (colum B) is blank it inserts a price of 6.11 from the product supply.
    Cant thankyou enough.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Running vblookup between two .xlsm documents

    Then add to formula...


    =IF(B16="","",VLOOKUP(B16,'[Product Supply-1.xlsm]Sheet1'!$B$8:$N$11,13,0))

  9. #9
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Running vblookup between two .xlsm documents

    Thankyou that worked just like i need.
    Thankyou.
    Thankyou.

+ 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