+ Reply to Thread
Results 1 to 5 of 5

MAX value of cell range if value of a different cell range is greater than X

  1. #1
    Registered User
    Join Date
    01-24-2019
    Location
    Helsinki
    MS-Off Ver
    2016
    Posts
    4

    MAX value of cell range if value of a different cell range is greater than X

    Hi all,

    I have a small issue with extracting a MAX value from a row of cells that depend on the range of a different row when it exceeds a certain value.

    I attached a simplified example of my problem. It contains a Time series in seconds (row 2) and 2 subjects (row 3,4). I need the max value of row 3 (and row 4, separately), but the range depends on when the time (row 2) exceeds a certain value (value of column H).

    I hope I provided enough information, please let me know if anything is unclear. I appreciate any help.

    Cheers,
    Sam
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: MAX value of cell range if value of a different cell range is greater than X

    An array formula:

    =MAX(IF($B$2:$F$2>H3,B3:F3))

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: MAX value of cell range if value of a different cell range is greater than X

    or an ordinary formula:

    =SUMPRODUCT(MAX(($B$2:$F$2>H3)*B3:F3))

  4. #4
    Registered User
    Join Date
    01-24-2019
    Location
    Helsinki
    MS-Off Ver
    2016
    Posts
    4

    Re: MAX value of cell range if value of a different cell range is greater than X

    Ah yes, should've known. Thank you!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: MAX value of cell range if value of a different cell range is greater than X

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] VBA - If cell in range is greater than = MsgBox
    By Quint6778 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2016, 01:37 PM
  2. [SOLVED] How to find first cell in range greater than X, if there is such a cell?
    By hadamhiram in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-23-2015, 12:48 PM
  3. [SOLVED] Calculate Average If Any Cell in Range Greater Than 0
    By jacksonstorms in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-01-2014, 12:10 AM
  4. Replies: 4
    Last Post: 09-24-2013, 08:57 AM
  5. Replies: 7
    Last Post: 02-07-2013, 02:59 AM
  6. Replies: 7
    Last Post: 07-06-2012, 08:19 AM
  7. Change text of cell if cell is greater than nothink withen range
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2009, 10:41 AM

Tags for this Thread

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