+ Reply to Thread
Results 1 to 3 of 3

Using Countif function with dates

  1. #1
    Registered User
    Join Date
    07-21-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    17

    Using Countif function with dates

    hi guys,

    was wondering how to use countif function to count for overall months.

    I have a column with numerous dates in dd/mm/yyyy format. I would like to count number of cells with a certain year, regardless of day and month. How do you do this?

    At the moment, the countif function only works if I enter a specific date. E.g COUNTIF(A1:A3000, "1/31/1994"). I have tried substituting x, *, ~ for the month and day, but the count function still just returns 0.

    Jodapo.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Using Countif function with dates

    you could try

    =SUMPRODUCT(--(YEAR(A1:A3000)=1994))
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-21-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Using Countif function with dates

    the YEAR function! Thats what I was looking for :P. Thanks!

+ 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