#1   Report Post  
Annette
 
Posts: n/a
Default Sum Criteria

I used the following:
=SUMPRODUCT(--(Sheet1!B:B="WARRANT"),--(Sheet1!F:F="E"),--Sheet1!C:C)

.... if there is WARRANT in cell in Col B and Col F contains an "E", then add
all the sums in column B that match these specifications ... but it is not
adding up my amounts in col C ... am I using the wrong formula?


  #2   Report Post  
RagDyeR
 
Posts: n/a
Default

SumProduct does *not* work with entire column (B:B, F:F) references!

Revise to B1:B65000 if necessary.
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Annette" wrote in message
...
I used the following:
=SUMPRODUCT(--(Sheet1!B:B="WARRANT"),--(Sheet1!F:F="E"),--Sheet1!C:C)

.... if there is WARRANT in cell in Col B and Col F contains an "E", then add
all the sums in column B that match these specifications ... but it is not
adding up my amounts in col C ... am I using the wrong formula?



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

First, you can't use entire columns in array formulae (which SUMPRODUCT
is, even if you don't have to use CTRL-SHIFT-ENTER). Second, the "--" is
only necessary to convert boolean values to numeric (see

http://www.mcgimpsey.com/excel/doubleneg.html

for an explanation). Third, I assume you really meant "add all the sums
in column C", not B. Try something like:

=SUMPRODUCT(--(Sheet1!B1:B1000="WARRANT"),--(Sheet1!F1:F1000="E"),
Sheet1!C1:C1000)

In article ,
"Annette" wrote:

I used the following:
=SUMPRODUCT(--(Sheet1!B:B="WARRANT"),--(Sheet1!F:F="E"),--Sheet1!C:C)

... if there is WARRANT in cell in Col B and Col F contains an "E", then add
all the sums in column B that match these specifications ... but it is not
adding up my amounts in col C ... am I using the wrong formula?

  #4   Report Post  
Annette
 
Posts: n/a
Default

Thanks for the two quick responses ... I have corrected the problem with
your assistance.
"JE McGimpsey" wrote in message
...
First, you can't use entire columns in array formulae (which SUMPRODUCT
is, even if you don't have to use CTRL-SHIFT-ENTER). Second, the "--" is
only necessary to convert boolean values to numeric (see

http://www.mcgimpsey.com/excel/doubleneg.html

for an explanation). Third, I assume you really meant "add all the sums
in column C", not B. Try something like:

=SUMPRODUCT(--(Sheet1!B1:B1000="WARRANT"),--(Sheet1!F1:F1000="E"),
Sheet1!C1:C1000)

In article ,
"Annette" wrote:

I used the following:
=SUMPRODUCT(--(Sheet1!B:B="WARRANT"),--(Sheet1!F:F="E"),--Sheet1!C:C)

... if there is WARRANT in cell in Col B and Col F contains an "E", then

add
all the sums in column B that match these specifications ... but it is

not
adding up my amounts in col C ... am I using the wrong formula?



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
Max value that meets a criteria David Burr Excel Worksheet Functions 6 February 16th 05 01:31 PM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM
"criteria" in a sumif refering to the value in another cell mark Excel Discussion (Misc queries) 1 January 31st 05 07:39 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM


All times are GMT +1. The time now is 08:43 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"