+ Reply to Thread
Results 1 to 5 of 5

Counting entries based on month

  1. #1
    Registered User
    Join Date
    10-10-2006
    Posts
    29

    Counting entries based on month

    I have a column of dates and want to count how many times there is an entry for a particular month. example:

    (column D)
    7/4/2009
    7/13/2009
    7/22/2009
    8/1/2009
    8/6/2009
    9/15/2009

    I want to be able to coun (countif?) how many times there is a July listing, August listing, etc. I have tried countif and sumproduct with no luck.
    =COUNTIF(D3:D20,">=7/1/2009")+COUNTIF(D3:D20,"<=7/31/2009")
    =SUMPRODUCT(--(D3:D20>="7/1/2009")*(D3:D20<="7/31/2009"))
    I have made them arrays. Any assistance would be appreciated.
    Last edited by mamig; 10-21-2009 at 10:49 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Counting entries based on month

    TRy

    =COUNTIF(D3:D20,">=7/1/2009")-COUNTIF(D3:D20,">7/31/2009")

    or

    =SUMPRODUCT(--(D3:D20>="7/1/2009"+0)*(D3:D20<="7/31/2009"+0))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Counting entries based on month

    TRy

    =COUNTIF(D3:D20,">=7/1/2009")-COUNTIF(D3:D20,">7/31/2009")

    or

    =SUMPRODUCT(--(D3:D20>="7/1/2009"+0)*(D3:D20<="7/31/2009"+0))

  4. #4
    Registered User
    Join Date
    10-10-2006
    Posts
    29

    Re: Counting entries based on month

    Thank you. They both worked great

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Counting entries based on month

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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