+ Reply to Thread
Results 1 to 2 of 2

excel loop to copy data from sheet 1 to sheet 2 based on matches

  1. #1
    Registered User
    Join Date
    06-13-2016
    Location
    NJ
    MS-Off Ver
    2010
    Posts
    95

    excel loop to copy data from sheet 1 to sheet 2 based on matches

    hi all, returning here after quite some time and as a result of not having coded in VBA for 4-5 years, ive seemed to have lost a lot of my prior basic coding knowledge... hoping this will help jog my memory

    I have two tables where i am trying to copy data from one sheet to another based on matches

    Table1:

    Col A Col B Col C Co D Col E
    Company Name Week1Data Week2Data Week3Data Week4Data

    XYZ 22% 15% 43% 55%
    ABC 25% 63% 36% 83%


    Table2:

    ColA ColB ColC
    Company Name Week% Week Reference

    XYZ 22% Week1Data
    XYZ 15% Week2Data
    XYZ 43% Week3Data
    XYZ 55% Week4Data
    ABC 25% Week1Data
    ABC 63% Week2Data
    ABC 36% Week3Data
    ABC 83% Week4Data


    How can i copy the % from table2 to populate the week1-week4 %s based on the company name and week reference into Table1 via some sort of loop?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: excel loop to copy data from sheet 1 to sheet 2 based on matches

    Welcome back to the forum!

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    That being said, you may be able to do this with a formula, match-index combination formula comes to mind.

+ 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. If name on sheet 1 matches in sheet 2, copy data over
    By marcoandretti25 in forum Excel General
    Replies: 1
    Last Post: 10-30-2018, 11:57 AM
  2. Replies: 1
    Last Post: 09-23-2017, 12:59 AM
  3. Replies: 2
    Last Post: 01-23-2016, 01:16 PM
  4. [SOLVED] Copy Column A data to Sheet 2 where rows matches Sheet 2 headers
    By SCDE in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2015, 12:14 AM
  5. [SOLVED] Run a loop to slected data then filter on another sheet and copy to another sheet
    By af_lel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-21-2013, 07:10 AM
  6. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  7. Replies: 1
    Last Post: 10-30-2009, 10:58 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