+ Reply to Thread
Results 1 to 8 of 8

How to calculate median between two dates/ Medianifs

  1. #1
    Registered User
    Join Date
    09-07-2023
    Location
    London
    MS-Off Ver
    2018
    Posts
    4

    How to calculate median between two dates/ Medianifs

    Hi,
    I am trying to calculate the median if the values fall between two dates. This is easily achieved with the mean by using an Averageifs formula however I cant figure it out with a median? I have attatched the data I am using, for example how would I find the median for all the data in 2003? Thanks
    Attached Files Attached Files
    Last edited by Bigmaq98; 09-07-2023 at 07:21 AM.

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: How to calculate median between two dates/ Medianifs

    Try this,

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-07-2023
    Location
    London
    MS-Off Ver
    2018
    Posts
    4

    Re: How to calculate median between two dates/ Medianifs

    Hi, thanks for your response. I have tried that but it calculates the mean, not the median, thanks for your help though

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: How to calculate median between two dates/ Medianifs

    Or try this:

    =AVERAGEIFS( A2:A10000,B2:B10000,">="&DATE(2003,1,1),B2:B10000,"<="&DATE(2003,12,31))

  5. #5
    Registered User
    Join Date
    09-07-2023
    Location
    London
    MS-Off Ver
    2018
    Posts
    4

    Re: How to calculate median between two dates/ Medianifs

    Hi, thanks for your help but that also calculates the mean not the median

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: How to calculate median between two dates/ Medianifs

    Try again:

    =MEDIAN(IF(YEAR(B2:B10000)=2003,A2:A10000))

    Enter with Ctrl+Shift +Enter.

  7. #7
    Registered User
    Join Date
    09-07-2023
    Location
    London
    MS-Off Ver
    2018
    Posts
    4

    Re: How to calculate median between two dates/ Medianifs

    Amazing!!! Thank you so much that worked! This is my first ever post on this forum, so glad I signed up

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: How to calculate median between two dates/ Medianifs

    You're welcome!

+ 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. medianifs
    By pickslides in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2018, 10:03 PM
  2. [SOLVED] Using Median IF to calculate the median for a specific criteria
    By boynejs in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-20-2014, 01:50 AM
  3. MEDIAN and IF - Why no MEDIANIFS?
    By millonario101 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-30-2014, 10:45 AM
  4. Won't calculate Median Value
    By braydon16 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-09-2010, 06:00 PM
  5. calculate median with IF AND
    By jy2009 in forum Excel General
    Replies: 3
    Last Post: 05-30-2010, 08:40 PM
  6. Calculate Median using conditional based on dates
    By Shai-Hulud in forum Excel General
    Replies: 4
    Last Post: 01-23-2008, 12:39 PM
  7. Calculate median
    By JoshuaSQ in forum Excel General
    Replies: 4
    Last Post: 11-15-2007, 08:15 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