Automatically Fill an Excel 2016 Row and Replace Formulas with Values
Question details
Use a lookup formula to populate a row in Excel 2016, then optionally replace the formulas with fixed values.

- 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.
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.
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.
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.
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.
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.
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.

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. Open the workbook: Open WPS Spreadsheet and choose Open to select your Excel workbook.
- 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. Fill across the row: Drag the fill handle from B2 across to D2 and check the returned results.
- 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.

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.




