+ Reply to Thread
Results 1 to 4 of 4

Converting Date to month in COUNTIFS function

Hybrid View

  1. #1
    Registered User
    Join Date
    04-17-2014
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Post Converting Date to month in COUNTIFS function

    I have tried the following formulas and I can not get them to work.

    I have a column of dates in the format dd/mm/yyyy

    I cant make any changes to the sample data attached. It is maintained by another department at my firm and it is connected to another data source. I need to count the number of entries with responsible party pending in column M


    =COUNTIFS(M:M,"pending",month(C:C),"<=3")
    =COUNTIFS(M:M,"pending",TEXT(C:C,"m"),"<=3")

    Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Converting Date to month in COUNTIFS function

    welcome to the forum. COUNTIFS cannot handle it that way. if it's simply 2014 you want to count, try:
    =COUNTIFS(M:M,"pending",C:C,">=1jan2014",C:C,"<=31mar2014")

    or with SUMPRODUCT (this will include other years if you have them. dont use whole column for this too)
    =SUMPRODUCT((M2:M20="pending")*(MONTH(C2:C20)<=3))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Converting Date to month in COUNTIFS function

    Hi

    Try with SUMPRODUCT
    Formula: copy to clipboard

    =SUMPRODUCT((M2:M10000="pending")*(MONTH(C2:C10000)>=3))


    Pls note that the result of your example is 0(zer) as in column C does not exists a month <=3.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    04-17-2014
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Converting Date to month in COUNTIFS function

    Thank you so much :-)

    This helps alot, I used the formula below.

    =COUNTIFS(M:M,"pending",C:C,"< 4/1/2014")

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Countifs by date in month?
    By whizbee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-21-2013, 01:03 PM
  2. sumproduct+countifs+month year function does not work
    By apskhinda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2013, 07:01 AM
  3. CountIfs By Month - Multiple Date and Text Conditions
    By MAC0605 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2013, 06:22 PM
  4. converting countifs to 2003 function
    By rgirardi in forum Excel General
    Replies: 1
    Last Post: 05-04-2012, 07:18 AM
  5. Date Format - converting number of month to name of month
    By Merlinwb in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 04-12-2005, 11:55 AM

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