+ Reply to Thread
Results 1 to 5 of 5

TRIMEAN on Filtered lists

  1. #1
    Registered User
    Join Date
    10-30-2017
    Location
    Loughborough
    MS-Off Ver
    MS Office 365 Excel 2016
    Posts
    10

    TRIMEAN on Filtered lists

    Excel 2016 MS OFFICE 365
    Hi there, I am trying to use the TRIMEAN function on a pretty basic filtered list, so far I have the following array formula:

    {=TRIMMEAN(IF(SUBTOTAL(2,OFFSET($B$2:$B$226,ROW($B$2:$B$226),,1)),$B$2:$B$226),$C$236)}

    Where column C is a number set and C236 is the Trimean %.

    I seem to be getting mixed data results; any idea where I have gone wrong? I have looked online and have found an alternative formula {=TRIMMEAN(IF(SUBTOTAL(3,OFFSET($B$2:$B$226,ROW($B$2:$B$226)-ROW($B$2),0,1)),$B$2:$B$226),$C$236)} but this does not seem to help.

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,298

    Re: TRIMEAN on Filtered lists

    Your offset is offset by one too many, so try

    =TRIMMEAN(IF(SUBTOTAL(2,OFFSET($B$2:$B$226,ROW($B$2:$B$226)-1,,1)),$B$2:$B$226),$C$236)
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,721

    Re: TRIMEAN on Filtered lists

    Surely that needs to be -2 Bernie? or -ROW($B$2) as suggested in Rupert’s alternative. You need the first value in the ROW offset array to be zero.....
    Audere est facere

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,298

    Re: TRIMEAN on Filtered lists

    You're right, of course It's Monday and I was up really late watching the game

  5. #5
    Registered User
    Join Date
    10-30-2017
    Location
    Loughborough
    MS-Off Ver
    MS Office 365 Excel 2016
    Posts
    10

    Re: TRIMEAN on Filtered lists

    Awesome chaps, works correctly now. 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. Formula that changes with filtered lists
    By LukeM82 in forum Excel General
    Replies: 1
    Last Post: 11-03-2016, 10:45 AM
  2. filtered lists based on another cell value
    By chubbchubb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-25-2014, 10:07 AM
  3. Filtered Data Validation Lists
    By Nintynuts in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-02-2012, 08:57 AM
  4. calculations on filtered lists
    By gavster in forum Excel General
    Replies: 1
    Last Post: 08-20-2008, 11:44 AM
  5. how do you print filtered lists?
    By shnurgle in forum Excel General
    Replies: 2
    Last Post: 07-01-2007, 09:24 AM
  6. Comparing Filtered Lists
    By Deacon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2007, 11:14 AM
  7. Using TRIMEAN on a filtered list
    By claytorm in forum Excel General
    Replies: 3
    Last Post: 08-25-2005, 03:05 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