View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default Sumproduct calculation for January 09

another way

=SUMPRODUCT(--('2008'!B3:B2000-DAY('2008'!B3:B2000)+1=--"2009-01-01"))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Tina" wrote in message
...
=SUMPRODUCT(--(MONTH('2008'!B3:B2000)=1),--(YEAR(B3:B2000)=2009))

Hi all, I am using the above, but am getting #VALUE!

The format the date is typed in, in the main data sheet, is "05 January
2009", but I have also tried 05/01/2009 but to no avail. Can anyone say
where I am going wrong?
Thanks
Tina