+ Reply to Thread
Results 1 to 3 of 3

count number of years 2003 in a range of dates

  1. #1
    Stan Altshuller
    Guest

    count number of years 2003 in a range of dates

    Hi All!

    I have a column of dates in column A:A and want to count the number of dates
    that have the year 2003 in them.
    I am trying to use =countif(year(A:A),2003) but it does not want to take
    that formula, it says there is a mistake in it.

    Can anyone help?

    Thanks so much!!

    Stan



  2. #2
    Paul B
    Guest

    Re: count number of years 2003 in a range of dates

    Stan, here is one way,

    =SUMPRODUCT((YEAR(A1:A100)=2003)+0)
    --
    Paul B
    Always backup your data before trying something new
    Please post any response to the newsgroups so others can benefit from it
    Feedback on answers is always appreciated!
    Using Excel 2002 & 2003

    "Stan Altshuller" <ctaca@hotmail.com> wrote in message
    news:evyQ%23rAUFHA.2556@TK2MSFTNGP12.phx.gbl...
    > Hi All!
    >
    > I have a column of dates in column A:A and want to count the number of
    > dates
    > that have the year 2003 in them.
    > I am trying to use =countif(year(A:A),2003) but it does not want to take
    > that formula, it says there is a mistake in it.
    >
    > Can anyone help?
    >
    > Thanks so much!!
    >
    > Stan
    >
    >




  3. #3
    Bernie Deitrick
    Guest

    Re: count number of years 2003 in a range of dates

    Stan,

    The following will work, just not on a whole column

    =SUMPRODUCT((YEAR(A1:A1000)=2003)*1)

    HTH,
    Bernie
    MS Excel MVP


    "Stan Altshuller" <ctaca@hotmail.com> wrote in message
    news:evyQ%23rAUFHA.2556@TK2MSFTNGP12.phx.gbl...
    > Hi All!
    >
    > I have a column of dates in column A:A and want to count the number of

    dates
    > that have the year 2003 in them.
    > I am trying to use =countif(year(A:A),2003) but it does not want to take
    > that formula, it says there is a mistake in it.
    >
    > Can anyone help?
    >
    > Thanks so much!!
    >
    > Stan
    >
    >




+ 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