+ Reply to Thread
Results 1 to 9 of 9

Find the Min Value since the last Max value

  1. #1
    Registered User
    Join Date
    01-19-2012
    Location
    Devon
    MS-Off Ver
    Excel 2007
    Posts
    5

    Find the Min Value since the last Max value

    Hi,

    I have a column of values and as I go down the column at each new high value I would like to calculate the min value since the last high value.
    I know the following formula is not valid but it's what I would like to do: =if(BV121=max(BV2:BV121),min(max(BV2:BV120):bv120),"")
    Is it possible?

    Very many thanks in advance,

    Ted
    Last edited by FatherTed; 01-19-2012 at 10:59 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Find the Min Value since the last Max value

    Try this in BV2 and pull down:

    =IF(BV2=max($BV$2:$BV$121),min(BV2:$BV$121),"")

  3. #3
    Registered User
    Join Date
    01-19-2012
    Location
    Devon
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Find the Min Value since the last Max value

    Thanks - that finds the MIN in all the values up to the point where the MAX for the column is.

    But what I want to do is different. I want to start at the top of the column and go down through each cell seeing if that cell is the MAX up to that point in the column. If it is, then I want to find out what the MIN value is since the previous MAX was found in that column.

    Is that possible?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Find the Min Value since the last Max value

    Do you mean?

    =IF($BV$121=MAX($BV$2:$BV$121),"",MIN(INDEX($BV$2:$BV$121,MATCH(MAX($BV$2:$BV$121),$BV$2:$BV$121,0)):$BV$121))

    edit:

    Add error trap for if last value is the Max
    Last edited by NBVC; 01-19-2012 at 10:40 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Find the Min Value since the last Max value

    In BW121 you could try

    Please Login or Register  to view this content.
    or in BW3 and down

    Please Login or Register  to view this content.

    Regards
    Attached Files Attached Files
    Last edited by canapone; 01-19-2012 at 10:45 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find the Min Value since the last Max value

    Hi

    Pls take a look to the sample, using a helper column.

    Hope to helps you.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Registered User
    Join Date
    01-19-2012
    Location
    Devon
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Find the Min Value since the last Max value

    Thanks again - that returned the MAX value of that column.

    The column is 150 cells long. Say I start with 0 in cell 1, then i have negative numbers until in cell 10 I have a value of 15. So I want to calculate the MIN between cell 1 and 10. The values of the cells are all below 15 until cell 54 when I have a value of 30, so I now want to calculate the value of the MIN between the 15 in cell 10 and the new MAX of 30 in cell 54. And so on down the column as each new higher MAX is reached.

    I really appreciate your answers.

    Any more ideas?

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Find the Min Value since the last Max value

    Upload example workbook and write your input and desired output

  9. #9
    Registered User
    Join Date
    01-19-2012
    Location
    Devon
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Find the Min Value since the last Max value

    Thank you so much everyone - Canapone's answer works for me!!!

    All your help is very much appreciated :-)

    Ted

+ 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