+ Reply to Thread
Results 1 to 3 of 3

Macro to Sum several data sets(variable length) in the same column

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    9

    Macro to Sum several data sets(variable length) in the same column

    Hey Guys,

    I need help to create a macro which adds up the data in column I and places it somewhere in column M. The dataset is variable each time and is separated by a blank row. So what I want is I want to add data from column I1 to I11 (in this case) and paste it on M11 and then I want the sum from I 13 to I 19 and Paste it on M19. Like I said, the data is variable so I cant figure out how to add the formula. Can someone please help. Thanks in advance.

    M
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-27-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    198

    Re: Macro to Sum several data sets(variable length) in the same column

    This macro adds subtotals in column M after summing column I blocks of cells
    'that have a blank row separating each group.
    Please Login or Register  to view this content.
    If you want formulas in column M, try this:
    Please Login or Register  to view this content.
    Last edited by xLJer; 09-24-2012 at 06:20 PM. Reason: Add macro that adds formulas instead of values

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Macro to Sum several data sets(variable length) in the same column

    Thanks a lot xLJer. It worked perfectly fine. Thanks a million. You are awesome

+ 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