Sumproduct calculation for January 09

  • Thread starter Thread starter Tina
  • Start date Start date
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
 
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
 
OK, sorted.... it was on a different worksheet and I forgot to reference it.
Now ok.
 
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)
 
One more:

=sumproduct(--(text('2008'!b3:b2000,"yyyymm")="200901"))
 

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

Similar Threads

combine countif and sumproduct? 2
Calculation of Quarter 16
Sum amounts based on date field 6
Count based on multiple criteria 2
Sumproduct with three arrays 2
COUNT 2
XIRR Function - large IRRs 1
Excel 2007 4

Back
Top