+ Reply to Thread
Results 1 to 5 of 5

Thread: Highest / Lowest Since calc

  1. #1
    Registered User
    Join Date
    12-15-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    2

    Highest / Lowest Since calc

    Hello

    I am hoping that one of the excel gurus can help!

    I have a list of daily prices for a number of products. I am trying to find a way to work out, for the last value in each column, when this value is the highest since and lowest since.

    So to explain further:
    Column B has dates
    Column C to I has the values, one column per product
    Column J is blank, and columns K-T has some calcs, graphs and summary data.

    The data currently runs to row ~1350, but they are not complete series, there are some blanks (public holidays etc).

    What I would like is if the data ends at, row 1357, to have in K1357 "highest since dd/yy/mm" and K1358 "lowest since dd/yy/mm"; referring to the data in col C, the same in col L for data in D, etc.

    I have tried a number of combinations of vlookups, if/match etc and not managed to get a result. Any help would be much appreciated

    thanks
    -- Mike

  2. #2
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Highest / Lowest Since calc

    Not really sure I understand - either one of the two results will surely be the prior date ?

    K1357:
    =IF(C1357<=MIN(C$2:C1356),"n/a",LOOKUP(2,1/(C$2:C1356>C1357),$B$2:$B1356))
    copied to Q1357
    
    K1358:
    =IF(C1357>=MAX(C$2:C1356),"n/a",LOOKUP(2,1/(C$2:C1356<C1357),$B$2:$B1356))
    Might be an idea to post a sample file to better illustrate requirements / scenarios etc...

  3. #3
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,589

    Re: Highest / Lowest Since calc

    Is this on the lines you are thinking?
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  4. #4
    Registered User
    Join Date
    12-15-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Highest / Lowest Since calc

    Please see attached sample.

    MIN or MAX won't work, because all I want is the MOST RECENT instance of a price higher or lower than today's - there may have been higher or lower values in the past, but these are not relevant for my purposes.

    It is also right to note that only the Highest_Since or Lowest_Since should give a meaningful result, but for simplicity I wanted to find a formula that would work when I drag it down

    Please see the attached example - this is a simplified version of the actual sheet, with the kind of result I am after (inserted manually)

    I have also shown, highlighted in colour, what the result would have been for a given date in the past.

    Thanks again for any help
    -- Mike
    Attached Files Attached Files

  5. #5
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Highest / Lowest Since calc

    The LOOKUP construct illustrated previously should suffice.

    I won't pretend to follow your expected results in the sample but suffice to say that the general premise of the LOOKUP approach is that it will return the Date associated with the last test result that holds true.

+ 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