SUMPRODUCT or SUMIF

imback2nite

Board Regular
Joined
Oct 30, 2004
Messages
203
Office Version
  1. 2003 or older
Platform
  1. Windows
Hello and thank you for any answers. I have a problem with SUMPRODUCT. I'm using Excel 2003, ancient I know but it's what I have. I'm trying to use =SUMPRODUCT(--(C15:C742="(AW)"),(D15:K742)). The C15:C742 is where the "(AW)" will reside but I get an #VALUE error. Then I use what I thought would work,=SUMPRODUCT(--(C15:J742="(AW)"),(D15:K742)). This will give me a value but from only "D15:D742" column instead of the "D15:K742. The criteria is in the "C" column and the area to be summed is in "D:J" columns. Is the because I'm using Excel 2003? I can use =SUMIF($C:$C,"(AW)",$D:$D)+SUMIF($C:$C,"(AW)",$E:$E)+SUMIF($C:$C,"(AW)",$F:$F)+SUMIF($C:$C,"(AW)",$G:$G)+SUMIF($C:$C,"(AW)",$H:$H)+SUMIF($C:$C,"(AW)",$I:$I)+SUMIF($C:$C,"(AW)",J:J) But I'd like the SUMPRODUCT instead unless there is a reason not to. Any help would be appreciated.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
There are 2 kind of using SUMPRODUCT
=SUMPRODUCT(range1,range2)
(one-one relationship)

or
=SUMPRODUCT(range1*range2)
(one-many relationship)

if range1 size <> range2 size, only 2nd one works.

Try:
Code:
=SUMPRODUCT((C15:J742="(AW)")*D15:K742)
 
Upvote 0
Try
Excel Formula:
=SUMPRODUCT((C15:C742="(AW)")*(D15:K742))
 
Upvote 0
Yes, I've tried both of those and I get a #VALUE error.
 
Upvote 0
Excel Formula:
=SUMPRODUCT((C15:J742="(AW)")*IF(ISERROR(D15:K742+0),0,D15:K742))

Confirmed with Ctrl-Shift-Enter combination
 
Upvote 0
Try.
Excel Formula:
=SUMPRODUCT((C15:C742="(AW)")*(D15:K742))
 
Upvote 0
bebo12999 I thought of that but I do get a value with =SUMPRODUCT(--(C15:J742="(AW)"),(D15:K742)) but only sums the 'D' column. Otherwise I just keep getting #VALUE errors.
 
Upvote 0
bebo12999 I thought of that but I do get a value with =SUMPRODUCT(--(C15:J742="(AW)"),(D15:K742)) but only sums the 'D' column. Otherwise I just keep getting #VALUE errors.
As I have mentioned in #2, the two ranges are not same size then it does not work.
Have you tried mine in #6?
 
Upvote 0
Put this in a vacant cell and tell us what the result is.
Excel Formula:
=COUNTA(D15:K742)-COUNT(D15:K742)
 
Upvote 0

Forum statistics

Threads
1,215,494
Messages
6,125,139
Members
449,207
Latest member
VictorSiwiide

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top