Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default sumproduct error

Hi,

I cant seem to get this working. Farely simple I think. Im trying to
have sumproduct sum what corresponds to a specific number. Here is my
example:

Im getting a #VALUE error. Any thoughts?

In this example the C cell should give the sum of all 2010's (=30)

A B C
2010 2 =SUMPRODUCT(--($A$1:$B$24="2010"),$B$1:$B$24)
2011 3
2012 4
2013 5
2014 6
2015 7
2016 8
2017 9
2010 10
2011 11
2012 12
2013 13
2014 14
2015 15
2016 16
2017 17
2010 18
2011 19
2012 20
2013 21
2014 22
2015 23
2016 24
2017 25
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,059
Default sumproduct error

On Mar 7, 10:01*am, LUIS ANGEL wrote:
Im getting a #VALUE error. Any thoughts?
In this example the C cell should give the sum of all 2010's (=30)
A * * * * * * * *B * * * * * * C
2010 * *2 * * * * * *=SUMPRODUCT(--($A$1:$B$24="2010"),$B$1:$B$24)
2011 * *3


First, the formula should be at least:

=SUMPRODUCT(--($A$1:$A$24="2010"),$B$1:$B$24)

Note the change in the first range.

Second, if A1:A24 contains numbers (most likely), the formula should
be:

=SUMPRODUCT(--($A$1:$A$24=2010),$B$1:$B$24)

Note: no quotes around 2010.

Finally, you can use SUMIF in this case, and it would be better to do
so. To wit:

=SUMIF($A$1:$A$24,2010,$B$1:$B$24)
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
another sumproduct with #value error... Maya[_2_] Excel Worksheet Functions 5 September 21st 09 02:19 PM
SUMPRODUCT Error Curtis Excel Worksheet Functions 2 August 28th 09 02:37 PM
Sumproduct value error Brad Excel Worksheet Functions 7 October 31st 06 09:47 PM
Sumproduct error Curtis Excel Worksheet Functions 2 October 29th 06 10:18 PM
Sumproduct #num error Dominique Feteau Excel Worksheet Functions 2 December 19th 04 09:43 PM


All times are GMT +1. The time now is 10:46 PM.

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

About Us

"It's about Microsoft Excel"