+ Reply to Thread
Results 1 to 10 of 10

How to find multiple peaks in a data set

  1. #1
    Registered User
    Join Date
    03-28-2012
    Location
    hull
    MS-Off Ver
    Excel 2007
    Posts
    14

    How to find multiple peaks in a data set

    Dear all,

    I have posted this thread on a previous forum a while back, but it seems to have been left unaswered so I wanted to see if I obtained any answers from this forum. I have read the rules of forum and realise this is somewhat frowned upon, but seeing as no answers have been provided elsewhere I felt it worth re-posting

    I have an excel spreadsheet of ground reaction forces (step by step) from a running trial sampled at 200hz for 1 minute. The data in the column increases from a baseline value up to a peak value (eg 1700N) when the foot contacts the ground and then reduces back down to the baseline value. There are probably around 178 peaks over 1200 cells that I wish to identify and then average. I have tried a macro that identified a value every kth cell and then average this but, my data is dynamic, therefore the peaks do not always occure at a constant time, although they seem to be between every 60-70th cell. Is there any formulas that can be put into a macro or the conditional formatting tab that will allow me to easily identify the peaks and then place them into another column to average.

    kind regards
    will

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to find multiple peaks in a data set

    A sample of your data would not go amiss!

    Can you post a worksheet showning how your data is arranged, and where the peaks are?

  3. #3
    Registered User
    Join Date
    03-28-2012
    Location
    hull
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: How to find multiple peaks in a data set

    hi Marcol,

    no problem
    edited_ vGRF_data.xlsx

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to find multiple peaks in a data set

    Hmm?

    Unfortunately I'm no mathematition, so this might be a bit hit or miss!

    Due to the variable number of "blips" in your data, making the true peaks a bit dificult to identify, try this adjacent to your first trough, i.e. C7
    Please Login or Register  to view this content.
    Drag/Fill down

    If this produces clusters around the true peak then try
    Please Login or Register  to view this content.
    Increase the number of cells to be checked either side of the peak until only the peak is returned.

    Adjust B7>1000 if you can have true peaks less than 1000.

    Not very clever but it seems to work, see this workbook.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Registered User
    Join Date
    03-28-2012
    Location
    hull
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: How to find multiple peaks in a data set

    Hi Marcol,

    I have just tried this on all of the data (full minutes worth) rather than just the seconds worth of data I sent you and it does seemed to have worked. Thank you, I dont really understand the formula, but its helped a lot. Do you think if I smoothed the data, with a running average and manipulated the B7>1000 part of the formula then I would get a better result as at times I get 2 peaks close together, when really I just need the higher value of the 2 peaks

    regards
    will

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to find multiple peaks in a data set

    What formula did you try?

  7. #7
    Registered User
    Join Date
    03-28-2012
    Location
    hull
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: How to find multiple peaks in a data set

    Hi,

    Used the first formula.
    example_template_finding_peaks.xlsx

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to find multiple peaks in a data set

    Okay, try the second formula instead.

    Does that remove the "blips" ?

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

    Re: How to find multiple peaks in a data set


  10. #10
    Registered User
    Join Date
    03-28-2012
    Location
    hull
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: How to find multiple peaks in a data set

    Hi Marcol,

    I have smoothed the data, and used the first formula. It has worked really well. Your help has been much appreciated

    regards
    Will

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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