+ Reply to Thread
Results 1 to 10 of 10

Most Common Month within list of Dates

  1. #1
    Registered User
    Join Date
    05-11-2016
    Location
    Liberty Lake, Washington
    MS-Off Ver
    2010
    Posts
    79

    Most Common Month within list of Dates

    Hello, I would like to use a formula that returns the month in which the most date occurrences from a list falls within. For example:

    Data:

    1/1/16
    1/22/16
    1/24/16
    1/24/16
    2/3/16
    3/4/16
    3/4/15
    4/4/15

    Formula would return: 1/1/16 or January 2016.

    Thanks for the help!
    Last edited by HWScott; 06-28-2016 at 11:24 AM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Most Common Month within list of Dates

    Try this...

    Data Range
    A
    B
    C
    1
    Date
    ------
    Most Common
    2
    1/1/2016
    January 2016
    3
    1/22/2016
    4
    1/24/2016
    5
    1/24/2016
    6
    2/3/2016
    7
    3/4/2016
    8
    3/4/2015
    9
    4/4/2015


    This array formula** entered in C2:

    =TEXT(MODE(A2:A9-DAY(A2:A9)+1),"mmmm yyyy")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Most Common Month within list of Dates

    The simplest way would be to create a Pivot Table with the dates in both the Row Labels and Values areas. Group the row dates by Month and set the values to Count. Then if necessary sort the PT by Count of date in descending order.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Most Common Month within list of Dates

    ...or a non array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Most Common Month within list of Dates

    Quote Originally Posted by Richard Buttrey View Post
    ...or a non array formula
    =CHOOSE(MODE(MONTH(A1:A20)),"January","February","March","April","May",
    "June","July","August","September","October","November","December")
    The dates aren't all within the same year.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Most Common Month within list of Dates

    @Tony - good point. Missed that.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Most Common Month within list of Dates

    ...

    OTOH the OP was only asking for the month with the highest number of dates, not the month in a particular year with the highest number of dates.

    Maybe the question needs clarifying.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Most Common Month within list of Dates

    I assumed that's why they included the year in their expected result:

    Formula would return: 1/1/16 or January 2016.

  9. #9
    Registered User
    Join Date
    05-11-2016
    Location
    Liberty Lake, Washington
    MS-Off Ver
    2010
    Posts
    79

    Re: Most Common Month within list of Dates

    Tony Valko assumed correctly and I'm sorry that I didn't make that point clearer.
    I really appreciate the help!
    I will try this out tomorrow and give you guys rep for helping. Thanks again.

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Most Common Month within list of Dates

    You're welcome. Thanks for the feedback!

+ 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] Return list of dates by month from a list in alphabetical order
    By jeffreybrown in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2015, 03:21 AM
  2. List Month names between 2 dates
    By Sasquatch2014 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2015, 02:47 PM
  3. [SOLVED] Get a list of dates which are either month end or Friday
    By alice2011 in forum Excel General
    Replies: 5
    Last Post: 12-12-2014, 07:03 AM
  4. [SOLVED] list all dates of the month on button click
    By Sandr54 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2014, 01:53 AM
  5. Counting number of unique dates per month in a list of duplicate dates
    By Rackle83 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-22-2013, 10:15 AM
  6. [solved] list dates in month order
    By kelco in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-27-2006, 04:19 AM
  7. Replies: 3
    Last Post: 06-10-2005, 07:05 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