Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dcd123
 
Posts: n/a
Default Multiple Criteria in SumProduct, N/A Result


I am running SUMPRODUCT with 3 criteria, 2 are on another sheet and one
of those two is searching for a portion of the cell content. I am
getting #N/A as the result. Can anyone tell me why?

Here is my formula:

=SUMPRODUCT(ISNUMBER(SEARCH(" - D",'Discussed vs
Opened'!A1:AS1))*('Discussed vs
Opened'!C2:C1512=Summary!A3)*('Discussed vs Opened'!E2:AS1512="Yes"))

The first criteria is the one that contains only a portion of the cell
content and I'm wondering if the "-" is throwing it off. The criteria
reference in the second is a person's name (Summary!A3).

I hope this makes sense and that someone can help!!

Thanks!


--
dcd123
------------------------------------------------------------------------
dcd123's Profile: http://www.excelforum.com/member.php...o&userid=25396
View this thread: http://www.excelforum.com/showthread...hreadid=473799

  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

dcd,

One thing that immediately jumps out is that your ranges aren't balanced --- one is a row, one is a
column, and one is a block! SUMPRODUCT requires ranges of equal size, and of only 1 dimenstion (Row
or column).

What it looks like you are trying to do would actually require a row of formulas, along the lines
of:

=IF(ISNUMBER(SEARCH(" - D",'Discussed vs Opened'!E1)),
SUMPRODUCT(('Discussed vs Opened'!$C2:$C1512=Summary!A3)*
('Discussed vs Opened'!E2:E1512="Yes")),0)

copied to the right for 41 columns (or until E2:E1512 becomes AS2:AS1512)

and then sum those formulas...

If that isn't the case, then it would be better fopr you to explain what it is that you are actually
trying to do....

HTH,
Bernie
MS Excel MVP


"dcd123" wrote in message
...

I am running SUMPRODUCT with 3 criteria, 2 are on another sheet and one
of those two is searching for a portion of the cell content. I am
getting #N/A as the result. Can anyone tell me why?

Here is my formula:

=SUMPRODUCT(ISNUMBER(SEARCH(" - D",'Discussed vs
Opened'!A1:AS1))*('Discussed vs
Opened'!C2:C1512=Summary!A3)*('Discussed vs Opened'!E2:AS1512="Yes"))

The first criteria is the one that contains only a portion of the cell
content and I'm wondering if the "-" is throwing it off. The criteria
reference in the second is a person's name (Summary!A3).

I hope this makes sense and that someone can help!!

Thanks!


--
dcd123
------------------------------------------------------------------------
dcd123's Profile: http://www.excelforum.com/member.php...o&userid=25396
View this thread: http://www.excelforum.com/showthread...hreadid=473799



  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

=IF(ISNUMBER(SEARCH(" - D",'Discussed vs Opened'!E1)),
SUMPRODUCT(('Discussed vs Opened'!$C2:$C1512=Summary!$A$3)*
('Discussed vs Opened'!E2:E1512="Yes")),0)

would work better for copying....

Sorry about that.

HTH,
Bernie
MS Excel MVP


"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
dcd,

One thing that immediately jumps out is that your ranges aren't balanced --- one is a row, one is
a column, and one is a block! SUMPRODUCT requires ranges of equal size, and of only 1 dimenstion
(Row or column).

What it looks like you are trying to do would actually require a row of formulas, along the lines
of:

=IF(ISNUMBER(SEARCH(" - D",'Discussed vs Opened'!E1)),
SUMPRODUCT(('Discussed vs Opened'!$C2:$C1512=Summary!A3)*
('Discussed vs Opened'!E2:E1512="Yes")),0)

copied to the right for 41 columns (or until E2:E1512 becomes AS2:AS1512)

and then sum those formulas...

If that isn't the case, then it would be better fopr you to explain what it is that you are
actually trying to do....

HTH,
Bernie
MS Excel MVP


"dcd123" wrote in message
...

I am running SUMPRODUCT with 3 criteria, 2 are on another sheet and one
of those two is searching for a portion of the cell content. I am
getting #N/A as the result. Can anyone tell me why?

Here is my formula:

=SUMPRODUCT(ISNUMBER(SEARCH(" - D",'Discussed vs
Opened'!A1:AS1))*('Discussed vs
Opened'!C2:C1512=Summary!A3)*('Discussed vs Opened'!E2:AS1512="Yes"))

The first criteria is the one that contains only a portion of the cell
content and I'm wondering if the "-" is throwing it off. The criteria
reference in the second is a person's name (Summary!A3).

I hope this makes sense and that someone can help!!

Thanks!


--
dcd123
------------------------------------------------------------------------
dcd123's Profile: http://www.excelforum.com/member.php...o&userid=25396
View this thread: http://www.excelforum.com/showthread...hreadid=473799





  #4   Report Post  
dcd123
 
Posts: n/a
Default


I need the cell references to remain as they are, row, column, and
block. Is there another function that will accommodate this?


--
dcd123
------------------------------------------------------------------------
dcd123's Profile: http://www.excelforum.com/member.php...o&userid=25396
View this thread: http://www.excelforum.com/showthread...hreadid=473799

  #5   Report Post  
Zack Barresse
 
Posts: n/a
Default

No, not with your current structure.

--
Regards,
Zack Barresse, aka firefytr, (GT = TFS FF Zack)


"dcd123" wrote in
message ...

I need the cell references to remain as they are, row, column, and
block. Is there another function that will accommodate this?


--
dcd123
------------------------------------------------------------------------
dcd123's Profile:
http://www.excelforum.com/member.php...o&userid=25396
View this thread: http://www.excelforum.com/showthread...hreadid=473799





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

SUMPRODUCT()'s arguments aren't the problem. Since the ranges are
multiplied, they don't have to be balanced, since only the result of the
multiplication (in this case a rectangular range) is the argument to
SUMPRODUCT, not the individual ranges.

However, since the ranges are of different size (e.g, the Row, A1:AS1 is
4 columns wider than the block E2:AS1512), the multiplication of these
ranges will result in #N/A's filling the last 4 columns of the resulting
array, and therefore SUMPRODUCT() will also return #N/A.

This change works:

=SUMPRODUCT(('Discussed v Opened'!C2:C1512=Summary!A3) *
ISNUMBER(SEARCH(" - D",'Discussed vs Opened'!E1:AS1)) * ('Discussed vs
Opened'!E2:AS1512="Yes"))

but I don't know what the OP intended with the extra columns...



The In article ,
"Bernie Deitrick" <deitbe @ consumer dot org wrote:

One thing that immediately jumps out is that your ranges aren't balanced ---
one is a row, one is a
column, and one is a block! SUMPRODUCT requires ranges of equal size, and of
only 1 dimenstion (Row
or column).

  #7   Report Post  
Harlan Grove
 
Posts: n/a
Default

dcd123 wrote...
I need the cell references to remain as they are, row, column, and
block. Is there another function that will accommodate this?


Here's your formula.

=SUMPRODUCT(ISNUMBER(SEARCH(" - D",'Discussed vs Opened'!A1:AS1))
*('Discussed vs Opened'!C2:C1512=Summary!A3)
*('Discussed vs Opened'!E2:AS1512="Yes"))

On their own, none of the criteria present a problem. Also, pairing the
middle criteria with either of the other two presents no problem.
However, the pairing the first and third criteria NECESSARILY results
in an error because the two ranges have different numbers of multiple
columns. Excel can't handle A1:S1 * E2:AS1512. It doesn't make sense.
What would the extra columns in the former correspond to in the latter?

There may be a way to do what you want, but you're going to have to
explain it IN PROSE, not with formulas.

  #8   Report Post  
dcd123
 
Posts: n/a
Default


Thanks, JE. You pointed out my lack of attention to detail in this
formula. The extra columns were unnecessary and making that change
made the difference!!!!


--
dcd123
------------------------------------------------------------------------
dcd123's Profile: http://www.excelforum.com/member.php...o&userid=25396
View this thread: http://www.excelforum.com/showthread...hreadid=473799

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
How do I Provide a specific result given multiple criteria? Luis Excel Worksheet Functions 1 July 14th 05 09:17 PM
COUNTIF or SUMPRODUCT counting multiple criteria Peo Sjoblom Excel Worksheet Functions 0 May 31st 05 11:40 PM
Using Sumproduct with multiple Criteria Mark Jackson Excel Worksheet Functions 1 May 6th 05 10:07 PM
sumproduct using multiple criteria tifosi3 Excel Worksheet Functions 2 January 6th 05 08:46 PM
Sumproduct - multiple criteria in Column A briank Excel Worksheet Functions 2 January 6th 05 06:44 PM


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