+ Reply to Thread
Results 1 to 2 of 2

Insert Rows every X # of lines (details on tab 2) with formulas added on inserted lines

  1. #1
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2010
    Posts
    110

    Insert Rows every X # of lines (details on tab 2) with formulas added on inserted lines

    Hi Experts,

    I have tried and failed to accomplish what I am trying to do.

    I have attached a spreadsheet that I hope lays out what I am trying to do. The highlighting is just for reference and does not need to be included in any help provided. It was just the best way I could think of to show the before and after.

    I have the before data set at the top and the Macro version at the bottom. The actual data set will have over 300k - 400k lines but I only included 10 for example purposes. I need the details entered on Splitting Details tab to be used when calculating the lines to go down before the insert happens. There then needs to be two lines inserted with different details needing to be included on each line. I entered comments in each field to try to help explain where it is coming from. I added a Red line because as you will see if there is no D's in Column A under a new H row it just needs to be deleted, it happens on the last row.

    Please let me know what else I can do to help clarify what is not clear. I really do appreciate any help.

    I would like to keep the Macro running all on the same Tab (Journal). I do not want to do a copy paste to another Tab.

    Thanks again Experts.
    Attached Files Attached Files
    Last edited by theglitch; 01-02-2018 at 11:30 PM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Insert Rows every X # of lines (details on tab 2) with formulas added on inserted line

    Try this macro:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. Copy list and add spaces between lines on a new tab and add formula on inserted lines
    By theglitch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2016, 11:35 AM
  2. add lines with changing formulas depending on lines in another worksheet
    By fragger224 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2015, 05:15 AM
  3. Copy formulas and formatting into new rows added to a table when they are inserted
    By robwebber in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2015, 05:01 AM
  4. [SOLVED] Insert blank lines to make the total number of lines 67
    By raghuprabhu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2012, 07:34 AM
  5. Replies: 0
    Last Post: 02-09-2012, 11:53 AM
  6. [SOLVED] Inserting Lines or Copying lines with formulas but without data
    By wnfisba in forum Excel General
    Replies: 2
    Last Post: 08-18-2006, 11:41 AM
  7. Replies: 5
    Last Post: 03-01-2006, 03:55 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