+ Reply to Thread
Results 1 to 6 of 6

I need help comparing two columns on two different workbooks

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    I need help comparing two columns on two different workbooks

    Here is what Im trying to achieve... I have workbookA and workbookB. I am trying to compare column A of workbookA with column E of workbookB. I need to find duplicates between the two and have them output to column B of workbookA if found. Help me please!!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: I need help comparing two columns on two different workbooks

    Hi and welcome to the forum

    You dont need VBA for this, a simple vlookup will give you what you want.
    Create the vlookup as if it was inteh same workbook, pointing to the other workbook as if it were just another sheet
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: I need help comparing two columns on two different workbooks

    Thanks, I was attempting this with vLookup but was a bit confused on how to do this

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: I need help comparing two columns on two different workbooks

    So, did you figure it out? It's really makes no different if the vlookup() is on the same sheet or a different sheet or a different WB. Let me know if you need further assistance?

  5. #5
    Registered User
    Join Date
    03-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: I need help comparing two columns on two different workbooks

    lol I wish Im kinda green with excel all together so vLookups are even intimidating to me. I can try and figure it out.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: I need help comparing two columns on two different workbooks

    OK see if this helps.

    Assume this is in sampleworkbook(1) sheet1....
    A
    B
    1
    1
    0-50
    2
    7
    50-100
    3
    2
    100-150
    4
    3
    150-200
    5
    4
    200-250
    6
    5
    250-300
    7
    6
    300+


    And then in SampleWorkbook (2) you have this...
    A
    B
    1
    1
    0-50
    2
    2
    100-150
    3
    3
    150-200
    4
    4
    200-250
    5
    5
    250-300
    6
    6
    300+
    7
    7
    50-100


    B2, copied down=VLOOKUP(A1,'[SampleWorkbook(1).xlsx]Sheet1'!A$1:B$7,2,0)

+ 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. Comparing columns in different workbooks?
    By rellimjoe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2011, 09:25 AM
  2. comparing columns on 2 different workbooks
    By keith6292 in forum Excel General
    Replies: 6
    Last Post: 04-11-2010, 11:00 PM
  3. Comparing cells in two columns in two different workbooks
    By maroonblazer in forum Excel General
    Replies: 1
    Last Post: 11-16-2007, 03:45 AM
  4. Comparing columns in 2 Excel files(workbooks)
    By schellam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2005, 01:15 PM
  5. Comparing Workbooks
    By JS in forum Excel General
    Replies: 2
    Last Post: 10-21-2005, 09:05 AM

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