+ Reply to Thread
Results 1 to 3 of 3

Formula to Calculate Average to nth to nth row

  1. #1
    Registered User
    Join Date
    12-12-2014
    Location
    canada
    MS-Off Ver
    Professional 2010
    Posts
    4

    Formula to Calculate Average to nth to nth row

    Hi,

    I am looking for a formula to calculate the average Points scored at various segments to plot trends.

    I'm trying to get the last game trends in 5 game sets (ie, last 5 games, last 6 - 10 games, last 11-15 games)

    This is the formula I am using to get the last 5 games:

    HTML Code: 
    I am guessing it is the "+1" in the code that perhaps I need to change to alter the average. But, I've tried changing the number but nothing seems to work.

    Any help, much appreciated.

    Ken

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula to Calculate Average to nth to nth row

    =AVERAGE(INDEX($C:$C,MATCH(10^99,$C:$C,1)):INDEX($C:$C,MATCH(10^99,$C:$C,1)-5+1))
    =AVERAGE(INDEX($C:$C,MATCH(10^99,$C:$C,1)-6+1):INDEX($C:$C,MATCH(10^99,$C:$C,1)-10+1))
    =AVERAGE(INDEX($C:$C,MATCH(10^99,$C:$C,1)-11+1):INDEX($C:$C,MATCH(10^99,$C:$C,1)-15+1))
    would give last 5 second to last 5 and 3rd to last 5
    so for c3:c34 that would give
    c30:c34
    c25:c29
    and c20:c24
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    12-12-2014
    Location
    canada
    MS-Off Ver
    Professional 2010
    Posts
    4

    Re: Formula to Calculate Average to nth to nth row

    Thanks so much!

    That works perfectly.

    Ken

+ 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. Need formula to calculate average for every 30,60,90,120...etc.
    By Murphyslaw in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-15-2013, 10:43 AM
  2. Array formula to calculate average
    By MFCPA in forum Excel General
    Replies: 20
    Last Post: 04-04-2012, 07:35 PM
  3. formula to calculate average + 10%
    By dylans in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-15-2011, 03:45 AM
  4. Help with formula to calculate average from other
    By Staberinde in forum Excel General
    Replies: 2
    Last Post: 02-09-2010, 02:51 PM
  5. [SOLVED] calculate Average Formula
    By sross002 in forum Excel General
    Replies: 3
    Last Post: 02-24-2006, 01:10 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