+ Reply to Thread
Results 1 to 5 of 5

Get Local Minimum, Maximum Values

Hybrid View

JohnYard Get Local Minimum, Maximum... 11-20-2013, 02:38 PM
shg Re: Get Local Minimum,... 11-20-2013, 02:43 PM
JohnYard Re: Get Local Minimum,... 11-20-2013, 02:59 PM
shg Re: Get Local Minimum,... 11-20-2013, 03:25 PM
JohnYard Re: Get Local Minimum,... 11-20-2013, 03:39 PM
  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    13

    Get Local Minimum, Maximum Values

    I have an application that dynamically downloads a date and a value.

    I want to get a local high or low point , followed by the next high or low point .

    =min/max(bn:bn) (where n is the cell number) won't work because the there may be
    multiple - or no - high or low points within the range.

    In effect , I am searching to the next high/low point , then using that as the starting point for
    the next search.

    John Yard
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Get Local Minimum, Maximum Values

    Like this?

    A
    B
    C
    D
    1
    Date
    Value
    2
    01/02/2009
    30.53
    3
    01/05/2009
    30.39
    min C3 and down: =IF(B3=MAX(B2:B4), "max", IF(B3=MIN(B2:B4), "min", ""))
    4
    01/06/2009
    30.63
    max
    5
    01/07/2009
    29.73
    min
    6
    01/08/2009
    29.82
    max
    7
    01/09/2009
    29.19
    8
    01/12/2009
    28.53
    min
    9
    01/13/2009
    28.58
    max
    10
    01/14/2009
    27.64
    min
    11
    01/15/2009
    27.66
    12
    01/16/2009
    27.88
    max
    13
    01/20/2009
    26.41
    min
    14
    01/21/2009
    27.56
    max
    15
    01/22/2009
    27.14
    min
    16
    01/23/2009
    27.28
    Last edited by shg; 11-20-2013 at 03:24 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-14-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Get Local Minimum, Maximum Values

    Not quite. The data set occilates between pairs of high and low values.

    Finding a high/low pair , it resets the search. In effect , B2:b3 must be variables,
    subject to reset.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Get Local Minimum, Maximum Values

    Perhaps

    A
    B
    C
    D
    E
    F
    1
    Date
    Value
    max
    min
    2
    -1000
    1000
    3
    01/02/2009
    30.53
    30.53
    30.53
    C3: =IF(B3>C2, B3, C2)
    4
    01/05/2009
    30.39
    30.53
    30.39
    min D3: =IF($B3 < D2, $B3, D2)
    5
    01/06/2009
    30.63
    30.63
    30.39
    max
    6
    01/07/2009
    29.73
    30.63
    29.73
    min E4: =IF(C4>C3,"max",IF(D4<D3,"min",""))
    7
    01/08/2009
    29.82
    30.63
    29.73
    8
    01/09/2009
    29.19
    30.63
    29.19
    min
    9
    01/12/2009
    28.53
    30.63
    28.53
    min
    10
    01/13/2009
    28.58
    30.63
    28.53
    11
    01/14/2009
    27.64
    30.63
    27.64
    min
    12
    01/15/2009
    27.66
    30.63
    27.64

  5. #5
    Registered User
    Join Date
    11-14-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Get Local Minimum, Maximum Values

    Thx. I think I have enough here to make it work. JYard

+ 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] Conditional maximum and minimum values
    By metsci in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-20-2013, 11:35 PM
  2. pulling out minimum and maximum values..!
    By via135 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-04-2011, 11:05 AM
  3. Maximum & Minimum values in a coulmn
    By balmalik in forum Excel General
    Replies: 7
    Last Post: 07-21-2006, 05:35 AM

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