> Hi Bernard
>
> Thanks for your reply, I've got it sorted now, hundreds of entries
> that are just a letter "a", I'm replacing these gradually with a date.
>
> Thanks again
> George Gee
>
>
> "Bernard Liengme" <bliengme[ at ]stfx.TRUENORTH.ca> wrote in message
> news:u1CTTudaJHA.1704[ at ]TK2MSFTNGP05.phx.gbl...
> > Barry's formula is interesting. I would have used
> > =SUMPRODUCT(--(YEAR(A1:A100)=2000),--(MONTH(A1:A100)=1))
> > You can see how this is similar to
> > =SUMPRODUCT(--(YEAR(A1:A100)=2000))
> >
> > Odd that one works and the other does not. I wonder if one or more cells
> > do not have real dates.
> > You say you have 4500 rows. What is the result from =COUNT(A1:A4500) ? If
> > every cell has a real date value, the result should be 4500.
> > best wishes
> > --
> > Bernard V Liengme
> > Microsoft Excel MVP
> >
http://people.stfx.ca/bliengme> > remove caps from email
> >
> > "George Gee" <georgegee[ at ]nomaps.com> wrote in message
> > news:On7bbUdaJHA.1704[ at ]TK2MSFTNGP05.phx.gbl...
> >> Hi Barry
> >>
> >> Thanks for your reply
> >> The first part for the month works fine.
> >> The second part for the year, I'm getting #VALUE!
> >>
> >> Only 4500 rows
> >>
> >> Thanks again
> >> George Gee
> >>
> >>
> >> "barry houdini" <barry.houdini[ at ]virgin.net> wrote in message
> >> news:9a57401b-2558-4efd-a372-db43dad70011[ at ]q30g2000prq.googlegroups.com...
> >>> Hello George,
> >>>
> >>> For January 2000 you could use a formula like
> >>>
> >>> =SUMPRODUCT(--(TEXT(A1:A100,"mmmyyyy")="Jan2000"))
> >>>
> >>> for the whole year
> >>>
> >>> =SUMPRODUCT(--(YEAR(A1:A100)=2000))
> >>>
> >>> extend the range as necessary but you can't use the whole column
> >>> unless you have Excel 2007
> >>
> >>
> >
> >
>
>
>