+ Reply to Thread
Results 1 to 7 of 7

summing sets of numbers and adding ablank row

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    summing sets of numbers and adding ablank row

    I have a very large DB that needs to be automated. There are blank rows between each set of data. I need a MACRO that will sum the numbers in one of the columns in a data set and then insert another blank row under it, then move down the column repeating the process. The data sets are of varying sizes and there are lots of them. I would also like to copy the sums to another sheet.

    The Sub function is not feasible because of the format of the file and the additional steps that I require.
    Attached Files Attached Files
    Last edited by El Conquistador; 07-31-2013 at 09:58 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: summing sets of numbers and adding ablank row

    Please read the link below

    http://www.excelforum.com/the-water-...-question.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: summing sets of numbers and adding ablank row

    I hope that it worked.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: summing sets of numbers and adding ablank row

    With the macro below.

    See the attached file.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: summing sets of numbers and adding ablank row

    thanks for the effort but that does not work at all.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: summing sets of numbers and adding ablank row

    the code works, but maybe it is not what you are exeption.

    Put your result manualy in your sheet, then all member have a better feeling of what you'r trying to achieve.

    How do the data come in the sheet (download?)?

  7. #7
    Registered User
    Join Date
    03-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: summing sets of numbers and adding ablank row

    Sub sbttls()
    Dim LastRow As Long, i As Long, aArea As Range
    LastRow = Cells(Rows.Count, "A").End(xlUp).Row
    For Each aArea In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants).Areas
    Cells(aArea.Row + aArea.Rows.Count, 1).Value = WorksheetFunction.Sum(Range(Cells(aArea.Row, 1), Cells(aArea.Row + aArea.Rows.Count - 1, 1)))
    Next aArea
    End Sub

+ 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] Summing multiple data sets in the same column
    By BramP in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-21-2016, 04:52 AM
  2. Adding two sets of times - problem with subtraction
    By Ntisch in forum Excel General
    Replies: 4
    Last Post: 05-17-2012, 09:41 PM
  3. Summing the data from two sets?
    By makey in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-22-2010, 09:22 AM
  4. differencing sets of numbers, multiplying, and summing
    By stocknewb in forum Excel General
    Replies: 12
    Last Post: 09-02-2008, 09:24 PM
  5. Summing multiple sets
    By serenity1188 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-14-2007, 01:26 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