How to fix the #Spill! error when using the Filter function

Gpaul

New Member
Joined
Feb 15, 2022
Messages
8
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I am trying to use the Filter function to pull a subset of just the ID's and Names from the first table if the are a producer (in column D) and populate the subset into the first 2 columns of the second table. I am getting the #Spill error and I think it is because I am using 2 tables. If I use the below formula and use it on another tab thats not a table it works fine.

Any ideas??? I can't figure out a solution.

The formula that I am using = =FILTER($A$4:$B$35,$D$4:$D$35 = "Producer")





1661978683559.png
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hitting F9 shows the formula is calculating correctly....however it is erroring out when it try's to display the results

={"10000496","Test 1";"10001948","Test 2";"10001949","Test 3";"10001950","Test 4";"10000514","Test 9";"10000517","Test 10";"10001875","Test 11";"10000502","Test 12";"10000504","Test 17";"10000527","Test 18";"10000975","Test 19";"10000531","Test 20"}
 
Upvote 0
Do you want to keep it in a table? Then you have to pick a single item for a single table row. Otherwise, remove the table (and also any cell interfering with the dotted spill range).
 
Upvote 0
Yes it is a budget workbook and each tab is a table. Not sure what you mean by pick a single item for a single table row. I did find on a google search that arrays don't work in a table??
 
Upvote 0
Yes, they do not work on tables, so remove the table. Or, "pick a single item" with the Index(array,row,column) format.
 
Upvote 0
Why not just convert Table2 into a range?
 
Upvote 0
@Fluff
I have to have it as a table as it is part of an import into a SQL data base. Not optimal but I did just do the calculation to the side of the table and referenced the results.

Thanks for everyone's responses!
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 0
To keep it in one table
1662049064531.png


G4 :
Excel Formula:
=INDEX(FILTER($A$4:$B$35,$D$4:$D$35 = "Producer"),ROW()-3,1)
G5 :
Excel Formula:
=INDEX(FILTER($A$4:$B$35,$D$4:$D$35 = "Producer"),ROW()-3,2)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,636
Messages
6,173,484
Members
452,516
Latest member
archcalx

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