Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default compute count of range of date fields with a given year

I would like to count the number of date cells in a range with a specific
year. For instance, I would like to do

COUNTIF(cell range, year(current cell) = 2007)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default compute count of range of date fields with a given year

Hi,

Try this:

=SUMPRODUCT(--(YEAR(A1:A100)=2007))

or something like this array formula

=SUM(IF(YEAR(A5:A18)=2007,1))
enter using Ctrl+Shift+Enter

Regards!
Jean-Guy

"Excel formula" wrote:

I would like to count the number of date cells in a range with a specific
year. For instance, I would like to do

COUNTIF(cell range, year(current cell) = 2007)

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
Sorting date fields by month excluding year Alisa Excel Discussion (Misc queries) 1 July 25th 07 09:10 PM
How do you compute partial year depreciation using DDB, SYD, SLN,V Prof D Excel Worksheet Functions 1 February 13th 06 12:30 PM
count dates within range by year and month Isaiah25 Excel Worksheet Functions 10 May 4th 05 10:22 PM
count number of months year to date coal_miner Excel Worksheet Functions 1 May 4th 05 02:41 PM
Count the occurances of a month in a range of date fields Keith Brown Excel Worksheet Functions 8 March 14th 05 11:24 AM


All times are GMT +1. The time now is 11:02 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"