+ Reply to Thread
Results 1 to 5 of 5

min and max values w/in specific date range

  1. #1
    Registered User
    Join Date
    09-30-2009
    Location
    Norfolk, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    min and max values w/in specific date range

    Hi,

    I have a table of dates and values and would very much like to know a formula for returning the min and mean values for each column within a specified time (date) period.

    Table is as follows

    Date value(a) Value (b) ....
    1/1/09 10 8
    2/1/09 8 6
    3/1/09 5 2

    Thanks in advance!!
    Last edited by Barz; 09-30-2009 at 07:43 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: min and max values w/in specific date range

    Are the dates always listed in order ? Where are the specified dates (criteria) stored ?

    Best to post a sample file which reflects your setup and outline desired results based on sample values.

  3. #3
    Registered User
    Join Date
    09-30-2009
    Location
    Norfolk, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: min and max values w/in specific date range

    Dates in the table are always in order - a simplified sample sheet is attatched with the table data in sheet 1 and the output data in sheet 2.
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: min and max values w/in specific date range

    Simplified versions not always ideal but based on your sample...

    To avoid repetitive calcs and need for Arrays I would advise you do the following:

    Sheet2!P5: =MATCH(A5,Sheet1!$A:$A,0)
    copied to Q5

    This gives you the row index position of each criteria date as listed on Sheet1 (we're assuming criteria dates are always listed - if not this will need to be adjusted for).

    Sheet2!D5: =MIN(INDEX(Sheet1!B:B,$P5):INDEX(Sheet1!B:B,$Q5))
    copied across to H5

    The same can be repeated for J:N using MAX rather than MIN.

  5. #5
    Registered User
    Join Date
    09-30-2009
    Location
    Norfolk, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: min and max values w/in specific date range

    Great - thanks!

+ 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