+ Reply to Thread
Results 1 to 3 of 3

Macro To Divide Rows by Worksheet

  1. #1
    Registered User
    Join Date
    12-09-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    1

    Macro To Divide Rows by Worksheet

    Hello,

    I need to create a macro that will create a new worksheet that contains all of the rows that have the same value in cell A (which is a student ID number) and if possible, name the worksheet with value of cell B. The last step is not mandatory, but would be nice.

    I also need the first row in every worksheet to be the same:
    Student ID
    Last, First
    Last Name
    First Name
    State Student ID
    Intervention Name
    Intervention Start Date
    Intervention
    End Date
    Date Minutes
    Received Intervention
    Comments


    There are about 12 thousand rows and about 150 unique student IDs. Thanks!
    Last edited by m.g.gilliland; 03-24-2015 at 02:16 PM.

  2. #2
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Canada Eh
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Macro To Divide Rows by Worksheet

    I don't find your requirements very clear. You want all the rows copied to another sheet? Instead of Cell A, did you mean column A? You want to name each worksheet with the student's name? You'll have to be a little clearer.
    Click the * to give Rep to a post you like.

  3. #3
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Macro To Divide Rows by Worksheet

    Try this. It's adapted from some old code of mine, so I realize that temporarily coloring a cell to indicate it's been used isn't the best method. But this should work.

    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. VBA Excel 2013 - Count data rows on single sheet, divide by 3 , color band rows.
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2015, 01:33 PM
  2. [SOLVED] Macro to divide a range and insert them in new rows equally
    By Netaji in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2014, 09:51 AM
  3. [SOLVED] macro code to loop through all worksheets and divide each rows to get % of grand total
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-05-2013, 11:06 PM
  4. [SOLVED] Macro/VB Code to Divide Worksheet into several New Files By Column
    By mabiem in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-30-2013, 12:50 PM
  5. How to divide 2 rows in VBA
    By amitgaja007 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-15-2011, 04:59 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