+ Reply to Thread
Results 1 to 3 of 3

Help with COUNTIFS logic with monthly date criteria.

  1. #1
    Registered User
    Join Date
    02-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    2

    Help with COUNTIFS logic with monthly date criteria.

    Hello

    I am looking for a more simple formula to solve my problem, please reference attached example spreadsheet. I would like to count the value "S" OR "CL" in column F AND values with in column H by month.

    I was able to come up with the crude formula but it is ugly...

    =COUNTIFS(H:H,">=1-1-2012",H:H,"<=1-31-2012",F:F,"=S") + COUNTIFS(H:H,">=1-1-2012",H:H,"<=1-31-2012",F:F,"=CL")

    Ultimately I would like to make a chart by month showing the results "January, February, March..."

    I appreciate any help you can provide, Thanks For Your Help.
    Attached Files Attached Files
    Last edited by cbreeze; 02-16-2012 at 12:19 PM. Reason: Solved

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Help with COUNTIFS logic with monthly date criteria.

    Try

    =SUMPRODUCT((H:H>=--"2012-01-01")*(H:H<=--"2012-01-31")*(F:F={"S","CL"}))

  3. #3
    Registered User
    Join Date
    02-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help with COUNTIFS logic with monthly date criteria.

    Thank You Bob, the formula you gave works!

+ 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