Sumproduct calculation for January 09

T

Tina

=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
 
P

Pete_UK

Well, you've missed the sheet name from the second condition, so maybe
it should be:

=SUMPRODUCT(--(MONTH('2008'!B3:B2000)=1),--(YEAR('2008'!
B3:B2000)=2009))

Hope this helps.

Pete
 
B

Bob Phillips

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top