Formula Errors

Fix Excel #SPILL! Errors in Dynamic Purchase Order and Invoice Reports

Huda QurayshiHuda Qurayshi Nov 12, 2026 869 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Select the formula cell

Open the report in Excel and click the cell containing the dynamic-array formula that shows #SPILL!.

2
Inspect the spill range

Use the warning icon beside the error and choose Select Obstructing Cells, or manually inspect the cells beneath and beside the formula.

3
Remove blocking content

Select the obstructing cells and use Home > Clear > Clear Contents. Delete unnecessary formulas, text, or objects from the expected spill range.

4
Recalculate the report

Press Enter after confirming the formula, or use Formulas > Calculate Now. The purchase order and invoice results should expand into the cleared cells.

Keep the spill area open: Leave the cells in the expected output area unobstructed so the report can grow when additional Work Numbers or Project Codes match new records.
Free Microsoft Office alternative

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. 1. Install WPS Office: Download and install WPS Office, then open WPS Spreadsheets from the main workspace.
  2. 2. Open the existing workbook: Choose Open from the WPS home screen and select the Microsoft Excel XLS or XLSX report file.
  3. 3. Review the report layout: Check the formula cells and leave sufficient unobstructed space for dynamic results on the report worksheet.
  4. 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.
Familiar spreadsheet tools for organizing purchase orders, invoices, and project reportsLightweight free alternative for users who want to migrate from Excel with minimal learning timeCompatible with Microsoft Excel XLS and XLSX formats for opening, editing, and sharing workbooksSupports formulas, filters, tables, and other tools used in everyday report preparation
microsoft office alternative - wps office

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.