How to Create an Excel Formula That Expands When Cells Are Copied
Question details
The user needs to build an estimating formula that automatically updates its range to include newly copied or inserted cells without requiring manual adjustment.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Creating an estimating spreadsheet where new rows, columns, or cells are frequently copied and pasted, and the total sum must remain continuously accurate.
- Observed behavior
- Standard formulas with fixed ranges fail to include newly copied or inserted cells if they are placed immediately outside the original formula range boundary.
Ensure your estimating data is contiguous and does not contain completely blank rows, as gaps can sometimes disrupt automatic table expansions or dynamic range calculations.
Convert Data to an Excel Table for Automatic Expansion
Using an Excel Table is the most reliable way to make ranges expand automatically when new data is copied or inserted.
Excel Tables use structured references instead of static cell addresses. When you append or copy new rows directly below or inside an existing table, the table automatically expands. Any formulas pointing to that table column will instantly update to include the new cells.
Highlight the entire range of data you want to sum, including the column headers.
Go to the Insert tab on the ribbon and click Table, or simply press the keyboard shortcut Ctrl + T.
Check the box for 'My table has headers' if applicable, and click OK.
In your total cell, type =SUM( and then select the data cells in your table column. The formula will look something like =SUM(Table1[Estimates]). Press Enter.

Insert New Cells Inside the Existing Formula Range
A simple manual trick if you prefer not to use Excel Tables.
Use the OFFSET and COUNTA Functions
Ideal for complex estimating sheets where you need a dynamic range without formatting the data as a Table.
Create Dynamic Expanding Formulas Easily in WPS Spreadsheet
WPS Spreadsheet offers comprehensive support for structured table references, dynamic arrays, and advanced functions like OFFSET. You can easily build robust estimating templates that expand automatically as you add new data.
- 1. Open your data: Launch WPS Spreadsheet and open your estimating document.
- 2. Create a Table: Highlight your data, navigate to the Insert tab, and click Table to transform your data into a dynamic range.
- 3. Input the formula: Type your SUM formula and select the table column. It will automatically use the structured reference syntax.
- 4. Add new data seamlessly: Paste your newly copied cells at the bottom of the table; WPS Spreadsheet will automatically update the total.

Frequently Asked Questions
Why does my SUM formula not include newly inserted rows?
Standard formulas have fixed start and end points (e.g., A1:A10). If you paste or insert new rows below the last cell of the range (like in row 11), the formula does not know it should stretch to include them. Converting the data to a Table fixes this issue.
What is a structured reference in a spreadsheet?
A structured reference is a special syntax used specifically with formatted Tables. Instead of cell addresses like A1:A10, it uses table and column names (e.g., Table1[Costs]). It automatically expands as new data is added to the table.
Can I use the INDIRECT function to make ranges expand?
Yes, INDIRECT can construct a cell reference dynamically based on text or cell counts. However, like OFFSET, it is a volatile function that can slow down large workbooks, so using formatted Tables is generally the preferred and more stable method.
Do dynamic array formulas expand automatically?
Yes, if you are using modern spreadsheet software supporting dynamic arrays, the results will automatically 'spill' into adjacent blank cells to accommodate expanding data calculations without needing to copy the formula down.




