How to fix Filter formula #SPILL! error by change to use the VBA

alantse2010

New Member
Joined
Jun 9, 2018
Messages
34
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
Hi all, i am trying to use filter formula to filter out the result, it works, but if every row use this formula, it will cause #spill! error as sometimes return more than one result

May i know is there have any method to update the formula for auto insert the row to avoid #spill? error in using filter formula. Is VBA ok?

Thank you very much for your help.

IT platform_V4.7_LT.xlsm
ABC
18Po#PO issue DatePemrit Reference
194501296136Friday, 28 August 2020WELT2018-0348-01
20#SPILL!#SPILL!WELT2018-0348-02
21#SPILL!#SPILL!WELT2018-0348-03
Project Management Protocol
Cell Formulas
RangeFormula
A19:A21A19=IF(ISBLANK(C19),"",IFERROR(IFERROR(FILTER(FILTER('https://my.shareppoint.com/sites/abc/[Master PO List_LTV0.xlsm]Sheet1'!$B$4:$G$500000,'https://my.shareppoint.com/sites/abc/[Master PO List_LTV0.xlsm]Sheet1'!$G$4:$G$500000=C19,""),{1,0,0,0,0,0}),FILTER(FILTER('https://my.shareppoint.com/sites/abc/[Master PO List_LTV0.xlsm]Sheet1'!$B$4:$G$500000,'https://my.shareppoint.com/sites/abc/[Master PO List_LTV0.xlsm]Sheet1'!$G$4:$G$500000=C19,""),{1,0,0,0,0,0})),"Pending"))
B19:B21B19=IF(ISBLANK(C19),"",IFERROR(IFERROR(FILTER(FILTER('https://my.shareppoint.com/sites/abc/[Master PO List_LTV0.xlsm]Sheet1'!$B$4:$G$500000,'https://my.shareppoint.com/sites/abc/[Master PO List_LTV0.xlsm]Sheet1'!$G$4:$G$500000=C19,""),{0,0,0,1,0,0}),FILTER(FILTER('https://my.shareppoint.com/sites/abc/[Master PO List_LTV0.xlsm]Sheet1'!$B$4:$G$500000,'https://my.shareppoint.com/sites/abc/[Master PO List_LTV0.xlsm]Sheet1'!$G$4:$G$500000=C19,""),{0,0,0,1,0,0})),"Pending"))
C19:C21C19=IF(ISBLANK(B3),"",FILTER(FILTER('https://my.shareppoint.com/sites/abc/[Permit (LT).xlsm]Permit Detail'!$F$3:$H$500000,'https://my.shareppoint.com/sites/abc/[Permit (LT).xlsm]Permit Detail'!$F$3:$F$500000=B3,""),{0,0,1}))
Dynamic array formulas.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
To avoid the SPILL error, your formula should only return a single value. Can you wrap your formula in MAX, MIN, or another function to return a single value? The data you supplied references a Sharepoint spreadsheet so we cannot use your data. Your formula may be too complicated, there is an ISBLANK, two IFERRORS, and four FILTER functions in a single formula.

If you can provide data that can be used by others, I am positive someone can help you find a solution.

Hope that helps,

Doug
 
Upvote 1
Solution
To avoid the SPILL error, your formula should only return a single value. Can you wrap your formula in MAX, MIN, or another function to return a single value? The data you supplied references a Sharepoint spreadsheet so we cannot use your data. Your formula may be too complicated, there is an ISBLANK, two IFERRORS, and four FILTER functions in a single formula.

If you can provide data that can be used by others, I am positive someone can help you find a solution.

Hope that helps,

Doug
Thank you for your reply.
I wrapped my formula to return a single value.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,226
Members
452,620
Latest member
dsubash

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