+ Reply to Thread
Results 1 to 6 of 6

Average of a part of the data

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    8

    Average of a part of the data

    Hi,

    I have an amount of data (1000 measured values). I want to check if I need 20/30/50/... values to have a good result.
    I need to take the average of the first 20, then the average of the next 20, etc. Is there an easy way to do this instead of writing everything down (AVERAGE(B1:B20), AVERAGE(B21:B40), ... )?

    Thanks for the help!

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Average of a part of the data

    Hi,

    waiting for better solutions


    Please Login or Register  to view this content.

    regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Average of a part of the data

    to me the most obvious would be with INDIRECT to name the range.

    B1:B1000 is the range

    C1 = "B1" / the location of the start cell
    C2 = "B20" / the location of the end cell

    C3 = average(indirect(C1):indirect(C2))
    /this will take the average from the cell location named in cell C1 to the cell location named in C2.

    Or you could just put the number of the rows in the "feed" cells and bury the letter naming the column inside the reference.

    C1 = 1
    C2 = 20
    C3 = average( indirect("B"&C1):indirect("B"&C2) )

    The advantage of that is that you could use math to get the number directions of the row.

  4. #4
    Registered User
    Join Date
    09-25-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Average of a part of the data

    Allright, that shall do it. Thanks a lot for the quick response guys!

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Average of a part of the data

    To get all the averages (1-20, 21-40, 41...)
    Copy this formula down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: Average of a part of the data

    Works if data is in cell A1:A1000 (if it is in B you have to play with the columns, so (Column()-1) when your averages are in C and beyond)

    Paste code in B1 and drag
    Please Login or Register  to view this content.

+ 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] how to get average value of similar part numbers ?
    By nook1176 in forum Excel General
    Replies: 6
    Last Post: 12-21-2012, 01:02 AM
  2. [SOLVED] Take AVERAGE of a Particular Part of an Array
    By -bobcat in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-24-2012, 02:59 PM
  3. average part of array
    By jlt199 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-01-2010, 04:30 PM
  4. Replies: 1
    Last Post: 05-13-2009, 02:40 AM
  5. [SOLVED] Average a part of a on going column
    By Capt Bill in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2006, 03:10 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