How to Enter an Excel VLOOKUP Formula Only in Blank Cells
Question details
The user needs a method to populate empty cells within a data range with a VLOOKUP formula while ensuring that cells containing existing data remain untouched.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Filling incomplete data tables where certain values are already present, but the missing data needs to be fetched from another table using VLOOKUP.
- Observed behavior
- The goal is to selectively target and update only the blank cells in a column without overwriting or altering the currently populated cells.
Ensure your VLOOKUP formula uses absolute references (e.g., $I$14:$K$18) for the lookup table array so the reference range does not shift when applying the formula to multiple disparate rows.
Use the Go To Special Feature to Target Blank Cells
This is the most straightforward method for most users, allowing you to isolate all blank cells in a range and paste your VLOOKUP formula simultaneously.
Excel's 'Go To Special' tool allows you to select cells based on specific attributes, such as being completely blank. This prevents your paste actions from affecting cells that already contain data.
Select the first blank cell where you need the data, type your VLOOKUP formula (for example, =VLOOKUP(B2,$I$14:$K$18,2,0)), and press Enter. Click on the cell again and copy it by pressing Ctrl+C.
Highlight the entire column or specific range of cells where you want the formula applied. You should include both the blank cells and the cells that already have data in this selection.
Press F5 on your keyboard to open the 'Go To' dialog box. In the bottom left corner, click on the 'Special...' button.
In the Go To Special window, click the radio button next to 'Blanks' and click OK. Excel will deselect the filled cells and leave only the empty ones highlighted.
Without clicking anywhere else on the sheet, press Ctrl+V to paste. Your copied VLOOKUP formula will instantly populate only the selected blank cells.

Automate with a VBA Macro
If you need to perform this operation frequently on large datasets, a VBA macro can loop through the rows and assign the formula specifically to empty cells.
Easily Manage Blank Cells and Formulas with WPS Spreadsheet
WPS Spreadsheet provides powerful data manipulation tools, including the 'Go To Special' feature and full support for advanced VLOOKUP formulas. You can seamlessly fill empty cells without overwriting data in an intuitive, familiar interface.
- 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your .xlsx file containing the incomplete data.
- 2. Copy the VLOOKUP formula: Type your formula with absolute table references into the first empty cell and copy it.
- 3. Use Go To Special to fill blanks: Highlight your data column, press Ctrl+G to open the Go To dialog, select 'Blanks', and press Ctrl+V to safely paste your formula.

Frequently Asked Questions
Why does my pasted VLOOKUP formula return errors in some blank cells?
This usually happens if you did not use absolute cell references (such as $A$1:$D$10) for your lookup array. When you paste the formula into different rows without locking the references, the lookup table range shifts down, resulting in #N/A errors.
Can I use the 'Go To Special' method for other formulas besides VLOOKUP?
Yes. The 'Go To Special > Blanks' technique works for any formula, text, or number. It simply acts as a filter that restricts your pasting action strictly to the empty cells within your selected range.
How do I quickly select my entire dataset to find blank cells?
Instead of dragging your mouse, click the first cell of your column and press Ctrl + Shift + Down Arrow. This will select all cells down to the end of the data, allowing you to then use F5 to access Go To Special > Blanks.
Will running the VBA macro overwrite existing formulas in my target column?
No. The provided VBA script includes a conditional check (If Cells(i, 3) = "") which ensures that the formula is only written if the target cell evaluates as completely blank, leaving your existing data and formulas perfectly intact.




