ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumproduct calculation for January 09 (https://www.excelbanter.com/excel-worksheet-functions/197077-sumproduct-calculation-january-09-a.html)

tina

Sumproduct calculation for January 09
 
=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


Pete_UK

Sumproduct calculation for January 09
 
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

On Jul 31, 11:38*am, Tina wrote:
=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



tina

Sumproduct calculation for January 09
 
OK, sorted.... it was on a different worksheet and I forgot to reference it.
Now ok.


"Tina" wrote:

=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


Bob Phillips

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




Pete_UK

Sumproduct calculation for January 09
 
Thanks for feeding back, Tina.

Pete

On Jul 31, 11:50*am, Tina wrote:
OK, sorted.... it was on a different worksheet and I forgot to reference it. *
Now ok.


Dave Peterson

Sumproduct calculation for January 09
 
One mo

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

Tina wrote:

=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


--

Dave Peterson


All times are GMT +1. The time now is 04:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com