+ Reply to Thread
Results 1 to 3 of 3

Formula to count the number of cells which contain a certain year

  1. #1
    Forum Contributor
    Join Date
    02-24-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2013
    Posts
    113

    Formula to count the number of cells which contain a certain year

    I am trying to create a formula which will check a range of cells and if any of the dates are in a certain year I need them to be counted. The cells I am looking at though contain a formual themselves, I am not sure if this is an issue.

    What I need is to know how many things will expire this year.

    Column A is my employee and column B, C, D etc. is their expiry dates (for training, not for them) so I want to calculate how many certificates for one particular column will expire.

    Hope this makes sense

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Formula to count the number of cells which contain a certain year

    One way, checking a range in column B for 2010:

    =SUMPRODUCT(--(YEAR($B$2:$B$100)=2010))


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    02-24-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2013
    Posts
    113

    Re: Formula to count the number of cells which contain a certain year

    Thank you, but I've just realized I need to count all dates before 31/03/2014. Is that possible?

    Katie

+ 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