+ Reply to Thread
Results 1 to 7 of 7

Need Formula That Finds the Max and Min

  1. #1
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Question Need Formula That Finds the Max and Min

    Hello,
    I need help creating a formula that finds the Max value of the High column and the Min value of the Low column everyday between 2:00 PM and 2:15 PM (14:00 to 14:15). So the formula would scan the columns containing the dates, times, highs, and lows and would find the 1st instance where 2:00 PM and 2:15 PM (14:00 to 14:15) appear. The formula would then list the Max High and the Min Low between those two rows.

    The workbook where the formula needs to be entered contains data that is constantly shifting and updating so the formula has to be based upon the 14:00 (2:00 PM) and not the number of rows because the 14:00 (2:00 PM) row won’t always be in the same place.

    See the attached spreadsheet for a better explanation. There are two examples of what I need on one sheet to give an example of how the data can shift.

    Thank you in advance for any and all help.
    Attached Files Attached Files
    Last edited by artiststevens; 04-04-2014 at 10:16 PM.

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Need Formula That Finds the Max and Min

    Something like this?
    Attached Files Attached Files

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Need Formula That Finds the Max and Min

    hi artiststevens. another solution. array formula:
    =MAX((B2:B152=H152)*(C2:C152>=14/24)*(C2:C152<=I152)*E2:E152)

    =MIN(IF(B2:B152=H152,IF(C2:C152>=14/24,IF(C2:C152<=I152,F2:F152))))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Need Formula That Finds the Max and Min

    Quote Originally Posted by azumi View Post
    Something like this?
    Hello Azumi, Thank you for the help. That's almost it except I need the MIN for the low column not the MAX. When I change it to MIN myself I get 0. Can you help fix that part?

  5. #5
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Need Formula That Finds the Max and Min

    Thank you very much benishiryo that worked perfectly! It is greatly appreciated.

  6. #6
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Need Formula That Finds the Max and Min

    Yes for MIN I guess missed something.....

    =MIN(IF(B2:B152=I2,IF((C2:C152>=TIME(12,0,0)*(C2:C152<=TIME(12,15,0))),F2:F152)))

  7. #7
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Need Formula That Finds the Max and Min

    Quote Originally Posted by azumi View Post
    Yes for MIN I guess missed something.....

    =MIN(IF(B2:B152=I2,IF((C2:C152>=TIME(12,0,0)*(C2:C152<=TIME(12,15,0))),F2:F152)))
    Thank you.

+ 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] Looking for a formula that finds the average female age
    By Thomas11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2013, 08:17 PM
  2. Formula That Finds Info On A Different File?
    By natepen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2006, 02:06 PM
  3. Replies: 4
    Last Post: 04-11-2006, 12:06 PM
  4. Need a formula that finds the last used cell in a range
    By samfw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2006, 11:55 AM
  5. [SOLVED] How do I create a formula in Excel that finds the value of the la.
    By BerlinUSA in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2005, 09:06 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