+ Reply to Thread
Results 1 to 7 of 7

Insert number of rows with data to new sheets based on values in cells

  1. #1
    Registered User
    Join Date
    04-14-2012
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Insert number of rows with data to new sheets based on values in cells

    I'm running into a problem with a workbook that I'm working on in Excel 2010. There are 3 worksheets, "Overview", "Data Entry I", and "Data Entry II". I need certain numbers of rows to be inserted with data based on the number values found in columns C and D. These will need to be inserted across between the 3 worksheets. These inserted rows with data must be added in the next available empty row (after the names).

    Here is the layout for the "Overview" Sheet:
    A B C D
    1 POSITIONS OPEN PROJECTED/ADD
    2 DATA ENTRY I 3 2
    3 DATA ENTRY II 0 4

    I need "Data Entry I" Sheet to look like this:
    B C
    1 John Smith
    2 Jane Doe
    3 OPEN
    4 OPEN
    5 OPEN
    6 PROJECTED/ADD
    7 PROJECTED/ADD

    And I need "Data Entry II" Sheet to look like this:
    B C
    1 John Doe
    2 PROJECTED/ADD
    3 PROJECTED/ADD
    4 PROJECTED/ADD
    5 PROJECTED/ADD

    I was only able to find some information on inserting rows based on cell values that are on the same sheet, but I wasn't able to find anything where multiple sheets are involved. Please help!
    Last edited by keithtran12; 06-27-2013 at 08:46 PM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Insert number of rows with data to new sheets based on values in cells

    Possibly something like:
    Please Login or Register  to view this content.
    Although you would need the sheet names and the overview fields data entry I and data entry II to be identical (i.e. case sensitive).

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Insert number of rows with data to new sheets based on values in cells

    FWIW:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-14-2012
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Insert number of rows with data to new sheets based on values in cells

    Thanks yudlugar and JOHN H. DAVIS for your quick response and help. I'm at work right now and I had to add a few new rows into each of the sheets and I'm afraid these new additional rows will require changes to the VBA in order for it to work properly but I am not sure where to make the appropriate changes. I've uploaded a sample file to show this. Can you please take a look and see which lines in the VBA code will need to be changed? Thank you so much in advance!
    Attached Files Attached Files
    Last edited by keithtran12; 06-27-2013 at 07:10 PM.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Insert number of rows with data to new sheets based on values in cells

    Maybe:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-14-2012
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Insert number of rows with data to new sheets based on values in cells

    OMG JOHN H. DAVIS..... this is AMAZING! This works out perfectly! You have no idea how much this helps me with my work, thank you sooo much!

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Insert number of rows with data to new sheets based on values in cells

    You are sooo welcome. Glad to help out, and thanks for the feedback. Please comply with Forum Rule No. 9, and don't forget to click my star!!

    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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