View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
PSmith PSmith is offline
external usenet poster
 
Posts: 14
Default Using COUNTIF or SUMPRODUCT for Year

I have a column of dates in numeric format of dd/mm/year, and have tried two
different formulas to count the number that fall in a specific year.

When I use the formula
=SUMPRODUCT(--(YEAR(C4:C24)=2001))
it returns the #VALUE! error

I've tried variations of the COUNTIF formula, to no avail either. Any
suggestions? Thanks