+ Reply to Thread
Results 1 to 12 of 12

Max If Until a Certain Point

  1. #1
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Max If Until a Certain Point

    Hi,

    Just wondering if I can get some help re a spreadsheet that I want to calculate the Max of a certain item up until a certain point. In my attached sheet, in cell B2 I want the Maximum of the TEEMO column until TEEMO is greater than the LOW column.

    I have used the formula;

    Please Login or Register  to view this content.
    However, I want the formula to be dynamic as the prices will change every day. How do I get this to happen, it seems simple, but I just can't nail it...

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Max If Until a Certain Point

    Hi,

    This is the formula for cell B2 :

    Please Login or Register  to view this content.
    end this formula with holding Ctrl-Shift-Enter all at once (this is an array formula)

    To copy this formula, press Ctrl-C on cell B2, then block B3:B11 and press Ctrl-V
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Max If Until a Certain Point

    Thanks for your response karedog, but it produced a result of 33.54.

    It needs to produce a result of 36.70 which is the Maximum of the TEEMO column up to E9, which is when the TEEMO column is > the LOW column. the formula needs to be Dynamic to change when TEEMO>LOW

    Thanks for your effort though

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Max If Until a Certain Point

    Hi Fletch ,

    I have a question for you , let me know how many occurrence of "TEEMO>LOW" can be happened in your real data , in case more than 1 what should be happen ?

    Punnam

  5. #5
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Max If Until a Certain Point

    It can be multiple times, it just happens to be once in this example.

    I just want the MAX calculation to stop when it reaches that point.

    Thanks,

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Max If Until a Certain Point

    =IFERROR(MAX(OFFSET($E$2,0,0,MATCH(TRUE,$E$2:$E$11>$D$2:$D$11,0)-1,1)),"")
    try this array formula {Ctrl+Shift+Enter}
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  7. #7
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Max If Until a Certain Point

    Brilliant nflsales

    I have just added a condition for when Column E < Column D, but thanks

    Fletch

  8. #8
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Max If Until a Certain Point

    hi Fletch74,

    Please updated the revised sheet with function ,so that i would like to have look .

    Punnam

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Max If Until a Certain Point

    Thanks Fletch,
    for your reply and adding reputation

  10. #10
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Max If Until a Certain Point

    Quote Originally Posted by Fletch74 View Post
    Thanks for your response karedog, but it produced a result of 33.54.

    It needs to produce a result of 36.70 which is the Maximum of the TEEMO column up to E9, which is when the TEEMO column is > the LOW column. the formula needs to be Dynamic to change when TEEMO>LOW

    Thanks for your effort though
    You really should say "when" instead of "until" in your sentence : until TEEMO is greater than the LOW column.

    In that case, it is as easy as change the less than sign with greater than sign

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Max If Until a Certain Point

    @ Punnam - File attached

    @ nflsales - no problem

    @ karedog - That formula is still not right as I wanted $36.70 to show if LOW > Teemo up until it's not, your formula doesn't show $36.70 all the way down, plus I need the formula to cover all 11 rows, not just 9. Thanks for your effort though, I did give you some reputation

    Fletch
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Max If Until a Certain Point

    @ Fletch74

    Thanks for the attachment

    Punnam

+ 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. Replies: 1
    Last Post: 09-17-2014, 07:30 AM
  2. Maths behind rotating rectangle around start point instead of default center point
    By Stanley91 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2014, 11:01 AM
  3. Change font size in formula from 12 point to 8 point
    By maacmaac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2011, 06:14 PM
  4. Replies: 8
    Last Post: 08-18-2011, 05:16 PM
  5. Replies: 2
    Last Post: 06-27-2011, 10:47 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