Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default =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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default =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 ?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default =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
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default =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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default =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


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default =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

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default =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

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default =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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Abrupt change in formula results using sumproduct mbeemom Excel Worksheet Functions 4 January 8th 09 07:27 PM
Setting Parameters for SUMPRODUCT Results J and N Excel Worksheet Functions 2 October 4th 08 03:57 AM
Convert to Binary and Break out results DCLittlejohn Excel Worksheet Functions 10 August 28th 08 01:23 AM
Sumproduct not returning expected results Dos Equis Excel Worksheet Functions 8 January 4th 07 04:12 PM
CONDITIONAL RESULTS DEPENDING ON CELL'S NAME (sumproduct) HERNAN Excel Discussion (Misc queries) 4 September 5th 06 09:02 PM


All times are GMT +1. The time now is 05:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"