+ Reply to Thread
Results 1 to 5 of 5

Average values between peaks within a data range

  1. #1
    Registered User
    Join Date
    01-18-2011
    Location
    Somerset
    MS-Off Ver
    Excel 2010
    Posts
    28

    Post Average values between peaks within a data range

    I have a data range which contains multiple peaks - i want to sum the values after a peak, up to and including the next peak, then averaging the cells.

    Please see attached data sheet

    Thanks in advance for your help

    regards

    Steph
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Average values between peaks within a data range

    I dont think this is the most elegant but it is the easiest to understand.
    If you wanted to you could combine two of those row into ONE but unless you need the space I wouldnt bother, as this makes the calculations really easy to audit.
    Attached Files Attached Files
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,820

    Re: Average values between peaks within a data range

    Here's how I might do it

    1) add a helper row with something like =COUNT($B3:B3) (copy across). That should give you a series of descending numbers (6,5,4,...) where each number identifies a given peak. Note how I mixed relative and absolute references to get this count.
    2) Now, a simple AVERAGEIF() function will compute the average for each peak. =AVERAGEIF($B$4:$M$4,5,$B$2:$M$2). Replace 5 with a suitable cell reference if you want to have the peak numbers in a cell.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Average values between peaks within a data range

    Quote Originally Posted by MrShorty View Post
    Here's how I might do it
    1) add a helper row with something like =COUNT($B3:B3) (copy across). That should give you a series of descending numbers (6,5,4,...) where each number identifies a given peak. Note how I mixed relative and absolute references to get this count.
    2) Now, a simple AVERAGEIF() function will compute the average for each peak. =AVERAGEIF($B$4:$M$4,5,$B$2:$M$2). Replace 5 with a suitable cell reference if you want to have the peak numbers in a cell.
    That is basically what I did in the attachment.

  5. #5
    Registered User
    Join Date
    01-18-2011
    Location
    Somerset
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Average values between peaks within a data range

    thanks for your help on this - i'll try to combine into a single formula but this is a great help.

+ 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. Identify peaks in a data set, select its previous values and get a chart
    By alessandr0 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-26-2016, 08:28 AM
  2. How do Identify MAX and MIN Peaks in a Set of Data
    By claudioasn in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-26-2015, 11:01 AM
  3. Finding Multiple peaks, and duration of peaks
    By jav418 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2015, 03:05 PM
  4. Replies: 5
    Last Post: 05-16-2012, 11:52 AM
  5. Replies: 1
    Last Post: 11-02-2009, 09:00 AM
  6. Identifying Peaks in Data
    By SportsScientist in forum Excel General
    Replies: 11
    Last Post: 05-06-2009, 07:25 AM
  7. [SOLVED] Identify peaks and troughs in range
    By James Booth in forum Excel General
    Replies: 1
    Last Post: 11-23-2005, 05:25 PM

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