+ Reply to Thread
Results 1 to 7 of 7

Compare 2 pair of columns then copy value of third column over different sheets

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    SM, Ro
    MS-Off Ver
    Excel 2007
    Posts
    7

    Compare 2 pair of columns then copy value of third column over different sheets

    Hello, this is my very first post here and I'm new to VBA.
    I have tried different approach to my problem but haven't got solved.
    I have values in column H and I on Sheet1 and a list of 13963 records on A and B from Sheet2.
    I need to compare H1 sheet1 = any A in sheet1 AND I1 sheet1 = adjacent B from sheet2. If both values matches then need to copy value of C sheet 2 to J1.
    This must be done for any not null cells in column H.
    Thanks for any tips, anything is welcomed!

  2. #2
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Compare 2 pair of columns then copy value of third column over different sheets

    can you attach a sample workbook...
    sorry i always ask for this, but i am not good at trying to take problems in without seeing them...

  3. #3
    Registered User
    Join Date
    12-13-2012
    Location
    SM, Ro
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Compare 2 pair of columns then copy value of third column over different sheets

    Here it is a sample with 2 sheets
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Compare 2 pair of columns then copy value of third column over different sheets

    Hi a3des,

    Welcome to the forum!!

    Try this:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  5. #5
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Compare 2 pair of columns then copy value of third column over different sheets

    Hi -

    Try;
    Please Login or Register  to view this content.
    Regards,
    Event

  6. #6
    Registered User
    Join Date
    12-13-2012
    Location
    SM, Ro
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Compare 2 pair of columns then copy value of third column over different sheets

    Quote Originally Posted by event21 View Post
    Hi -

    Try;
    Please Login or Register  to view this content.
    Regards,
    Event

    Thank you very much, that does the trick!

  7. #7
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Compare 2 pair of columns then copy value of third column over different sheets

    Hi -

    You're welcome, please mark as closed.

    Regards,
    Event

+ 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