+ Reply to Thread
Results 1 to 6 of 6

Use MAXIFS with a calcuated parameter

  1. #1
    Registered User
    Join Date
    08-31-2018
    Location
    San Diego
    MS-Off Ver
    1803
    Posts
    7

    Use MAXIFS with a calcuated parameter

    Hi all,

    I'd like to use MAXIFS to find the max energy demand between certain hours (16:00 to 21:00). Energy values are in column C and Date/Time is in column A.

    My desired function: =MAXIFS(C3:C288,A3:A2882,AND(HOUR(__)>=16,HOUR(__)<21)) I'm stuck because the HOUR function only takes in a serial number and not an array.

    I got it to work by using another column to calculate the hour and running MAXIFS on this, but I'd like to know if there's a way to accomplish this without making another column.

    Thanks!

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Use MAXIFS with a calcuated parameter

    Hello and welcome to the forum. Give this a try:

    =MAX(IF((HOUR(A3:A288)>=16)*(HOUR(A3:A288)<21),C3:C288) Ctrl Shift Enter

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Use MAXIFS with a calcuated parameter

    Withdrawn by FR. Double posted.
    Dave

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Use MAXIFS with a calcuated parameter

    I'm stuck because the HOUR function only takes in a serial number and not an array.
    You might be surprised. If you insert +before the range (sometimes N(+range) and array enter you can coerce ranges into acceptable arrays).

    Also if you are not aware of it the IFS family of functions requires building strings for comparison criteria. i.e. something like "<="&16

    Play with it. If you are still stuck upload a representative sample Excel workbook with data consistent with what you describe.


    To attach a file to your post: (Please no pics or screenshots ... saves retyping data.),
    • be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.

  5. #5
    Registered User
    Join Date
    08-31-2018
    Location
    San Diego
    MS-Off Ver
    1803
    Posts
    7

    Re: Use MAXIFS with a calcuated parameter

    Hi 63falcondude,

    Thanks so much, that worked perfectly!

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Use MAXIFS with a calcuated parameter

    You're welcome. Happy to help.

    Thanks for the rep!

+ 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] MAXIFS and MINIFS not available
    By TFiske in forum Excel General
    Replies: 7
    Last Post: 05-08-2019, 11:27 PM
  2. Calcuated Value by comparing previous value - Match Index ?
    By santanuKD in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-13-2017, 09:35 AM
  3. MAXIFS with criteria
    By shiftyspina in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 01-25-2017, 10:14 AM
  4. [SOLVED] MaxIFs help
    By Hondahawkrider in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2016, 02:23 PM
  5. MaxIFS help
    By Hondahawkrider in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2016, 03:17 PM
  6. Pivot Table Help Needed - Calcuated Item? Not sure...
    By sammyg83 in forum Excel General
    Replies: 5
    Last Post: 05-16-2012, 10:31 AM
  7. pivot table with calcuated field for date
    By Greg Kinney in forum Excel General
    Replies: 8
    Last Post: 12-12-2011, 03:09 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