+ Reply to Thread
Results 1 to 5 of 5

Aggregating a large number of observations

  1. #1
    Registered User
    Join Date
    02-20-2015
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    4

    Aggregating a large number of observations

    Hello, everyone!

    I have around 250 000 observations and I need to sum them up so that in the first cell I have the sum of the first 390, in the second cell I have the sum of 391-781 and so on. This does not work just by writing SUM(H2:H392) and dragging because the second cell will be SUM(H3:H393), the third SUM(H4:H394) and so on, while I want them to be SUM(H391:H781), SUM(H782:H1172) and so on.

    If I have to do it manually for all 250 000 cells it will take me forever. So is there a shortcut?

    Thank you!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,603

    Re: Aggregating a large number of observations

    Hi
    Have you tried a Pivot Table, grouping by ranges ?

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Aggregating a large number of observations

    One way...

    Entered in J2 and copied down as needed:

    =SUM(INDEX(H$2:H$250000,ROWS(J$2:J2)*390-389):INDEX(H$2:H$250000,ROWS(J$2:J2)*390))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,405

    Re: Aggregating a large number of observations

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-20-2015
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    4

    Re: Aggregating a large number of observations

    I used the pivot table method and it worked perfectly. Thanks!

+ 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. Aggregating numbers against account number
    By willmead in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2013, 06:54 AM
  2. Scoring a model on 10k observations
    By maddawg82 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 09:17 AM
  3. Replies: 1
    Last Post: 02-20-2013, 07:57 PM
  4. Large Form Help: Handling large number of text boxes and labels
    By laterdaysluke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2010, 03:12 PM
  5. [SOLVED] How to find the top 5% observations
    By Bin in forum Excel General
    Replies: 4
    Last Post: 06-26-2006, 03:25 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