+ Reply to Thread
Results 1 to 8 of 8

Averaging Discrete Sets of Data in a Large Dataset

  1. #1
    Registered User
    Join Date
    06-14-2013
    Location
    Fairbanks, Alaska
    MS-Off Ver
    Excel 2010
    Posts
    10

    Averaging Discrete Sets of Data in a Large Dataset

    Hello everybody,

    I need to take averages of different groups of data in a large dataset.

    What I need to do though is this... I need to average together the values from these rows... rows 1, 58, 115, 172, 229, and so on, basically in increments of 57. Doing this manually would take a long, long time.

    After this is complete, I would then need to shift one row up, so that I would then take the average of rows 2, 59, 116, 173, 230, and so on.

    After this is done, the same thing happens, and then again, and then again until there is no more to do.



    How could I go by doing this?

    I have highlighted the pattern in the attached excel file.

    Thank you very much,

    wrf_89

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Averaging Discrete Sets of Data in a Large Dataset

    If you don't mind using a control column, you can do the following:
    In column B or any other available one, you put the following formula and you copy it down your data:
    Please Login or Register  to view this content.
    now in the next available column, you put the following formula and also copy it but only down 57 rows:
    Please Login or Register  to view this content.
    This gives you your average.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: Averaging Discrete Sets of Data in a Large Dataset

    Put this array* formula in C1:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and then copy it into cells C2:C57.

    * An array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE) rather than the usual <Enter>

    Hope this helps.

    Pete

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Averaging Discrete Sets of Data in a Large Dataset

    No helper column is required.


    =AVERAGE(IF(MOD(ROW(A1:A2337),57)=1,A1:A2337))

    Array formula: Press Ctrl+Shift+Enter, not just Enter

  5. #5
    Registered User
    Join Date
    06-14-2013
    Location
    Fairbanks, Alaska
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Averaging Discrete Sets of Data in a Large Dataset

    Hello,
    Thank you! This works, but only for the 1st time. I also need to be able to carry this through the rest of the patterns.
    After the first, I need to do rows 2, 59, 116, 173, 230, and so on. And then, rows, 3, 60, 117, 174, 231, and so on.
    And then, rows, 4, 61, 118, 175, 232, and so on.

    When I drag the formula down a few cells, I don't get the answers I need. Is there a way to modify the current formula?

    Thank you,

    wrf_89

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: Averaging Discrete Sets of Data in a Large Dataset

    Who is it that you are replying to?

    Pete

  7. #7
    Registered User
    Join Date
    06-14-2013
    Location
    Fairbanks, Alaska
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Averaging Discrete Sets of Data in a Large Dataset

    Wait wait wait sorry I was being an idiot.
    I figured it out now... everyone's contributions worked haha.

    Thank you very much everybody!
    wrf_89

  8. #8
    Registered User
    Join Date
    07-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Averaging Discrete Sets of Data in a Large Dataset

    Please mark thread "Solved"

+ 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. How to plot discrete data on a large scaled axis?
    By Parv in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 10-31-2013, 05:03 AM
  2. Averaging large amounts of data
    By clarson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2013, 02:11 PM
  3. Averaging Large Quantities of Data by Date
    By LauraS08 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2012, 01:50 PM
  4. Excel 2007 : Comparing Large Data Sets?
    By amgstar in forum Excel General
    Replies: 0
    Last Post: 11-01-2011, 04:53 PM
  5. interrogating large data sets
    By ruleworld in forum Excel General
    Replies: 1
    Last Post: 01-04-2011, 07:13 AM

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