+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : counting the number of times a particular month is present in a column

  1. #1
    Registered User
    Join Date
    06-09-2009
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    25

    Question counting the number of times a particular month is present in a column

    This has to be super easy but I can't figure it out. dates are in dd-mmm-yy format and are in a single column. what formula can I use to count the number of times each month appears in the column? example data:

    12-jan-10
    20-jan-10
    25-jan-10
    25-feb-10
    30-mar-10


    jan=3
    feb=1
    mar=2
    Last edited by strokedmaro; 10-28-2010 at 12:06 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: counting the number of times a particular month is present in a column

    A Pivot Table would do this for you very quickly...

    Set your Date Field as both Row Label and Date Field (set to Count)
    Right click on a Date in the Row Label and choose "Group" select "Month" only.

    Formula wise using the values as you have them you would need a SUMPRODUCT formula...

    Assuming only dates/blanks exist in the range reviewed then, eg:

    Please Login or Register  to view this content.
    If it's possible non-numeric/non-blank value exist in the range then you would use:

    Please Login or Register  to view this content.
    Note were this the case then the Pivot route would not work either
    (you would not be able to Group the field by Month)

  3. #3
    Registered User
    Join Date
    06-09-2009
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: counting the number of times a particular month is present in a column

    I took the easy way out and used a helper column. I used

    =IF(B3="","",(MONTH(B3)))

    then counted all the 1's, 2's ect.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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