ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   =SUMPRODUCT but need to break out Jan 07 and Jan 08 results (https://www.excelbanter.com/excel-programming/403565-%3Dsumproduct-but-need-break-out-jan-07-jan-08-results.html)

Neall

=SUMPRODUCT but need to break out Jan 07 and Jan 08 results
 
I am currently using

=SUMPRODUCT(--(ISNUMBER('ALL PMRs 2007'!B$3:B$65536)),--(MONTH('ALL PMRs
2007'!B$3:B$65536)=1))

However now I need to make sure 2007 data for Jan,Feb, March etc is
seperated from the new 2008 data.

How can this be done?

--
Neall

Carim[_2_]

=SUMPRODUCT but need to break out Jan 07 and Jan 08 results
 
Hi,

You can add a condition on the year ...
where is it located ?

merjet

=SUMPRODUCT but need to break out Jan 07 and Jan 08 results
 
Try similar to this:
=SUMPRODUCT(--(MONTH(Sheet1!$A$3:$A$31)=MONTH(Sheet1!A3)), --
(YEAR(Sheet1!$A$3:$A$31)=YEAR(Sheet1!A3)))

Change sheet name and ranges to suit.

Hth,
Merjet

Matthew Pfluger

=SUMPRODUCT but need to break out Jan 07 and Jan 08 results
 
MrExcel's podcast from yesterday dealt with a similar issue to this. It
proved very helpful to me.

http://mrexcel.libsyn.com/media/mrexcel/podcast662a.mp4

HTH,
Pflugs

"Neall" wrote:

I am currently using

=SUMPRODUCT(--(ISNUMBER('ALL PMRs 2007'!B$3:B$65536)),--(MONTH('ALL PMRs
2007'!B$3:B$65536)=1))

However now I need to make sure 2007 data for Jan,Feb, March etc is
seperated from the new 2008 data.

How can this be done?

--
Neall


Bob Phillips

=SUMPRODUCT but need to break out Jan 07 and Jan 08 results
 
Wouldn't your 2008 numbers be in the 2006 worksheet, thereby ... no problem?

--
---
HTH

Bob


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



"Neall" wrote in message
...
I am currently using

=SUMPRODUCT(--(ISNUMBER('ALL PMRs 2007'!B$3:B$65536)),--(MONTH('ALL PMRs
2007'!B$3:B$65536)=1))

However now I need to make sure 2007 data for Jan,Feb, March etc is
seperated from the new 2008 data.

How can this be done?

--
Neall




Neall

=SUMPRODUCT but need to break out Jan 07 and Jan 08 results
 
Thanks, maybe I am missing something but it doesnt seem to be working

here is what I am using

=SUMPRODUCT(--(MONTH('ALL PMRs 2007'!B$3:B$65536)=1*('ALL PMRs 2007'!B$3)),--
(YEAR('ALL PMRs 2007'!B$3:B$65536)=2007*('ALL PMRs 2007'!B$3)))


--
Neall


"merjet" wrote:

Try similar to this:
=SUMPRODUCT(--(MONTH(Sheet1!$A$3:$A$31)=MONTH(Sheet1!A3)), --
(YEAR(Sheet1!$A$3:$A$31)=YEAR(Sheet1!A3)))

Change sheet name and ranges to suit.

Hth,
Merjet


merjet

=SUMPRODUCT but need to break out Jan 07 and Jan 08 results
 
=SUMPRODUCT(--(MONTH('ALL PMRs 2007'!B$3:B$65536)=1*('ALL PMRs 2007'!B$3)),--
(YEAR('ALL PMRs 2007'!B$3:B$65536)=2007*('ALL PMRs 2007'!B$3)))


I expect it will work if you delete *('ALL PMRs 2007'!B$3) in two
places.
But I expected you wanted variables instead of 1 and 2007 so you
could
copy the formula to other rows. The above won't work with a date in
B3. You need to extract the month and year from the date.

Hth,
Merjet

Neall

=SUMPRODUCT but need to break out Jan 07 and Jan 08 results
 
Sorry I might be confusing you here, I have one Column with all dates
starting from Jan 07 (format is 13/02/2007 16:38) so I think option 2 that
you had described is what I need

I want to seperate and display the previous years data against this years.

--
Neall


"merjet" wrote:

=SUMPRODUCT(--(MONTH('ALL PMRs 2007'!B$3:B$65536)=1*('ALL PMRs 2007'!B$3)),--
(YEAR('ALL PMRs 2007'!B$3:B$65536)=2007*('ALL PMRs 2007'!B$3)))


I expect it will work if you delete *('ALL PMRs 2007'!B$3) in two
places.
But I expected you wanted variables instead of 1 and 2007 so you
could
copy the formula to other rows. The above won't work with a date in
B3. You need to extract the month and year from the date.

Hth,
Merjet



All times are GMT +1. The time now is 09:14 PM.

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