+ Reply to Thread
Results 1 to 2 of 2

Searching for MAX less than X via SUBTOTAL on filtered Data problem. Please Help!

  1. #1
    Registered User
    Join Date
    03-29-2023
    Location
    Sydney, Australia
    MS-Off Ver
    Microsoft Office 2010
    Posts
    5

    Angry Searching for MAX less than X via SUBTOTAL on filtered Data problem. Please Help!

    Hi,

    I have a MAX(SUBTOTAL array formula that is applied to a range of filtered data.

    The purpose is to find the maximum value of a filtered range which is less than X.

    It works when the value of X is positive, however, it doesn't seem to work when the value of X is negative.

    {=MAX(SUBTOTAL(104,OFFSET(AH15,ROW(AH15:AH21739)-MIN(ROW(AH15:AH21739)),0,1,1))*(AH15:AH21739<=AH8))}

    What I am trying to find is the maximum value in the filtered range AH15:AH21739 that is less than the value in cell AH8.

    The values in the range are between 0.003187 and -0.411742. The value in cell AH8 is -0.0326537

    The formula is returning a value of 0. As shown in cell AH9. (Screenshot attached)

    It should return the highest possible value that is below -0.0326537. i.e. -0.06

    Is there something obvious that I am missing?

    Any help would be greatly appreciated.

    Thanks.

    Analyser Snapshot.PNG

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Searching for MAX less than X via SUBTOTAL on filtered Data problem. Please Help!

    The formula is returning a value of 0. As shown in cell AH9. (Screenshot attached)

    It should return the highest possible value that is below -0.0326537. i.e. -0.06

    Is there something obvious that I am missing?
    any value which is either hidden and/or > criteria will, within the array, return 0 as either/both sides of the multiplication are * 0, which will exceed the legitimate -ve results.

    Assuming, per profile, XL2010 you could try something along lines of:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by XLent; 04-14-2023 at 04:17 AM. Reason: typo

+ 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] Subtotal filtered data IF criteria met on another cell
    By Tally04 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2020, 10:15 AM
  2. Calculate Subtotal with two conditions on filtered data only
    By jelx1107 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2020, 01:51 AM
  3. [SOLVED] Aggregate based on filtered data (subtotal?)
    By Median in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2018, 05:03 PM
  4. [SOLVED] Subtotal of filtered data with one criteria
    By HaroonSid in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-24-2017, 09:22 AM
  5. [SOLVED] Forumulas for Filtered Data =SUBTOTAL(A1:A2) Etc
    By Ben1985 in forum Excel General
    Replies: 3
    Last Post: 09-03-2013, 10:39 AM
  6. [SOLVED] Using Subtotal on Filtered Data with an additional condition
    By rau in forum Excel General
    Replies: 15
    Last Post: 09-06-2012, 08:03 AM
  7. Subtotal function with Filtered Data
    By RonB in forum Excel General
    Replies: 3
    Last Post: 08-12-2005, 06:05 PM

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