SUMPRODUCT #SPILL! Error

SaraWitch

Active Member
Joined
Sep 29, 2015
Messages
322
Office Version
  1. 365
Platform
  1. Windows
Hello peeps,

I am trying to sum a column of figures in another workbook between two dates and based on text in two other different columns (but still in the other workbook). The closest formula I've got to is giving a #SPILL! error and I can't figure out how to fix it. The formula is:

=SUMPRODUCT('[Workbook A]'Sheet 1'!$BK:$BK)*('[Workbook A]'Sheet 1'!$BD:$BD<=H$2)*('[Workbook A]'Sheet 1'!$BD:$BD>=C$2)*'[Workbook A]'Sheet 1'!$F:$F="EBC")*('[Workbook A]'Sheet 1'!$H:$H="General Needs")

BK is the figure I want to sum from other workbook.
BD is the date I want to select from other workbook.
H is the finish date in current workbook.
C is the start date in current workbook.
F is the first text match in other workbook
H is the second text match in other workbook.

I hope this makes sense for someone to know what I'm doing wrong! Of course, let me know if clarification is needed...

Ta muchly, folks! :)
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You are missing some brackets, try
Excel Formula:
=SUMPRODUCT(('[Workbook A]Sheet 1'!$BK:$BK)*('[Workbook A]Sheet 1'!$BD:$BD<=H$2)*('[Workbook A]Sheet 1'!$BD:$BD>=C$2)*('[Workbook A]Sheet 1'!$F:$F="EBC")*('[Workbook A]Sheet 1'!$H:$H="General Needs"))
Although you should avoid using whole column references with a formula like that.
 
Upvote 0
Thank you @Fluff! Only thing is, I'm getting #VALUE! now...? I added row range in case the whole column formula was the cause, but still getting error.
 
Upvote 0
Do you have any text values in column BK including any formulae that return ""
 
Upvote 0
I have a formula in BK that looks at two other columns:

=IF(ISERROR(($X34/7)*$BI34),"",($X34/7)*$BI34)
 
Upvote 0
That is the problem "" is text. Does this need to work in 2010, or just 365?
 
Upvote 0
Probably just 365 (I think most users have now been transitioned!).
 
Upvote 0
Ok, try this
Excel Formula:
=SUM(FILTER('[Workbook A]Sheet 1'!$BK:$BK,('[Workbook A]Sheet 1'!$BD:$BD<=H$2)*('[Workbook A]Sheet 1'!$BD:$BD>=C$2)*('[Workbook A]Sheet 1'!$F:$F="EBC")*('[Workbook A]Sheet 1'!$H:$H="General Needs")))
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,332
Messages
6,124,314
Members
449,153
Latest member
JazzSingerNL

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