How to Fill a Formula Only Into Visible Cells in Excel
Question details
The user needs to apply a formula exclusively to the visible rows of a filtered spreadsheet column without affecting the hidden records.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Working with a filtered dataset where calculating or copying a formula across an entire column unintentionally alters data in the hidden rows.
- Observed behavior
- Standard drag-to-fill or Excel Table calculated columns automatically push the formula to both visible and hidden cells, overwriting existing records that should not be changed.
Verify whether your dataset is formatted as a standard cell range or an official Excel Table, as Excel Tables handle column-wide formulas automatically and require different settings to bypass.
Use Go To Special to Select Visible Cells
Explicitly selecting only the visible cells before entering your formula ensures that hidden rows are ignored during the fill process.
By default, selecting a range that includes hidden rows will highlight those hidden cells in the background. Using Excel's 'Go To Special' feature or a built-in keyboard shortcut forces Excel to restrict your selection strictly to what is currently visible on the screen.
Click the 'Data' tab and use the 'Filter' button to apply the necessary criteria so only your target rows are visible.
Click and drag to select the column range where you want the formula to appear.
Press the keyboard shortcut 'Alt + ;' (Windows) or go to the 'Home' tab, click 'Find & Select', choose 'Go To Special', and select 'Visible cells only'. Click OK.
With the visible cells selected, type your formula into the formula bar. Instead of pressing Enter, press 'Ctrl + Enter' to apply the formula simultaneously to all selected visible cells.

Disable Automatic Calculated Columns for Excel Tables
If you are working inside an inserted Excel Table, you must disable its auto-fill behavior before updating just the visible rows.
Manage Filtered Data and Formulas Easily with WPS Office
WPS Spreadsheet provides powerful and intuitive tools to handle filtered datasets and complex formulas safely. You can quickly isolate visible cells and mass-apply formulas with zero hassle, exactly as you would expect in professional spreadsheet software.
- 1. Open and Filter Data: Open your spreadsheet in WPS Office, navigate to the 'Data' tab, and click 'AutoFilter' to display only the rows you need.
- 2. Select the Target Range: Highlight the column cells where the new formula should be placed.
- 3. Isolate Visible Cells: Press 'Ctrl + G' to open the Go To dialog, select 'Visible cells only', and click 'Go To'.
- 4. Apply the Formula: Type your formula into the active cell and press 'Ctrl + Enter' to populate only the filtered, visible rows instantly.

Frequently Asked Questions
Why does the fill handle overwrite hidden rows in my spreadsheet?
When you drag the fill handle (the small square at the bottom right corner of a selected cell) down a column, Excel processes the entire physical range of cells, including the hidden ones interspersed between visible rows. You must explicitly tell the software to target only visible cells using the 'Go To Special' menu before applying the formula.
Can I copy and paste a formula specifically to visible cells without using Ctrl + Enter?
Yes. You can copy the cell containing your formula, highlight the destination range, use the 'Go To Special' > 'Visible cells only' command, and then paste. The pasted formula will skip any hidden rows in the destination area.
Will disabling table calculated columns affect my other Excel workbooks?
Yes, turning off 'Fill formulas in tables to create calculated columns' in Excel's AutoCorrect Options is an application-level setting. It will apply to all workbooks opened on that device until you go back into File > Options > Proofing and turn the feature back on.




