How to Automatically Copy Formulas and Formatting When Inserting Excel Rows
Question details
The user wants to automatically carry over formulas and cell formatting from an adjacent row when inserting new rows in an Excel spreadsheet.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Adding new data rows between existing records while maintaining the spreadsheet's structure, formulas, and visual formatting without having to manually copy and paste.
- Observed behavior
- By default, inserting a new row may create a blank row without the formulas or specific formatting from the previous row, requiring repetitive manual adjustments.
Before proceeding, ensure your data is organized in a continuous range without entirely blank rows or columns, as this helps Excel accurately identify the data region for auto-filling.
Convert the Data Range to an Excel Table
Converting your standard data range into an official Excel Table is the easiest and most reliable way to ensure formatting and formulas automatically expand to new rows.
Excel Tables have a built-in feature that automatically extends formatting, formulas, and data validation rules to any newly inserted row directly adjacent to or within the table boundaries.
Click and drag to highlight your entire dataset, or simply click any single cell within your continuous data range.
Navigate to the 'Insert' tab on the top ribbon and click on 'Table' (or press the keyboard shortcut Ctrl + T).
A 'Create Table' dialog box will appear. Ensure the 'My table has headers' box is checked if your top row contains column names, then click 'OK'.
Right-click on any row number on the left side of the table and select 'Insert'. The new row will automatically inherit the background colors, borders, and formulas from the row above.

Use a VBA Macro to Insert and Auto-Fill Rows
Ideal for advanced users who frequently need to insert a specific number of rows at once and precisely copy preceding formulas and formats down.
Seamlessly Auto-Fill Formulas and Formatting with WPS Spreadsheet
WPS Spreadsheet offers powerful Smart Table features and full VBA macro support to automatically copy formulas and cell formatting when adding new rows. Manage your data entry effortlessly with a highly compatible, free alternative to Microsoft Excel.
- 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open your existing spreadsheet document.
- 2. Format as Table: Highlight your data range, navigate to the 'Insert' tab, and click 'Table'.
- 3. Add a new row: Right-click a row header and choose 'Insert'. WPS Spreadsheet will instantly apply your existing formulas and cell formats to the newly added row.

Frequently Asked Questions
Why aren't my formulas copying down automatically when I insert a row?
This usually happens if your data isn't formatted as an Excel Table, or if the 'Extend data range formats and formulas' option is disabled in your settings. To enable it, go to File > Options > Advanced, and check the box for 'Extend data range formats and formulas'.
Can I copy the formatting but not the formulas when inserting a row?
Yes. After inserting a new row, a small 'Insert Options' paintbrush icon will appear next to it. Click this icon and select 'Format Same As Above' or 'Format Same As Below'. This applies only the visual formatting without copying the cell formulas.
How do I insert multiple rows at once with the same formatting?
Select the number of existing rows you want to insert (for example, highlight 3 rows), right-click the row numbers, and choose 'Insert'. The new rows will inherit the formatting of the row above them. To ensure formulas carry over perfectly across multiple rows, converting your data to an Excel Table beforehand is highly recommended.




