+ Reply to Thread
Results 1 to 8 of 8

Insert a blank row and calculate autosum

  1. #1
    Forum Contributor
    Join Date
    10-11-2008
    Location
    Chennai,India
    MS-Off Ver
    2007,2003
    Posts
    123

    Insert a blank row and calculate autosum

    Dear All,

    I have a set where there are multiple rows on same date ( ascending order). The data set looks like following:

    Date Variable 1 Variable 2 Variable 3

    1/01/2014 (M-D-Y)
    1/01/2014
    1/01/2014

    Insert a new row over here and calculate auto sum from 4 Column (D) onwards for all the data for 1/01/2014

    1/02/2014
    1/02/2014
    1/02/2014

    Insert a new row over here and calculate auto sum from 4 Column (D) onwards for all the data for 1/02/2014

    As i have 365 days in a year and i have to insert a blank row for every date then calculate the auto sum for all the dates. Please suggest me how to write a macro for the problem.

    I will be grateful to you if you can help me out.

    With sincere regards,
    Upananda
    Attached Files Attached Files
    Upananda

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Insert a blank row and calculate autosum

    Try the attached.
    Attached Files Attached Files

  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 a blank row and calculate autosum

    FWIW:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-11-2008
    Location
    Chennai,India
    MS-Off Ver
    2007,2003
    Posts
    123

    Re: Insert a blank row and calculate autosum

    Hi

    Thanks and grateful to both of you for your solution. I will prefer ABB3 solution. If i want to copy the sum for all these dates to a new sheet with respective dates, how will i do that?

    With sincere regards,
    Upananda
    Last edited by pani_hcu; 08-23-2014 at 08:07 AM. Reason: mistakes in the sentences

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Insert a blank row and calculate autosum

    Adding new lines on the code will slow it. I prefer to use a Pivot Table -could do job with out coding. Try it.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Insert a blank row and calculate autosum

    If you prefer a code.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-11-2008
    Location
    Chennai,India
    MS-Off Ver
    2007,2003
    Posts
    123

    Re: Insert a blank row and calculate autosum

    Hi AB33,

    I am grateful for your help. I think pivot table will be the most appropriate option. May i know any link to learn more about pivot table. Or the steps to have a pivot table the way you have done over here.

    With sincere regards,
    Upananda

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Insert a blank row and calculate autosum

    The Basic Pivot Table (PT) is easy to learn. You can use the PT table wizard and just follow it.
    Menu-Insert-PT, select the range- Choose the destination of the selected range(New sheet or existing sheet). Once the PT fields are created, you can move around the fields from vertical to horizontal and so on.
    I do PT slightly different- Convert the range in to Table, then work on the PT pages.
    There are 100 hundreds of free Videos on you Tube.

+ 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] autosum/ auto calculate each item from a random list of items
    By angerion in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-30-2013, 11:23 PM
  2. Macros to insert 2 blank row and autosum a column after every 200 rows in data range.
    By sachinsingh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-22-2013, 09:55 AM
  3. Find a blank cell and calculate the average of all cells above till the next blank
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2012, 11:51 AM
  4. Insert Blank Row and AutoSum Formula
    By StinkBall in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2011, 04:59 PM
  5. Autosum after Insert Row
    By Insomniac53 in forum Excel General
    Replies: 5
    Last Post: 07-05-2011, 05:54 AM

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