+ Reply to Thread
Results 1 to 2 of 2

Compare two workbooks and fetch value from book 2 to book 1

  1. #1
    Registered User
    Join Date
    08-08-2017
    Location
    Hyderabad
    MS-Off Ver
    2013
    Posts
    1

    Compare two workbooks and fetch value from book 2 to book 1

    Hello,

    Could someone please help with a VBA code to compare "id"(column1) from workbook1 with "keyid" (column1) from workbook 2 and if there is any match then it should copy value from column E (workbook 2) and paste it in column H (workbook 1). If there is no match then it should return value as zero. If there are multiple keyid matches then create an empty row for every additional column E value on the book 1. (For example, if there are 3 matches on key id, the three corresponding values should be pasted one below the other in the column H).

    Please let me know for more clarification.

    Thanks for the help.

  2. #2
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Compare two workbooks and fetch value from book 2 to book 1

    Maybe this
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Comparing number of records in Column A in Book 1.xls and Book 2.xls
    By longbow007 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-10-2016, 07:47 PM
  2. Open Closed Book, carry out a VLookup and then put all entries into blank book
    By AChatwin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2015, 03:17 AM
  3. [SOLVED] how to change this macro so it makes sheets in a new book not in the current book
    By gavwalsh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2015, 05:27 AM
  4. Replies: 3
    Last Post: 12-27-2012, 12:26 PM
  5. [SOLVED] Populate time based on condition from Book 1 to Book 2....
    By [email protected] in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 12-12-2012, 01:52 PM
  6. [SOLVED] Copy a range from one book, and transpose it to the next available line in another book
    By gherzberg in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-30-2012, 03:29 PM
  7. Open book, check for macros, close book
    By CLR in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-31-2005, 02:06 PM

Tags for this Thread

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