+ Reply to Thread
Results 1 to 2 of 2

Macro to compare column and copy & paste the data between 2 worksheets

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Macro to compare column and copy & paste the data between 2 worksheets

    Hello Guys,

    I need help to create a Macro which compares the “Customer ID” column in attached both files (Sample1.xlsx and Sample2.xlsx).

    If same “Customer ID” is found in Sample2.xlsx file then value present in “Chassis No.” column against that customer id get copied into the “New Chassis No. 1” column of Sample1.xlsx file.

    If same “Customer ID” is found again in Sample2.xlsx file then value present in “Chassis No.” column against that customer id get copied into the “New Chassis No. 2” column of Sample1.xlsx file.

    For more understanding, please refer the Columns marked as an Yellow in Sample1.xlsx file.

    Any help will be appreciated a lot.

    Thanks,
    Attached Files Attached Files
    Last edited by Manish_Gupta; 02-03-2014 at 07:30 AM.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Macro to compare column and copy & paste the data between 2 worksheets

    Hello Manish, Find attached !

    you need to have both books open!
    if you have different workbook and sheet name then do edit code.
    Please Login or Register  to view this content.
    Click "*" add rep icon in the bottom left corner of my post if this helps!
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

+ 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] Compare two columns and copy and paste data from a third column when a match is found
    By GatorsBucs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2013, 06:54 PM
  2. Macro to Compare Columns and Copy Paste Data
    By Jiptastic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-01-2012, 01:15 PM
  3. [SOLVED] Macro to compare data between sheets and copy/paste
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-24-2012, 05:46 PM
  4. Macro to copy and paste special values for column data and filter column data
    By ascottbag in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-10-2012, 02:15 PM
  5. Compare Two Columns In Two Worksheets To Copy And Paste A Third Column
    By uopint in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2007, 05:03 PM

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