+ Reply to Thread
Results 1 to 5 of 5

roll up/consolidate rows with addition

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    FL
    MS-Off Ver
    Excel 2013
    Posts
    123

    roll up/consolidate rows with addition

    Hello,

    I'm working on writing some macros and I have a little trouble. My first thought was to use If then statements but since it appears you can not do if then then then then... statements I'm not sure how to accomplish my task with out a 200 line macro. I know scripting dictionaries could easily accomplish this but those are out of my skill set.

    I am trying to roll up/consolidate rows based on a value in a certain column remaining the same. The column I am referring (A) to is actually a concatenation of 4 different columns.I added column (B) so I could easily pick these out of 200,000 plus rows. The tricky part is that there are a few columns that need to be summed up when they are rolled up/consolidated. These columns are (I), (J) and (K). The rest of the columns will remain the same so summing them up isn't required.

    There are a small percent that are like this maybe 2 or 3% of 200,000+.

    I've attached an example...Please let me know if you have any questions.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: roll up/consolidate rows with addition

    Why not just use Pivot Table?

  3. #3
    Forum Contributor
    Join Date
    03-14-2013
    Location
    FL
    MS-Off Ver
    Excel 2013
    Posts
    123

    Re: roll up/consolidate rows with addition

    Soooo like if column (B) equals 1 then do a pivot table? I'm not sure how to write that in a Macro... I'll have to do some playing around. The trouble i see if there are countless lines that do not need to be "rolled up" and some instances where multiple lines need to be rolled up.


    I'll play around and see if I cant get it working.

  4. #4
    Forum Contributor
    Join Date
    03-14-2013
    Location
    FL
    MS-Off Ver
    Excel 2013
    Posts
    123

    Re: roll up/consolidate rows with addition

    Also another issue is that I would like for people other than myself to run this on the fly.

  5. #5
    Forum Contributor
    Join Date
    03-14-2013
    Location
    FL
    MS-Off Ver
    Excel 2013
    Posts
    123

    Re: roll up/consolidate rows with addition

    When I try a Pivot Table I can not add the columns that do not need to be added as they have more than 16384 Items. Any thoughts?

+ 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. Replies: 1
    Last Post: 11-11-2013, 04:27 PM
  2. [SOLVED] 2 rows of sheets instead of roll left and right
    By marko737 in forum Excel General
    Replies: 3
    Last Post: 09-13-2013, 08:26 PM
  3. Roll multiple rows of text into one row
    By davidx in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2013, 06:27 AM
  4. Replies: 2
    Last Post: 05-08-2012, 07:17 PM
  5. Help with Macro: summing together/roll over rows (Energy Trading, see example)
    By dstock in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2005, 03:39 PM

Tags for this Thread

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