+ Reply to Thread
Results 1 to 7 of 7

CountIF and a Range of Dates

  1. #1
    Registered User
    Join Date
    04-29-2009
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    8

    CountIF and a Range of Dates

    Hi,

    I am trying to solve a a problem that I am having.

    I have a list of projects in one column and start dates in a different column.

    I want to create a dashboard that breaks down projects by month, quarter and year to date.

    I have tried various formulas centered around CountIf. Bottom line is I want to review a column of dates and determine how many projects started last month, etc.....

    Can you help?

    Thanks,
    Last edited by MCofman; 05-01-2009 at 02:19 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,406

    Re: CountIF and a Range of Dates

    Can you check my second attachment here?
    is this good enough for your problem?

    http://www.excelforum.com/excel-gene...duct-type.html

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

    Re: CountIF and a Range of Dates

    Are they all within same year?

    if so,

    =SUMPRODUCT(--($A$1:$A$4<>""),--(MONTH($A$1:$A$4)=MONTH(TODAY())-1))

    if not

    =SUMPRODUCT(--($A$1:$A$4<>""),--(MONTH($A$1:$A$4)=MONTH(TODAY())-1),--(YEAR($A$1:$A$4)=YEAR(TODAY())

    adjust ranges to suit.
    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.

  4. #4
    Registered User
    Join Date
    12-16-2006
    Location
    Bangkok
    MS-Off Ver
    Excel 2003
    Posts
    98

    Re: CountIF and a Range of Dates

    Would you post a sample with before and after result?
    Cheers, Francis

    A novice still learning and sharing with others for what I know

    If your question has been answered, please mark this thread as [SOLVED]

    If you are happy with the results, please give my reputation a boost by clicking the blue scales icon in the upper right portion of the blue bar of this post.

  5. #5
    Registered User
    Join Date
    04-29-2009
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: CountIF and a Range of Dates

    Thanks for the replies.

    Have not had much success with using the SumProduct formula. I enclosed a spreadsheet on what I am trying to accomplish.

    Thanks in advance for the continued support.
    Attached Files Attached Files

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

    Re: CountIF and a Range of Dates

    See attached...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-29-2009
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: CountIF and a Range of Dates

    Thanks that worked great. I will now close this as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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