Consulting

Results 1 to 6 of 6

Thread: Solved: Using VLOOKUP command

  1. #1

    Solved: Using VLOOKUP command

    Hi guys. I have looked in my Excel book for this answer, no luck.
    What is the VLOOKUP command to look in another workbook for information.
    This is as far as I have gotten.
    =VLOOKUP(A2,TEST!,Sheet1!A2:B50,2,0) Where am I wrong?
    Thanks
    Max

  2. #2
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    Hi Ten,

    Looks like you have two sheets defined there. Try removing either TEST! or Sheet1!. The ! is what tells excel to look in a sheet other than the one you are in. HTH
    Peace of mind is found in some of the strangest places.

  3. #3
    VBAX Expert Shazam's Avatar
    Joined
    Sep 2005
    Posts
    530
    Location
    You'll need to put a path in your formula.

    Example:


    =VLOOKUP(A19,'C:\Documents and Settings\My Documents\[Book555555.xls]Sheet1'!$A$1:$B$50,1,0)

  4. #4
    What is wrong with this?
    =VLOOKUP(A2,C:\Desktop\[Test.xls]Sheet1!A2:$b$50,2,0)
    What am I leaving out
    Max

  5. #5
    Administrator
    2nd VP-Knowledge Base
    VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Hey Max

    Shazam's steering you in the right direction and I don't think anything's wrong with your formula...but if you're getting an error the only thing I could suggest is adding the single quotation marks as such:

    =VLOOKUP(A2,'C:\Desktop\[Test.xls]Sheet1'!A2:$b$50,2,0)

    If this is invalid then make sure you are referencing the correct path, workbook, and sheet name.




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  6. #6
    Hi guys I found the path that works for me.
    Thanks for all the help.
    I have one question. What does the single quote ' have to do with the formula. I have tried running the formula without the single quote but it will not work without it.
    I am trying to learn as much as I can from you guys. The quick response and the answers
    to all the problems I have presented have been solved in super quick time. It is like having a teacher on hand all the time.
    Keep up the great work.
    I will close this thread and give it a rating
    Max

Posting Permissions

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