+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 20

Thread: Maximum / Minimums in charts

  1. #1
    Registered User
    Join Date
    07-22-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Maximum / Minimums in charts

    I have various EKG graphs. I need all of the maximum and minimum voltages for each period. The periods are not all the same length. The maximums and minimums all vary.
    Is there any way I can do this?
    Note: it'll be hard selecting chunks of data and then finding it from that because there's nearly 2500+ values for voltage per a 12 second reading.

    An example of a EKG graph is attached

    When you look at the graph, the maximums / minimums I'm talking about correspond to the sharp, large peaks.

    thank you
    Attached Images Attached Images

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,349

    Re: Maximum / Minimums in charts

    If the definition of maximums is just the highest values then you could use the LARGE function to return various values. For minimums use the SMALL function.

    Or did you want to capture the largest variation between a set of consecutive values?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-22-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Maximum / Minimums in charts

    I don't think that'll work.
    maybe something with slope can help solve this? The only thing atm is defining a increase in slope for 4 consecutive data points and labeling it as max and finding decrease in slope for 4 consecutive data points at labeling it as min. (using if statement / filter / value2-value1)

    put doing this returns some false values
    and if possible, I need the max / mins in a chart- there's 7 ekg readings, most with over 2500+ data points. Which is a lot to go through to find the values..

    please see attachments, it explains what I'm getting at a bit more-

    Please keep in mind I'm excel stupid =o
    Attached Images Attached Images

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,349

    Re: Maximum / Minimums in charts

    I can't help when all you post is pictures
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    07-22-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Maximum / Minimums in charts

    I can post the excel data

    The first attachment is the data and the first graph.

    The second attachment ,on sheet 2, is the only method of analyzing data someone has suggested. It's not perfect, but maybe it can help coming up with a proper formula?.. =[

    please have a quick look at the pictures as well, it kinda shows what I'm trying to do =o

    thank you for helping me =)
    Attached Files Attached Files

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,349

    Re: Maximum / Minimums in charts

    To be honest this is beyond my maths knowledge.
    I can do simple cell testing along the lines of the example you posted but the result would not be a truely robust solution.

    Maybe somebody else is aware of the formula to determine spikes in data series.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Registered User
    Join Date
    07-22-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Maximum / Minimums in charts

    is there anyone I can possibly contact for help?

  8. #8
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,770

    Re: Maximum / Minimums in charts

    How about a simple matched filter? In C7 and copy down,

    =IF(AND(SUMPRODUCT( {-3;-1;1;3;1;-1;-3} * (B4:B10 - AVERAGE(B4:B10))) > 6, B7=MAX(B6:B8)), B7, NA())
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Registered User
    Join Date
    07-22-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Maximum / Minimums in charts

    Thank you Thank you!!!
    I don't know how it works, but it does the job!
    I copied the first reading onto a new sheet
    then I added that that formula to C7 and down
    Then I added =IF(ISNUMBER(C7),"MAX",NA()) to cell D7 and ran that down
    then I filtered out NA() and it gives me a chart of all the maximums. It's excellent

    could you help me find the corresponding minimum please?
    I've attached the excel file with the filter on sheet 2. Click the filter and remove "blank, na()" and that's how it looks =)
    I just need a similar one for minimum-
    Attached Files Attached Files

  10. #10
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,770

    Re: Maximum / Minimums in charts

    I don't know what "minimum" means for a dataset like that.

    The filter is incorrect, sorry; it should be {-3;-1;1;6;1;-1;-3}
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  11. #11
    Registered User
    Join Date
    07-22-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Maximum / Minimums in charts

    After hitting a maximum, the slope is negative. The first point at which the slope becomes positive again is the minimum.

    please look at the pictures ^

  12. #12
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,770

    Re: Maximum / Minimums in charts

    You mean it's the local minima that immediately follows the peak?
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  13. #13
    Registered User
    Join Date
    07-22-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Maximum / Minimums in charts

    yes =) that's exactly it

  14. #14
    Registered User
    Join Date
    07-22-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Maximum / Minimums in charts

    is this a possibility?
    =IF(D7="max", MIN(B7:B10), NA())

    then I can simply insert
    =IF(ISNUMBER(E7),"MIN",NA())
    into the adjacent column

    I'm thinking this is a simple way to do it... It makes reference to the formula you provided and immediately following it, It looks for a minimum within 3 cells.. ?

  15. #15
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,770

    Re: Maximum / Minimums in charts

    See attached.
    Attached Files Attached Files
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

+ 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.2.0