+ Reply to Thread
Results 1 to 7 of 7

Searching and Retrieving a Value from another excel sheet! Please help?

  1. #1
    Registered User
    Join Date
    02-24-2007
    Posts
    13

    Searching and Retrieving a Value from another excel sheet! Please help?

    Hello there expert excellers!

    I am trying to retrieve a cell value from another excel sheet using the VLOOKUP function.

    Basically what I want is for excel to search columns in another excel file and if it finds it I want to retrieve the value next to it. For example, I want it to search 'food' in another excel file and when it finds it I want to retrive value next to it such as 'apple':

    please help and many thanks.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    whats your formula look like?

    This formula is in Book2 B1

    Book1 has the data


    =VLOOKUP(A1,[Book1]frty!$A$3:$B$10,2,FALSE)

    the books need two be opened for these to work if you want book1 closed then we may have to go to VBA

  3. #3
    Registered User
    Join Date
    02-24-2007
    Posts
    13
    Hey Dave,

    thanks allot for your reply i really appreciate it.

    I wanted to ask, since I cannot have all the 12 excel files open...what function can I use to automatically import all data in another excel sheet workbook to the main excel file which is open. SO i can run the VLOOKUP routine without opening up all the excel files.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Quote Originally Posted by stan123
    Hey Dave,

    thanks allot for your reply i really appreciate it.

    I wanted to ask, since I cannot have all the 12 excel files open...what function can I use to automatically import all data in another excel sheet workbook to the main excel file which is open. SO i can run the VLOOKUP routine without opening up all the excel files.
    Hi,
    Make sure all the xl files are in the same directory(folder)

    Then use the code from this Post
    http://www.excelforum.com/showthread.php?t=589590

    You will have to change the ranges and also the the folder name and then play with the workbook

  5. #5
    Registered User
    Join Date
    02-24-2007
    Posts
    13
    Hi Dave,

    sorry to bother you again! Just wanted to ask a quick question

    I want VLOOKUP to search column B for a specific value. When it hits that I want it to go to column O on the same row to retrieve the value I want. How would I go about this?

    cheers dave.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Quote Originally Posted by stan123
    Hi Dave,

    sorry to bother you again! Just wanted to ask a quick question

    I want VLOOKUP to search column B for a specific value. When it hits that I want it to go to column O on the same row to retrieve the value I want. How would I go about this?

    cheers dave.
    Hi Stan,

    =VLOOKUP(A1,[Book1]frty!$A$3:$B$10,2,FALSE)

    =VLOOKUP(what to look up,range of data,column number you want to display,false real result)

    in your case your range would be

    =VLOOKUP(A1,B5:O12,14,FALSE)

    14 is the key for this example, it is the 14th column where the data you want is....

    heres a small example of vlookup




    http://www.excelforum.com/attachment...1&d=1162047932

  7. #7
    Registered User
    Join Date
    02-24-2007
    Posts
    13
    ahhh! i fully understand!

    cheeeeeers and thanks allot for your assistance.

+ 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