+ Reply to Thread
Results 1 to 6 of 6

Finding highest/lowest values over a set date period

  1. #1
    Forum Contributor
    Join Date
    01-27-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    120

    Finding highest/lowest values over a set date period

    Hi,

    I am trying to set up a look up to find the highest value over the past 15 days in a list for a specific criteria.
    I can achieve finding the highest value but not ovr the last 15 days.
    Bear in mind the last date range for the last 15 days with increment by 1 day every day so the date range will be different each day I run the look up.
    See attached spreadsheet.


    Any help would be appreciated

    Terry
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Finding highest/lowest values over a set date period

    Do you mean to measure the time from today's date, or from the last date recorded for the particular company (28/09/2016 for A and 27/09/2016 for B)?

    If the 15 days is measured from today, then you can put the company names A and B in cells F27 and F28, and put this array* formula in G27:

    =MAX(IF(($B$2:$B$50=F27)*($A$2:$A$50>=TODAY()-15),$C$2:$C$50))

    and copy this into G28 (or further if you have more than 2 names).

    *NOTE: an array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual < Enter >.

    Note also that I have made the ranges down to row 50 so you can add some more data, but you will need to increase this if you have even more data.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    01-27-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    120

    Re: Finding highest/lowest values over a set date period

    Hi Pete,

    That's spot on. It was from Today's date so works fine.

    Thanks a bunch,

    Terry

  4. #4
    Forum Contributor
    Join Date
    01-27-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    120

    Re: Finding highest/lowest values over a set date period

    Pete,

    I have a slight modification to the arrangement.
    I have no requirement for the first part of the function ..(($B$2:$B$50=F27) - the bit which looks for the company names (A or B).
    It is simply a question of looking back 10 periods from the current date (Todays Date) and finding the heighest value.

    Tried re-arranging the formula but no joy.

    Can you assist please?

    Terry

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Finding highest/lowest values over a set date period

    Thanks for the rep, Terry.

    If you just want to find the highest value within the last 15 days, from ANY company, then the formula would be this:

    =MAX(IF($A$2:$A$50>=TODAY()-15,$C$2:$C$50))

    This is still an array formula, so you need to commit it using CSE, as previously advised.

    Hope this helps.

    Pete

  6. #6
    Forum Contributor
    Join Date
    01-27-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    120

    Re: Finding highest/lowest values over a set date period

    Pete,

    Many thanks

    Terry

+ 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] Formula for finding Start, Stop, Highest and Lowest value
    By mariur89 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-05-2016, 06:07 AM
  2. [SOLVED] finding the X highest (or lowest) numbers in a set.
    By jimboryan in forum Excel General
    Replies: 3
    Last Post: 07-25-2014, 02:20 AM
  3. Continuous changing cell values - record highest and lowest values in seperate cells
    By attienel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2013, 05:12 PM
  4. [SOLVED] Finding the category with the highest/lowest score
    By Vemonstrocity in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-08-2012, 07:08 PM
  5. Finding the highest or lowest value
    By simonjg in forum Excel General
    Replies: 0
    Last Post: 09-18-2011, 10:39 AM
  6. Finding Highest values and Lowest Values
    By jpthelpguy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-22-2009, 03:30 AM
  7. Finding highest and lowest number between to key numbers
    By garbs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2007, 06:35 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