SUMPRODUCT issues

nujwaan

New Member
Joined
Nov 12, 2010
Messages
26
Hey guys,

So here's my issue. I've got a table which I am using a SUMPRODUCT formula to pull back a value from one sheet called Raw in say column P based on the columns D and E to another sheet.

In this case column P is a formula working out cost per unit and so the formula in P4 is '=E4/F4'. When I try and get this value I get a DIV/0! error. This is even though there is a value of $0.07 in Cell P4 that should be pulled back.

Here is the formula I am using:

=SUMPRODUCT(('Raw'!$D$4:$D$1048576=$A5)*('Raw'!$E$4:$E$1048576=Sheet5!D$33)*'Raw'!$P$4:$P$1048576)

Any ideas??
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hey guys,

So here's my issue. I've got a table which I am using a SUMPRODUCT formula to pull back a value from one sheet called Raw in say column P based on the columns D and E to another sheet.

In this case column P is a formula working out cost per unit and so the formula in P4 is '=E4/F4'. When I try and get this value I get a DIV/0! error. This is even though there is a value of $0.07 in Cell P4 that should be pulled back.

Here is the formula I am using:

=SUMPRODUCT(('Raw'!$D$4:$D$1048576=$A5)*('Raw'!$E$4:$E$1048576=Sheet5!D$33)*'Raw'!$P$4:$P$1048576)

Any ideas??

In P4 try:

=IF(N(F4),E4/F4,0)

You could switch here to SumIfs, which is faster...

=SUMIFS('Raw'!$P$4:$P$1048576,'Raw'!$D$4:$D$1048576,$A5,'Raw'!$E$4:$E$1048576,Sheet5!D$33)
 
Upvote 0
If there are any errors in the ranges that SUMPRODUCT looks at, then the entire formula will error.

I would recommend correcting the #DIV/0 errors by changing their formulas to:

=IF(F4=0,"",E4/P4)
 
Upvote 0
=N() converts a non-number value to a number, dates to serials, TRUE to 1, and anything else to 0.
 
Upvote 0
Hey guys,

So here's my issue. I've got a table which I am using a SUMPRODUCT formula to pull back a value from one sheet called Raw in say column P based on the columns D and E to another sheet.

In this case column P is a formula working out cost per unit and so the formula in P4 is '=E4/F4'. When I try and get this value I get a DIV/0! error. This is even though there is a value of $0.07 in Cell P4 that should be pulled back.

Here is the formula I am using:

=SUMPRODUCT(('Raw'!$D$4:$D$1048576=$A5)*('Raw'!$E$4:$E$1048576=Sheet5!D$33)*'Raw'!$P$4:$P$1048576)

Any ideas??
You may have other cells in col P that contain #DIV/0! errors.

Try this...

=SUMIFS(Raw!P:P,Raw!D:D,A5,Raw!E:E,Sheet5!D33,Raw!P:P,"<1E100")
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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