J
john.bedford3
I have the following formula to count the number of instances of the month
January in a column of dates.
{=SUM(IF(ISNUMBER(C$3:C$512),IF(MONTH(C$3:C$512)=1,1,0)))}
I want to add an extra condition where the year is less than 2002 and have
tried the following adding an "AND" condition but this does not seem to
work.
{=SUM(IF(ISNUMBER(C$3:C$512),IF(AND(YEAR(C$3:C$512)<2002,MONTH(C$3:C$512)=1)
,1,0)))}
I have obviously got the syntax wrong but can not see what my error is. Can
anyone please help?
January in a column of dates.
{=SUM(IF(ISNUMBER(C$3:C$512),IF(MONTH(C$3:C$512)=1,1,0)))}
I want to add an extra condition where the year is less than 2002 and have
tried the following adding an "AND" condition but this does not seem to
work.
{=SUM(IF(ISNUMBER(C$3:C$512),IF(AND(YEAR(C$3:C$512)<2002,MONTH(C$3:C$512)=1)
,1,0)))}
I have obviously got the syntax wrong but can not see what my error is. Can
anyone please help?