Function Problems

How to Keep Excel Lookup Ranges Fixed When Copying Formulas

Bushra ParveenBushra Parveen Oct 28, 2026 868 views

Question details

The user needs to prevent the lookup and return ranges from changing when copying or dragging a LOOKUP formula down multiple rows.

How to Keep Lookup Ranges Fixed When Copying Formulas in Excel
Product
Excel
Device & OS
not provided
Scenario
Copying or dragging a lookup formula down a column to apply it to multiple cells.
Observed behavior
By default, the relative references change the row numbers of the lookup range, which shifts the search area and causes incorrect returns.
Before you start

Open your spreadsheet and click on the cell containing your lookup formula. Identify the exact cell range that acts as your lookup array and return array before applying the lock.

Solution 1Recommended

Lock Formula Ranges Using the F4 Shortcut

The fastest way to lock a range in Excel is by converting relative references to absolute references using the F4 key.

In Excel, adding dollar signs ($) to a cell reference converts it into an absolute reference, which tells the program to keep that specific row or column constant regardless of where the formula is copied. The F4 key acts as a quick toggle for this syntax.

1
Edit the Formula

Double-click the cell containing your formula, or select the cell and click inside the Formula Bar at the top of the screen.

2
Highlight the Range

Highlight the lookup range reference in the formula text (for example, select K40:K44).

3
Apply Absolute Reference

Press the F4 key on your keyboard. The reference will automatically update to include dollar signs (e.g., $K$40:$K$44).

4
Lock the Return Range

Repeat the highlighting and F4 process for your return array range (e.g., change L40:L44 to $L$40:$L$44), then press Enter to apply.

Lock Formula Ranges Using the F4 Shortcut
Quick Tip: Pressing F4 multiple times cycles through different lock types: locking both column and row ($K$40), locking only the row (K$40), and locking only the column ($K40).
Seamless Spreadsheet Management

Effortlessly Manage Complex Formulas in WPS Spreadsheet

WPS Spreadsheet offers full support for advanced lookup functions and absolute references, making data analysis highly intuitive. It provides a familiar interface to easily lock cell ranges while offering excellent compatibility with Excel files.

  1. 1. Open Your File: Open your Excel file (.xlsx or .xls) directly in WPS Spreadsheet.
  2. 2. Enter the Formula: Type your lookup formula and highlight the range reference you want to fix in the formula bar.
  3. 3. Lock the Range: Press F4 to instantly convert the selection to an absolute reference with dollar signs.
  4. 4. Fill Down: Drag the cell's fill handle down your column to apply the locked formula to the rest of your data.
Fully compatible with Microsoft Excel formulas and .xlsx formats.Supports the standard F4 shortcut to instantly lock cell ranges.Intuitive formula bar with built-in syntax hints for VLOOKUP, XLOOKUP, and LOOKUP.Lightweight application with fast performance on large datasets.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my VLOOKUP return #N/A when I drag it down?

This usually happens because the table array range is using relative references. When you drag the formula down, the search range shifts down as well, causing it to miss the actual data. Locking the table array with absolute references (e.g., $A$2:$D$100) prevents this shift.

What is the difference between $K40 and K$40?

A reference like $K40 is a mixed reference that locks only column K, meaning the column will not change if you copy the formula horizontally, but the row will change vertically. Conversely, K$40 locks only row 40, meaning the row stays the same vertically, but the column changes when copied horizontally.

How do I unlock a range after locking it?

You can unlock a range by selecting the reference in the formula bar and pressing the F4 key repeatedly until all dollar signs are removed. Alternatively, you can just manually delete the dollar signs from the formula text.

Does the F4 shortcut work on Mac?

On a Mac, the equivalent shortcut to toggle absolute and relative references in Excel is Command + T. However, depending on your Apple keyboard settings, pressing F4 (or fn + F4) may also work.