How to Fill an Excel Formula Down 20,000 Rows When Flash Fill Fails
Question details
The user needs to copy an Excel formula down a large dataset of 20,000 rows, but standard methods like Flash Fill, copy-pasting, and the fill handle are failing to work.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Attempting to apply a mathematical or logical formula across a massive column of data.
- Observed behavior
- Flash Fill, the fill handle, and formula copying fail to execute, often accompanied by security warnings or restricted workbook settings that block automated data entry.
Save your current progress and ensure your workbook is not opened in 'Protected View' or marked as a read-only file, as security restrictions can disable auto-fill and formula functions.
Test Formula in a New Unrestricted Workbook and Check Security Settings
Isolate the issue to determine if file-level security settings, protected ranges, or macro warnings are blocking the auto-fill feature.
Often, workbooks downloaded from external sources or shared over networks have strict security settings applied. If a sheet is protected or macro security warnings are active, features like Flash Fill and the Fill Handle are disabled by default.
Press Ctrl+N to open a new, completely unrestricted Excel workbook.
Type a simple formula in cell A1 and attempt to drag the fill handle down to A5. If it works, the issue is isolated to your original file.
Return to your original workbook. Look for a yellow security warning bar at the top of the screen and click 'Enable Content' or 'Enable Editing' if prompted.
Navigate to the 'Review' tab on the ribbon. If you see the 'Unprotect Sheet' option, click it (you may need a password) to unlock the cells and allow formula filling.

Use the Name Box and Ctrl+D for Massive Datasets
A reliable keyboard shortcut alternative to dragging the fill handle, perfect for applying formulas to tens of thousands of rows without scrolling.
Easily Fill Formulas Across Thousands of Rows with WPS Office
WPS Spreadsheet is optimized to efficiently process massive datasets with up to a million rows. You can easily manage security permissions, utilize intuitive Fill tools, and apply bulk formulas without experiencing the performance lags or unexplained restriction errors common in other software.
- 1. Open your dataset: Launch WPS Spreadsheet and open your large dataset file.
- 2. Select the formula cell: Click on the cell containing the formula you wish to replicate.
- 3. Use the Fill Handle shortcut: Hover over the bottom-right corner of the cell until the cursor turns into a crosshair, then double-click the green square to instantly auto-fill the formula down to the end of your adjacent data.
- 4. Use the Fill Down menu tool: Alternatively, select the entire column range and click the 'Fill' icon under the Home tab, then select 'Down' to apply the calculation to all rows.

Frequently Asked Questions
Why does the fill handle stop working halfway down my data?
The fill handle relies on adjacent columns to determine where to stop. If there is a blank cell in the adjacent column, the auto-fill process will stop at that exact row. You can manually drag it further, or use the Name Box to select the exact range before pasting.
Does Flash Fill work for copying math formulas?
No, Flash Fill is specifically designed to recognize text patterns and extract, combine, or format data. To copy a mathematical calculation or function, you must use standard AutoFill (the fill handle), the Ctrl+D shortcut, or standard Copy and Paste.
How do I fix the 'Protected View' warning blocking my formulas?
If your file was downloaded from the internet or received via email, it opens in Protected View for safety, which disables most editing tools. Simply click the 'Enable Editing' button on the yellow warning bar at the top of the application to restore full formula functionality.




