+ Reply to Thread
Results 1 to 4 of 4

VBA - Copying columns, adding rows

  1. #1
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    VBA - Copying columns, adding rows

    I would like Sheet1 to be filled in with the data provided from Sheet2. In my initial attempts I added the CONCATENATE column as a stepping stone but it is not necessary to me to use it. What I am trying to accomplish is pretty far from what I'm familiar and I appreciate any help or guidance!

    I want a function to copy the listed columns in Sheet1(Location, Type, length etc.) from Sheet2. The problem I'm most uncertain with is that I need the function to additionally create new rows in Sheet1 if there is data for it in Sheet2.

    For example, for G2K_G1_FB21 it needs to copy one row from sheet2 and place it the correction location on Sheet1 and add an additional row below it and also copy the other matched row (matched with G2K_G1_FB21)on sheet2.

    I attached a sample spreadsheet in case my explanation is confusing.


    EDIT: stnkynts code is exactly what I needed! Thank you Vikas_Gautam too!
    Attached Files Attached Files
    Last edited by MoldyBread; 07-15-2014 at 11:59 PM.

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: VBA - Copying columns, adding rows

    check the near solution...
    I have used array formula so use ctrl + shift + enter to enter the formula...



    Don't forget to click *
    Attached Files Attached Files

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: VBA - Copying columns, adding rows

    For tackling the matches..
    I think this can be a better solution...
    If you can Product name.. You wanna search then I can show you all the matches..

    try this..


    Don't forget to click *
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: VBA - Copying columns, adding rows

    I think this is what you want:

    Please Login or Register  to view this content.

+ 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] Locking cells in columns but allow copying and adding rows
    By Skully in forum Excel General
    Replies: 16
    Last Post: 02-25-2020, 10:49 AM
  2. Copying Data from one Sheet to another and adding rows to accomodate
    By whammond597 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2014, 04:59 PM
  3. [SOLVED] Copying Rows and Adding to an Integer
    By abba92 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2013, 04:12 PM
  4. adding and copying rows
    By CatherineN in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2006, 05:07 PM
  5. [SOLVED] Copying and skipping (adding) rows
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2006, 02:40 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