Forum Discussion
Spill Error in Excel when using Table format.
Hi,
I keep getting the #Spill Error when using the dynamic Xlookup function.This only happens when I use the Table format i.e.does not happen when I change the Table to a Range.
I tried looking it up onGoogle but it clearly says "Spilled array formulas aren't supported in https://support.office.com/en-us/article/overview-of-excel-tables-7ab0bb7d-3a9e-4b56-a3c9-6c94334e492c. Try moving your formula out of the table, or converting the table to a range (click Table Design > Tools > Convert to range)"
Is there any work around to not get a Spill Error using the Table format ??
Thanks and Regards.
Aspi.
17 Replies
- PeterBartholomew1Silver Contributor
I see little benefit in hybridising list and array technologies (Table and Dynamic Arrays) but, if you are desperate to do that, you could look up terms of the dynamic array one by one to bring into the table.
= INDEX(filtered#, [@index])
The dynamic array can either be a helper range or could be recalculated in its entirety, once for every row of the table.
- mathetesSilver Contributor
I use array formulas retrieving data from Excel Tables frequently (ever since gaining access to the Dynamic Array functions).
My experience with the SPILL error is that it occurs when some cell or cells are occupied with data and in the way of the results of the array function spilling out to its fllest extent.
Are you using the formula IN the table itself? I can imagine that wouldn't work; never occurred to me to try it. They're excellent when retrieving data FROM an Excel Table.
So maybe you could clarify exactly what you're doing and wanting to do....
- PeterBartholomew1Silver Contributor
I agree with mathetes
For an array formula to work within a Table it must return only a single value; no spilling allowed. In such situations it can be useful to have the Table replicate the formula down the column to produce equivalent calculations for each record.
For array formulas that return multiple results as a spilt array, then one must place the formula outside the table, ideally with an intervening blank column (which can be reduced in width). As rows are added to the data table, the dynamic array formula will adjust accordingly if it involves a structured reference.
- akolah1966Copper Contributor
PeterBartholomew1 Hi Peter, thank you for your response. I now understand that I will need to have a blank column after my Table and then use the dynamic validation to get the unspilled results.
Regards
Aspi