You will build an invoice total that grows and shrinks with your product list, so you never drag or edit the SUM range again. It suits anyone who keeps invoices, dashboards or reports in Excel and has a version with dynamic arrays, such as Microsoft 365 or Excel 2021.
YouTube video: Excel Hack: Auto-Updating SUM Ranges #excel #exceltips #tutorial
Caption availability is unknown. Check the CC control in the YouTube player.
- Video length
- 1 min 18 s
- Time to do it
- 5 minutes
- Difficulty
- Easy
- Steps
- 7
What you need
Steps
Set up your invoice table with one product per row and a line total column, for example column E. Leave no blank rows inside the data range.
Click the first empty cell below the table and type a FILTER formula that returns only filled rows, such as =FILTER(A5:E20,A5:A20"").
Press Enter. The results spill down and across on their own. Note the top left cell of that spill range, such as A5.
Click the cell where you want the invoice total to appear.
Type =SUM(INDEX(A5#,5)) and press Enter. Swap A5 for your spill range's first cell and 5 for the number of your line total column.
Check the total against a manual sum. Then add a product row inside your source range and watch the FILTER result and the total grow without any edits.
If you see a #SPILL or #REF error, clear any cells blocking the spill area or widen the FILTER range so it covers new rows.
Tips and common mistakes
The number in INDEX must match the line total column's position inside the FILTER range, not the column letter on the sheet.
The # symbol only works in Excel versions with dynamic arrays, so older copies will show an error.
Do not wrap the formula in curly braces or press Ctrl+Shift+Enter, because it is a normal formula, not an array formula.
Questions
What does the # in A5# mean?
It tells Excel to use the whole spilled range that starts at A5, however many rows it currently fills. That is why the total updates when products are added or removed.
Why does INDEX have an empty middle argument?
Leaving the row number blank tells INDEX to return the entire column, and the 5 picks the fifth column of the spill range. SUM then adds that whole column.
Will this work with an Excel table?
Yes, you can point the FILTER at a table's columns. Just remember the column number in INDEX counts positions inside the spill range, not the table.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


