+ Reply to Thread
Results 1 to 11 of 11

MAX IF formula to find various highest values between a range of dates

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    MAX IF formula to find various highest values between a range of dates

    I'm trying to extract the highest recorded speed for each site on a particular day.
    Eg:
    1/10/13 Site 1 was 92mph
    1/10/13 Site 2 was 45mph
    1/10/13 Site 3 was 39mph

    ...and so on through the entire date range.

    I thought I had found the answer here http://www.excelforum.com/excel-prog...-criteria.html but I can't make it work as the dates in the example are consecutive whereas mine are groups of the same date which are then consecutive.

    Many thanks
    Attached Files Attached Files

  2. #2
    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: MAX IF formula to find various highest values between a range of dates

    Perhaps an easy way is to create a table with dates ans sites and then use this ARRAY formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    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.

  3. #3
    Registered User
    Join Date
    10-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: MAX IF formula to find various highest values between a range of dates

    Thank you very much for your prompt reply. That is just what I'm looking for.
    As an addition, is it possible to have the Site Number listed above the yellow columns as dynamic? I have several hundred sites and and would only need to report on those sites between the specified dates every time I run the report.

    many thanks

  4. #4
    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: MAX IF formula to find various highest values between a range of dates

    ..As an addition, is it possible to have the Site Number listed above the yellow columns as dynamic?
    Not sure that i get your goal. Can you pls explain a little more?

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: MAX IF formula to find various highest values between a range of dates

    Hi,

    If I understand you correctly, you want a list of unique Site Numbers in row 2, correct?

    If so, enter this array formula in F2 and copy to the right until you start to get blanks for the results:

    =IFERROR(INDEX($B$2:$B$1693,SMALL(IF(FREQUENCY(MATCH($B$2:$B$1693,$B$2:$B$1693,0),ROW($B$2:$B$1693)-MIN(ROW($B$2:$B$1693))+1),ROW($B$2:$B$1693)-MIN(ROW($B$2:$B$1693))+1),COLUMNS($A:A))),"")

    Regards
    Click * below if this answer helped

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

  6. #6
    Registered User
    Join Date
    10-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: MAX IF formula to find various highest values between a range of dates

    Fotis1991


    As XOR LX said, ideally I would just like a list of unique names being reported against. Instead of having a several hundred columns after Row 2 with the list of site names in, ideally I would just like the site names being reported against for that particular reporting period.
    Eg. If during the month of August only Site 1 and Site 2 were visited, the table at F2 should only show Site 1 and 2.
    If during the month of September, Site 376, Site 420 and Site 672 were visited, then I would only expect to see these three sites in the table.

  7. #7
    Registered User
    Join Date
    10-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: MAX IF formula to find various highest values between a range of dates

    Highest speed comaprison (Stacked chart)2.xls

    XOR LX

    Thanks for your response ... although I'm not sure that this result is what either of us had in mind

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: MAX IF formula to find various highest values between a range of dates

    Apologies - didn't see you were on 2003. Amend to (in F2):

    =IF(COLUMNS($A:A)>SUMPRODUCT(1/COUNTIF($B$2:$B$1693,$B$2:$B$1693)),"",INDEX($B$2:$B$1693,SMALL(IF(FREQUENCY(MATCH($B$2:$B$1693,$B$2:$B$1693,0),ROW($B$2:$B$1693)-MIN(ROW($B$2:$B$1693))+1),ROW($B$2:$B$1693)-MIN(ROW($B$2:$B$1693))+1),COLUMNS($A:A))))

    Regards

  9. #9
    Registered User
    Join Date
    10-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: MAX IF formula to find various highest values between a range of dates

    Thanks guys.

    You each solved my problem by way of your contribution. Very fast and efficient too.

  10. #10
    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: MAX IF formula to find various highest values between a range of dates

    You are welcome and thanks for the feed back.

  11. #11
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: MAX IF formula to find various highest values between a range of dates

    I second that!

+ 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: 4
    Last Post: 10-19-2013, 07:50 AM
  2. Find highest and lowest values for a range of dates
    By kersties in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2013, 05:55 AM
  3. [SOLVED] Formula to select the highest number, and the lowest and find out the range
    By Nero_slk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-14-2013, 07:56 AM
  4. Formula to calculate highest values in a range
    By Dabooj in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-09-2008, 10:42 AM
  5. Replies: 4
    Last Post: 10-21-2005, 11:05 AM

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