+ Reply to Thread
Results 1 to 2 of 2

Loop thru column, copy value to different sheet based on value

  1. #1
    Registered User
    Join Date
    04-26-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    27

    Loop thru column, copy value to different sheet based on value

    Hello,

    I am stuck.. I am trying to create a macro which will look at column C in Sheet1 whose length is dynamic, and copy the value to the right of it into another sheet where the value in column C matches. As an example, my hope is to loop through the Aisle column (column C) and paste the error (Column D) into Sheet2, where there is a full list of aisles which is matched from Sheet1.


    Aisle Error
    2 1
    4 2
    7 0
    8 2
    12 1

    Any guidance would be genuinely appreciated.

  2. #2
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Tampa, Florida
    MS-Off Ver
    Excel 2013
    Posts
    142

    Re: Loop thru column, copy value to different sheet based on value

    Does it have to be a macro? It sounds like this can be accomplished with a vlookup or index/match formula.

+ 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. Replies: 3
    Last Post: 11-06-2014, 01:23 AM
  2. Loop range copy based on previous column
    By darkhangelsk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-12-2014, 03:38 PM
  3. Problem !! loop to print parts of the sheet based on the value of a column
    By Abo Rawad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2013, 07:39 PM
  4. Loop through column and copy specific values to another sheet for calculations
    By caoexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2013, 02:49 PM
  5. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  6. Copy column data on one sheet to row or column date on another sheet based on user in
    By soready42012 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-08-2012, 12:03 AM
  7. Copy and Paste Loop based on corresponding value in another column
    By gibby8 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2011, 03:25 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