+ Reply to Thread
Results 1 to 11 of 11

Count number of events per month in a range

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    Nevada
    MS-Off Ver
    2011
    Posts
    8

    Count number of events per month in a range

    I am trying to figure out this count function but am having some trouble.

    I have many rows of events and Column A has the date in m/d/yy format.
    I want to count the number of occurances for each month.
    The function I tried was COUNTIF(A2:A512, "1/??/12") for January 2012
    I then tried reformatting the date column to mm/dd/yy format making the criteria "01/??/12"
    This didn't work. Any ideas?

    Thanks

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count number of events per month in a range

    In column B use the formula =month(a2)

    After that you can make an pivot table.

    You can use the month for the rows and the events for the counting (values)
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    01-31-2013
    Location
    Nevada
    MS-Off Ver
    2011
    Posts
    8

    Re: Count number of events per month in a range

    That works well, but I have multiple years of data and I would like to count each month for each year. I think I could add another row and list the years and have two criteria but I would rather not have to do this due to the amount of data I am going through.

    If you or anyone else knows of a single function that could do this, it would help immensely.

    Thanks!

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count number of events per month in a range

    Make a table of your data

    Excel 2007 => insert => table.

    Then typ this formula in the columns.
    In column B use the formula =month(a2)
    In column C use the formula =year(a2)

    The whole range will have this formula.

    After that make an pivot table of your data.

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Count number of events per month in a range

    Hi cpots13

    what about the Sumproduct function, for example:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  6. #6
    Registered User
    Join Date
    01-31-2013
    Location
    Nevada
    MS-Off Ver
    2011
    Posts
    8

    Re: Count number of events per month in a range

    I am not really sure about the SUMPRODUCT function, I am not sure I understand how it would count the events.

    I think if you see my data it may help?
    Here is one of the sheets for an example:DateCount Example.xlsx
    The yellow highlighted area is where the issue is (Column M)

    Thanks

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count number of events per month in a range

    with an pivot table.

    see the attached file.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-31-2013
    Location
    Nevada
    MS-Off Ver
    2011
    Posts
    8

    Re: Count number of events per month in a range

    Thanks oeldere!
    I would still like to just use one formula if I can since I have so many sheets to go through though...your help is appreciated!

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count number of events per month in a range

    If your data is all the same for all sheet, you can add all data to a summary sheet.

    Then you can use pivot table, as I showed you.

  10. #10
    Registered User
    Join Date
    01-31-2013
    Location
    Nevada
    MS-Off Ver
    2011
    Posts
    8

    Re: Count number of events per month in a range

    I feel kind of dumb Kevin UK, someone explained SUMPRODUCT() to me and I think it actually will work. Thank you for your help!

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count number of events per month in a range

    See the forumrules about crossposting.

    http://www.excelforum.com/forum-rule...rum-rules.html

    See the link for the crosspost.

    http://www.mrexcel.com/forum/excel-q...per-month.html

+ 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