Results 1 to 4 of 4

Medians - Filtered List by Year

Threaded View

  1. #1
    Registered User
    Join Date
    09-14-2017
    Location
    Toronto
    MS-Off Ver
    2013
    Posts
    7

    Medians - Filtered List by Year

    Hi there,

    I have a data set and a formula that calculates medians based on a filtered list. So that if the user wants to see the median in Group A, B or C, he/she can just filter for it, and the formula will adjust the median calculation based on the visible cells.

    However, I want it to display it per year, which it's not set up to do right now.

    Current formula: {=MEDIAN(IF(SUBTOTAL(2,OFFSET(F9,ROW(F9:F17)-ROW(F9),0)),F9:F17))}

    For the current filtered list here, it should say:
    2012: 3
    2013: 2

    I could just filter for 2012 and 2013 separately, and that would solve the problem - but I am trying to limit the amount of filtering necessary.

    I've attached a sample data set.

    Thanks!
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by jennyliang; 09-26-2017 at 05:10 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calculating medians under different conditions
    By pdouglas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2017, 12:29 PM
  2. Calculate medians by season
    By MAHood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-04-2014, 03:55 PM
  3. [SOLVED] How to calculate medians using macro?
    By jun22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2014, 03:11 PM
  4. [SOLVED] Excel VBA - Issue in Naming Filtered Range on a Filtered List.
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-06-2014, 01:17 PM
  5. Medians with multiple ifs.
    By FoxyDread in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2013, 01:30 PM
  6. [SOLVED] Look up a date base on the year, and add up costs for that year from list
    By spedigo228 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2012, 08:25 AM
  7. Convert a multiple year list of 365 days/year into an equivalent of 360 days/year
    By lobotomy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2012, 05:39 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