+ Reply to Thread
Results 1 to 4 of 4

How to calculate median per month?

  1. #1
    Registered User
    Join Date
    05-27-2013
    Location
    San Francisco
    MS-Off Ver
    Excel 2010
    Posts
    8

    How to calculate median per month?

    Excel.JPG

    I need to calculate the median time it takes to complete a project in one given month.

    I attached a sample table, which is for reference purposes. The actual table will have more entries per month. In "Month, Year" (where you see ???) cell I need the result to show the medium for this particular month. The column A is not sorted by date so I need for Excel to recognize the month as opposed to just me indicating the range the median should be derived from.

    Any help would be greatly appreciated.

    P.S. A special thanks to those who could also write a formula to calculate January In some of my other formulas I had issues with calculating data from January.
    I've done some research on the net, but couldn't find the right formula.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: How to calculate median per month?

    For all data described just for month (do not care of year)
    Use an array formula (committed with Control+Shift+Enter) similar to this one:
    Please Login or Register  to view this content.
    Here I made assumption that the month is determined by start date (in column A) and duration is in column.
    The result will be for January,
    copy down for next 11 rows


    If you want take into account also a year - instead of simple condition on monthnumber, more elaborated shall be used to check both year and month.
    But as there is no attachment with sample spreadsheet I cease to do it.

  3. #3
    Registered User
    Join Date
    05-27-2013
    Location
    San Francisco
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: How to calculate median per month?

    Quote Originally Posted by Kaper View Post
    For all data described just for month (do not care of year)
    Use an array formula (committed with Control+Shift+Enter) similar to this one:
    Please Login or Register  to view this content.
    Here I made assumption that the month is determined by start date (in column A) and duration is in column.
    The result will be for January,
    copy down for next 11 rows


    If you want take into account also a year - instead of simple condition on monthnumber, more elaborated shall be used to check both year and month.
    But as there is no attachment with sample spreadsheet I cease to do it.

    Thanks for the quick response. The formula give 0 in the result for some reason. What does ROW(1:1) mean and what is it for? I need Excel to calculate all entries in Column A, which have a specific month. Btw, some results in Column C (number of days it takes to complete a project) may be missing. Will that affect the results or MEDIAN function will ignore blanks?

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: How to calculate median per month?

    ROW(1:1) is row number for the row1 - so it is 1.
    Once copied down it will become 2,3,4,... and so on in next cells.

    Result 0 - you probably entered the formula as regular one (commited with Enter) while it is an array formula - I tried to emphasize that.

    My frank suggestion: Read and follow the forum rules http://www.excelforum.com/forum-rule...rum-rules.html

    Personal special recommendations:

    rule 12. Don't quote whole posts -- it's just clutter.

    below rule 13 there is a section
    Want to get your question answered quickly?
    and in it:
    Post a WORKBOOK. Nobody wants to type data from a picture or paste text from your post into a spreadsheet as a prelude to helping. To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.
    Best Regards,
    Last edited by Kaper; 01-22-2014 at 05:44 PM. Reason: added "post a workbook" reminder

+ 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] How to calculate the Median for each agent
    By dobracik in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-05-2013, 10:38 AM
  2. Average and Median by week and month from daily data
    By jjj444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2013, 11:01 PM
  3. Won't calculate Median Value
    By braydon16 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-09-2010, 06:00 PM
  4. calculate median with IF AND
    By jy2009 in forum Excel General
    Replies: 3
    Last Post: 05-30-2010, 08:40 PM
  5. 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