#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JN JN is offline
external usenet poster
 
Posts: 29
Default SUMPRODUCT

I have 3 col of information:
Col A=dates
Col B=acct numbers
Col 3=currency

I'm trying to find the sum of Col 3 based on a date range in Col A and
certain numbers in Col B

Col A Col B Col C
12/19/06 42016 500
01/03/07 42011 200
03/15/07 42011 150
03/31/07 42011 10


If the question was: Total of Col C during Jan-Mar 2007 in acct 42011 or
42012
Answer: 160

Here is what I was trying to use and am getting #VALUE! error:
=SUMPRODUCT((A1:A4=< 39172)*((F1:F4={42011,42012})*(C2:C500)))


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default SUMPRODUCT

All the range sizes must be the same

=SUMPRODUCT((A1:A4=< 39172)*((F1:F4={42011,42012})*(C1:C4)))

would be valid

and is answer 360?

"JN" wrote:

I have 3 col of information:
Col A=dates
Col B=acct numbers
Col 3=currency

I'm trying to find the sum of Col 3 based on a date range in Col A and
certain numbers in Col B

Col A Col B Col C
12/19/06 42016 500
01/03/07 42011 200
03/15/07 42011 150
03/31/07 42011 10


If the question was: Total of Col C during Jan-Mar 2007 in acct 42011 or
42012
Answer: 160

Here is what I was trying to use and am getting #VALUE! error:
=SUMPRODUCT((A1:A4=< 39172)*((F1:F4={42011,42012})*(C2:C500)))


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default SUMPRODUCT

Firstly: Your total is 360 not 160
Secondly: You've looked in column F where your data is in column B
Thirdly: You want the array in column C to correspond to those in columns A
and B

So far, try =SUMPRODUCT((A1:A4<=39172)*((B1:B4={42011,42012})* (C1:C4)))

Fourthly, you haven't tested for the lower limit on date.
Fifthly, ... [I haven't looked that far.]
--
David Biddulph

"JN" wrote in message
...
I have 3 col of information:
Col A=dates
Col B=acct numbers
Col 3=currency

I'm trying to find the sum of Col 3 based on a date range in Col A and
certain numbers in Col B

Col A Col B Col C
12/19/06 42016 500
01/03/07 42011 200
03/15/07 42011 150
03/31/07 42011 10


If the question was: Total of Col C during Jan-Mar 2007 in acct 42011 or
42012
Answer: 160

Here is what I was trying to use and am getting #VALUE! error:
=SUMPRODUCT((A1:A4=< 39172)*((F1:F4={42011,42012})*(C2:C500)))




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default SUMPRODUCT

A better solution .....check for start/end period rather than "less than" test

=SUMPRODUCT(($A$1:$A$4=DATE(2007,1,1))*($A$1:$A$4 <=DATE(2007,3,31))*($F$1:$F$4={42011,42012})*($C$1 :$C$4))

"JN" wrote:

I have 3 col of information:
Col A=dates
Col B=acct numbers
Col 3=currency

I'm trying to find the sum of Col 3 based on a date range in Col A and
certain numbers in Col B

Col A Col B Col C
12/19/06 42016 500
01/03/07 42011 200
03/15/07 42011 150
03/31/07 42011 10


If the question was: Total of Col C during Jan-Mar 2007 in acct 42011 or
42012
Answer: 160

Here is what I was trying to use and am getting #VALUE! error:
=SUMPRODUCT((A1:A4=< 39172)*((F1:F4={42011,42012})*(C2:C500)))


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JN JN is offline
external usenet poster
 
Posts: 29
Default SUMPRODUCT

This works perfectly - please excuse my errors due to copying from my
original spreadsheet (columns were wrong and sum was in fact 360). My
problem was the format - the entries in col F (on my original) were formatted
as General, not Number so I couldn't calculate unless I put the quotes around
them ("42011","42012") HOWEVER I've never seen the start/end period as you
have it and that is absolutely the BEST! Thank you so very, very much!

"Toppers" wrote:

A better solution .....check for start/end period rather than "less than" test

=SUMPRODUCT(($A$1:$A$4=DATE(2007,1,1))*($A$1:$A$4 <=DATE(2007,3,31))*($F$1:$F$4={42011,42012})*($C$1 :$C$4))

"JN" wrote:

I have 3 col of information:
Col A=dates
Col B=acct numbers
Col 3=currency

I'm trying to find the sum of Col 3 based on a date range in Col A and
certain numbers in Col B

Col A Col B Col C
12/19/06 42016 500
01/03/07 42011 200
03/15/07 42011 150
03/31/07 42011 10


If the question was: Total of Col C during Jan-Mar 2007 in acct 42011 or
42012
Answer: 160

Here is what I was trying to use and am getting #VALUE! error:
=SUMPRODUCT((A1:A4=< 39172)*((F1:F4={42011,42012})*(C2:C500)))




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
HELP ON SUMPRODUCT Eddy Stan Excel Worksheet Functions 3 July 27th 06 05:51 AM
Sumproduct W-t-d edwardpestian Excel Worksheet Functions 4 July 23rd 06 06:05 PM
Help with SUMPRODUCT FrankTimJr Excel Discussion (Misc queries) 4 October 12th 05 04:27 PM
Sumproduct................. Kstalker Excel Worksheet Functions 8 September 12th 05 11:04 PM
Sumproduct? imjustme Excel Discussion (Misc queries) 1 September 7th 05 03:43 AM


All times are GMT +1. The time now is 02:25 AM.

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"