Fix Excel #SPILL! Errors in Dynamic Purchase Order and Invoice Reports
Question details
The user needs to create a dynamic report that lists purchase orders and invoices by Work Number or Project Code without triggering a #SPILL! error.
- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A dynamic-array formula returns a changing number of purchase order and invoice records in a report.
- Observed behavior
- Excel displays a #SPILL! error when cells in the formula's expected spill range contain content, formulas, or other obstructions.
Select the cell containing the dynamic-array formula and identify the full spill range Excel is trying to use. Check the cells below and beside the formula for values, formulas, merged cells, or other objects that could block the results.
Clear the blocked spill range below the dynamic report formula
Use this solution when the formula is on an existing worksheet and the cells needed for the dynamic results can be cleared.
Dynamic-array formulas automatically expand into adjacent cells. Any existing content in the expected spill range prevents Excel from displaying the results and causes #SPILL!.
Do not reserve a fixed number of blank rows for the report because the number of matching purchase orders and invoices may change over time.
Open the report in Excel and click the cell containing the dynamic-array formula that shows #SPILL!.
Use the warning icon beside the error and choose Select Obstructing Cells, or manually inspect the cells beneath and beside the formula.
Select the obstructing cells and use Home > Clear > Clear Contents. Delete unnecessary formulas, text, or objects from the expected spill range.
Press Enter after confirming the formula, or use Formulas > Calculate Now. The purchase order and invoice results should expand into the cleared cells.
Move the dynamic formula to a dedicated empty worksheet
Use this approach when the report needs room to grow or the original worksheet contains fixed content below the formula.
Build dynamic purchase order and invoice reports with a lightweight Excel alternative
WPS Office provides a free, lightweight spreadsheet experience with a familiar interface and support for Microsoft Excel workbooks. It can help you migrate reporting workflows while preserving commonly used XLS and XLSX files for seamless collaboration and sharing.
- 1. Install WPS Office: Download and install WPS Office, then open WPS Spreadsheets from the main workspace.
- 2. Open the existing workbook: Choose Open from the WPS home screen and select the Microsoft Excel XLS or XLSX report file.
- 3. Review the report layout: Check the formula cells and leave sufficient unobstructed space for dynamic results on the report worksheet.
- 4. Save in a compatible format: Use Menu > Save As and select XLSX when you need to share the updated report with Microsoft Excel users.

Frequently Asked Questions
What causes a #SPILL! error in a dynamic purchase order report?
Excel shows #SPILL! when a dynamic-array formula cannot place all of its results because cells in the spill range contain values, formulas, merged cells, or other obstructions.
How can I find the cells blocking an Excel spill range?
Click the warning icon next to the #SPILL! cell and choose Select Obstructing Cells when that option is available. You can also inspect the cells below and beside the formula manually.
Can I leave blank rows for future purchase orders and invoices?
Yes, but those rows must remain genuinely empty. Do not add placeholder formulas, text, or objects, and avoid relying on a fixed number of blank rows because the result count can change.
Why is a separate worksheet useful for a dynamic-array formula?
A dedicated worksheet gives the formula an unobstructed area where the results can expand or contract as the Work Number or Project Code criteria change.
Will moving the formula change the purchase order and invoice results?
Moving the formula does not change the logic if its referenced source ranges remain valid. After moving it, test the criteria and confirm that every matching record appears in the new spill area.




