Function Problems

Automatically Fill an Excel 2016 Row and Replace Formulas with Values

Algirdas JasaitisAlgirdas Jasaitis Nov 18, 2026 868 views

Question details

Use a lookup formula to populate a row in Excel 2016, then optionally replace the formulas with fixed values.

Automatically Fill an Excel 2016 Row Without Keeping Formulas
Product
Microsoft Excel 2016
Device & OS
not provided
Scenario
Retrieve related data from a lookup table across a row and keep the results without retaining the formulas.
Observed behavior
The row contains the retrieved data as fixed entries after the formulas are replaced with values.
Before you start

Identify the lookup value and the table containing the data you want to return. For VLOOKUP, the lookup value must be in the leftmost column of the selected table.

Solution 1Recommended

Use VLOOKUP and Paste Values to Fill the Row

Use this method to retrieve matching data across a row and remove the formulas after checking the results.

In this example, A2 contains the lookup value, H2:K100 is the lookup table, and B2:D2 will receive values from the table's second through fourth columns.

1
Enter the lookup formula

Select cell B2 and enter =VLOOKUP($A2,$H$2:$K$100,COLUMNS($A$1:B$1),FALSE). Adjust the cell and table references to match your worksheet.

2
Fill the formula across

Drag the fill handle at the bottom-right corner of B2 across to D2. The COLUMNS function increases the return-column number as the formula is copied.

3
Check the results

Review B2:D2 and confirm that the returned values match the lookup table. If you see #N/A, check that A2 matches an entry in column H.

4
Replace formulas with values

Select B2:D2 and press Ctrl+C. On the Home tab, open the Paste menu and choose Values to replace the formulas with their current results.

Use VLOOKUP and Paste Values to Fill the Row
Fixed values do not update: After you paste values, changes to the lookup value or source table will not automatically update those cells. Repeat the lookup if you need fresh results.
Fill rows with WPS Spreadsheet

Fill a Row and Keep Fixed Results in WPS Spreadsheet

Use VLOOKUP in WPS Spreadsheet to retrieve data across a row, then paste the results as values when you no longer need the formulas.

  1. 1. Open the workbook: Open WPS Spreadsheet and choose Open to select your Excel workbook.
  2. 2. Enter a lookup formula: In the first result cell, enter a VLOOKUP formula that refers to your lookup value and source table. For example, enter =VLOOKUP($A2,$H$2:$K$100,COLUMNS($A$1:B$1),FALSE) in B2.
  3. 3. Fill across the row: Drag the fill handle from B2 across to D2 and check the returned results.
  4. 4. Keep the results as values: Select the result cells, copy them, and use the Home tab's Paste menu to choose Paste Special and paste Values.
Fill a row with lookup results using VLOOKUP.Replace formulas with fixed entries through Paste Special.Open and edit Microsoft Excel XLS and XLSX files.Use familiar spreadsheet tools in a free office suite.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use XLOOKUP in Excel 2016?

XLOOKUP is not available in Excel 2016. Use VLOOKUP or an INDEX and MATCH formula instead.

Why does VLOOKUP return #N/A?

With FALSE as the final argument, VLOOKUP requires an exact match. Check that the lookup value appears in the leftmost column of the selected table and that text and numbers are stored consistently.

Will pasted values update when the source table changes?

No. Home > Paste > Values replaces the formulas with fixed results. Keep the formulas if you need the row to update automatically.

How can I remove formulas from several cells at once?

Select the cells containing the formulas, copy them, and choose Home > Paste > Values. The selected formulas are replaced with their current results.