Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Stan Altshuller
 
Posts: n/a
Default 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   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Stan,

The following will work, just not on a whole column

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

HTH,
Bernie
MS Excel MVP


"Stan Altshuller" wrote in message
...
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   Report Post  
Paul B
 
Posts: n/a
Default

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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 Trashes Imported Dates KymY Excel Discussion (Misc queries) 3 April 27th 05 02:34 PM
how to increase maximum number of columns in excel 2003 [email protected] Excel Discussion (Misc queries) 1 January 16th 05 08:13 PM
count weekdays in a date range benb Excel Worksheet Functions 1 January 13th 05 02:49 PM
dates in Excel 2003 [email protected] Excel Discussion (Misc queries) 3 January 4th 05 11:04 PM
How do I display months and years between two dates JSmith Excel Discussion (Misc queries) 1 November 30th 04 04:41 PM


All times are GMT +1. The time now is 02:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"