SUMPRODUCT fails because of #REF values

alphaexcel

Board Regular
Joined
Apr 21, 2008
Messages
87
The sumproduct I am using fails because items in the final range contain the #REF error. These items do not need to be included in the count in any case as they would never meet the criteria specified in the 2 rows previous, which the sumproduct bases the calculation on. Any ideas?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi,

If the Array is not required then I would assume removing it would be best, Are you 100% sure what ever used to be there was not important?

Can you possibly post your code If removing the Array doesn't work for you?
 
Upvote 0
You have to use an array formula. Here is an example, look starting with the bold red:

Excel Workbook
ABCD
1160c
2255a
3389c
4471c
5551b
6686b
7773a390
8889a
99#REF!b
101071a
111175c
121289a
131384c
1414#REF!a
151568a
Sheet1
 
Upvote 0
Perhaps you could correct the formulas in column B to NOT return the Ref Error...

=IF(ISERROR(orignalformula),"",originalformula)
 
Upvote 0
Any ideas?

What's your current formula?

Assuming your are summing column C based on criteria in columns A and B, column C may contain errors but not in rows where both criteria are met try something like

=SUM(IF(A1:A10="x",IF(B1:B10="y",C1:C10)))

confirmed with CTRL+SHIFT+ENTER
 
Last edited:
Upvote 0
Is there any way round this, other than using the Ctrl+Shift+Enter...i really dont like using these array formulae, hence the use of SUMPRODUCT.

Thanks
 
Upvote 0
Either fix the #REF errors, or if they carry some significance, create another column where you have a non-array version of what jonmo suggested, then do SUMPRODUCT on that column.
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,559
Members
448,970
Latest member
kennimack

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