+ Reply to Thread
Results 1 to 6 of 6

Mode If and Median If help

  1. #1
    Registered User
    Join Date
    03-20-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2012
    Posts
    8

    Mode If and Median If help

    Hello.

    I have two sets of dates in columns AN (Start) and AP (End) running from September onwards. I would like to find the mode and median number of days it took to complete (from Start date to Finish date) for each month.

    Is this possible?

    If not, I have already got this formula next to the two columns
    =IF(AN2="","",AN2-AP2)
    (as the spread sheet is Dynamic) so how could I go about finding, for example, the mode number of days it took to complete during September, during October etc?

    Many thanks in advance for your help.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Mode If and Median If help

    So, if a project starts (AN2) in Sept but ends (AP2) in Oct, would you use Oct or Sept for calculating your mode and median values?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    03-20-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2012
    Posts
    8

    Re: Mode If and Median If help

    Um, it would be the difference between the end date and the start date. e.g.

    Start 18/11/14 End 20/11/14 End - Start = 2
    Start 19/11/14 End 20/11/14 End - Start = 1

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Mode If and Median If help

    You misunderstood my question

    Start 29/11/14 End 02/12/14 End - Start = 3 BUT would you use that data for median of November or Median of December?

  5. #5
    Registered User
    Join Date
    03-20-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2012
    Posts
    8

    Re: Mode If and Median If help

    Oh right, sorry, the end date

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Mode If and Median If help

    With end date in AP, Difference in AQ, and where E3 contains "November", use this ARRAYED formula

    =MODE(IF(TEXT($AP$2:$AP$30,"mmmm")=E$3,$AQ$2:$AQ$30))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Attached Files Attached Files

+ 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] Calculate Mode, Median and Average based on data in 3 columns
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2014, 05:56 PM
  2. Median and mode
    By maestrodos in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-01-2012, 10:40 PM
  3. Mean, median and mode
    By brandon in forum Excel General
    Replies: 6
    Last Post: 05-06-2008, 12:39 PM
  4. Replies: 2
    Last Post: 08-23-2007, 03:07 AM

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