+ Reply to Thread
Results 1 to 11 of 11

Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

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

    Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

    Hi

    If you look at the attached file, I want to automatically create new rows on sheet "sorted by Broker" based on information that I continuously receive from clients which i copy and paste the list into sheet 1 Column A. Client gives a list of brokers to me and I want that client's information inserted in a new row for the corresponding broker on sheet "sorted by broker". the client information i want duplicated is B1:B3 in sheet 1 into the PM, Firm, Date columns in sheet 2. This is an ongoing process so I want to be able to keep adding rows of matching data to sheet 2 whenever i copy data into sheet 1 column A and hit "Add Data"

    In the attached file, I have copied and pasted cells to show how I want the sheet to work for you to get a better idea.

    I would really appreciate the help! I am getting very confused on how to approach it

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

    Hi vpan,

    Welcome to the Forum!

    How about some sample data?
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

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

    Re: Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

    hello!

    Thank you

    In the attached file, Ive include sample data. Brokers listed on sheet 1 are represented by alphabets, A C D G, and hte information i want copied over is B1:B3. In the second sheet, Brokers are again listed in column A from A to L. And then I have new rows created under A C D G where the information from sheet 1 B1:B3 is copied over.

    I can try and recreate it with actual names to make it easier

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

    Do you want to clear data in sheet "Add Data" when copy paste is done ??
    - Battle without fear gives no glory - Just try

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

    Re: Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

    here is an easier sample to understand
    Attached Files Attached Files

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

    Re: Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

    Quote Originally Posted by PCI View Post
    Do you want to clear data in sheet "Add Data" when copy paste is done ??
    I dont really mind about that as Ive already created a clear data macro. Im only really concerned about creating the new rows for the brokers based on the list ive writter in sheet 1 column A and then copying over sheet 1 B1:b3 to the new rows created

  7. #7
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

    Is it what you need
    Please Login or Register  to view this content.
    Last edited by PCI; 06-13-2016 at 01:15 PM. Reason: Const changed

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

    Re: Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

    Hmm almost but not quite, it copies the information for the first one correctly but then continues to paste the next three rows underneath it instead of under their respective brokers

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

    Re: Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

    Quote Originally Posted by vpan View Post
    Hmm almost but not quite, it copies the information for the first one correctly but then continues to paste the next three rows underneath it instead of under their respective brokers
    My mistake, it copies the the whole four rows correctly with the right broker. Only thing is I have a static list of brokers where I will continue to add contacts for. so instead of copying over the broker information too, I need a new row created under the brokers already listed in sheet 2 Column A. in those new rows under the right broker is where I want the B1:b3 pasted.

    My apologies for the confusion

  10. #10
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

    Try again
    Please Login or Register  to view this content.

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

    Re: Need macros that creates new rows and copies matching info from sheet 1 to Sheet 2

    That's perfect! Thank you so much, I really appreciate it!

+ 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: 19
    Last Post: 12-05-2015, 09:52 PM
  2. Create a macro which creates a workbook and copies rows to it
    By jmatthews in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2013, 01:09 PM
  3. [SOLVED] Macro That Automatically Copies Row from Sheet 1 into Sheet 2 Based on Info in that Row
    By smartmika in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-27-2012, 10:52 AM
  4. search that copies all matching rows to different work sheet.
    By gherzberg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2012, 10:47 AM
  5. Populate summary sheet (insert & index rows from info in columns on another sheet)
    By DerbysGal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2011, 01:54 PM
  6. Macro that copies info from sheet 1 to sheet 2 and goes to next available row
    By excel1191 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-29-2011, 12:39 AM
  7. Replies: 3
    Last Post: 06-10-2010, 04:31 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