The #SPILL! error in Excel is quite common and fixing it is quite simple. Here is how to fix the #SPILL! error easily in Excel .

Microsoft Excel offers features that make managing data in spreadsheets easy. However, it also occasionally causes errors.
#SPILL! is an error that appears even when the formula has the correct syntax and conditions. If you encounter the #SPILL! error in a cell in your spreadsheet, follow these steps.
What is the #SPILL error in Excel?
The first step to fixing the #SPILL error in Excel is to understand the condition that causes it. Microsoft Excel is used with different formulas, which open up many powerful features. One type called array formulas applies a function to a range of cells instead of just one cell.

In newer versions of Excel, array formulas automatically expand to fit the space needed for the formula to work. This is called the spill range. In a spill range, other related cells that do not directly contain an array formula are highlighted in gray in the formula bar.

An array formula needs enough space to “spill over” data, so if these cells are unavailable or broken, the formula cannot function properly. This is the most common cause of the #SPILL error! Whenever an array formula is executed in a range that overlaps existing data, the #SPILL error occurs.
Also, you face this error for the same reason if the spill area includes merged cells, the array size is not a fixed value.
How to fix #SPILL! error in Excel
This error may sound “tricky,” but it’s actually pretty simple to fix once you know what’s causing it. Luckily, Excel will tell you what’s causing the problem right next to the formula. All you have to do is select the cell and click the warning sign next to it. Once you’ve identified the cause, you can take steps to fix #SPILL! errors in Excel.

If there is an interference in the spill range, you should first try to move or delete the data that interferes with the formula. Alternatively, you can move the array formula to a range that has enough space to contain the spill range.

If the merged cells interfere with the array's spill, you need to find and unmerge the cells. You can do this by selecting the merged cells and clicking Merge and Center > Unmerge Cells on the Home tab.
Another type of #SPILL! error occurs when Excel can't calculate and match the absolute size of the output value. Normally, you wouldn't need a function that returns billions of values. In cases like this, the formula itself can cause this problem. You'll need to edit the formula so that it outputs a much smaller, consistent array.
If you can't find any other reason why the formula isn't working, double-check the formula you entered to make sure all of the required arguments in the function are entered correctly.
Once the array formula has enough room to run again, it will automatically recalculate. You can now return to your work without any further problems. If the formula does not automatically recalculate, it may have been calculated manually initially. You can force it to recalculate by pressing F9 on your keyboard.
Above are the simplest ways to fix the #SPILL! error in Excel . Hope the article is useful to you.