+ Reply to Thread
Results 1 to 2 of 2

vLookup ... help please

  1. #1
    Registered User
    Join Date
    09-28-2005
    Posts
    2

    vLookup ... help please

    Hi,

    I made a mistake last time ....sorry

    I have two separates excel workbooks ( not worksheets!!).

    Workbook no 1 which has several columns : A ( XP numbers) to O

    Workbook no 2 which has two columns : A ( XP numbers) and B ( DOI numbers)


    PS: both workbooks have column A in common ( XP numbers)

    I am trying to extract the data from the column B ( DOI numbers ) of workbook no 2 and insert them into workbook no 1 ONLY when the data from column A ( XP numbers) match !


    Can anyone help me with the formula?
    Step by step ...

    Also it is possible to automatically repeat the same formula accross several other workbooks ?:

    ..... with Workbook no 3 and 4 and 5 ...etc ....( Identical to woorkbook no 2) : has two columns : A ( XP numbers) and B ( DOI numbers)

    Many thanks

    Sarah

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    A formula similar to this should work for you:

    =IF(ISNA(VLOOKUP(A2,'C:\My Documents\[Book2.xls]Sheet1'!$A1:B1000,2,1)),"Not Found",VLOOKUP(A2,'C:\My Documents\[Book2.xls]Sheet1'!$A1:B1000,2,1))

    Of course, adjust the path to the other workbook and the lookup range as needed.

    I added the error trap of ISNA to return "Not Found" if the value in col. A is not found in the lookup range. Without this, #N/A would be returned for each value not found.

    HTH
    Bruce
    The older I get, the better I used to be.
    USA

+ 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