Function Problems

Retrieve Daily Data and Preserve Historical Values in WPS Spreadsheets

Nimra MalikNimra Malik Nov 12, 2026 869 views

Question details

Retrieve data that matches each worksheet date and preserve the retrieved results as fixed historical values.

Retrieve Daily Data and Preserve Historical Values in WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
A worksheet uses date-based lookups to pull data from a source sheet for daily records.
Observed behavior
Lookup formulas update whenever the linked source data changes, so previously recorded daily values do not remain fixed.
Before you start

Make sure the date values in both the record sheet and source sheet are real spreadsheet dates, not text. Confirm which source column contains the date and which column contains the value to return before entering the lookup formula.

Solution 1Recommended

Use XLOOKUP, then paste the daily results as values

Use this method when you want to retrieve the correct data for a date and lock that day's result after it has been reviewed.

A lookup formula remains linked to its source data and cannot permanently retain its current result by itself. After the daily values are correct, replace the formulas with their displayed values to preserve the historical record.

1
Enter the date-based lookup formula

In the first result cell, such as B2, enter =XLOOKUP($A2,DataSheet!$A:$A,DataSheet!$B:$B,""). Replace DataSheet columns A and B with the source date column and source value column as needed.

2
Fill the formula down

Select the formula cell and drag the fill handle down, or use Home > Fill > Down, to retrieve values for the remaining dated rows.

3
Review the returned daily values

Check that each date in column A returns the intended value from DataSheet before converting formulas to fixed values.

4
Paste the results as values

Select the completed formula cells, press Ctrl+C, then use Home > Paste > Paste Special > Values. The cells keep their displayed results and no longer change when DataSheet is updated.

Use XLOOKUP, then paste the daily results as values
Historical values are now fixed: After Paste Special > Values, the selected cells no longer contain lookup formulas. Future changes on the source sheet will not alter those historical records.
WPS Spreadsheets workflow

Create Daily Historical Records with WPS Spreadsheets

WPS Spreadsheets lets you retrieve values by date with XLOOKUP or INDEX/MATCH, then use Paste Special > Values to turn completed daily results into permanent historical records.

  1. 1. Set up date and result columns: Enter each reporting date in a worksheet column, such as column A, and reserve an adjacent column for the retrieved value.
  2. 2. Add a date-based lookup: Enter an XLOOKUP formula such as =XLOOKUP($A2,DataSheet!$A:$A,DataSheet!$B:$B,"") in the result column.
  3. 3. Fill the formula for active records: Drag the fill handle down to apply the formula to the rows that need current source data.
  4. 4. Lock completed daily results: Select the completed results, then choose Home > Paste > Paste Special > Values to replace the formulas with fixed values.
Use XLOOKUP or INDEX/MATCH to return source data for each worksheet date.Paste Special > Values keeps prior daily records unchanged after source data updates.Open, edit, and save Microsoft Excel .xlsx and .xls workbooks.Use a familiar spreadsheet interface for formulas, filling ranges, and value-only pasting.
QA img-9

Frequently Asked Questions

Why do my historical lookup results change when the source sheet changes?

XLOOKUP, INDEX/MATCH, and other formulas recalculate from their referenced source cells. To keep a historical result, select the completed formula cells and use Home > Paste > Paste Special > Values.

Can a TODAY formula automatically retain yesterday's value?

No. TODAY() recalculates whenever the workbook recalculates, so it does not create a permanent daily snapshot. Use the formula to retrieve current data, then paste the completed result as a value.

How do I return a blank cell when the date is not found?

With XLOOKUP, use the fourth argument for a blank result: =XLOOKUP($A2,DataSheet!$A:$A,DataSheet!$B:$B,""). With INDEX/MATCH, wrap the formula in IFERROR(...,"").

Should I paste values over the whole worksheet?

Paste values only over the completed historical result range. Keep formulas in rows that still need to update from the source sheet.

Will value-only pasting work when I open the workbook in Microsoft Excel?

Yes. Fixed values are standard worksheet values and remain unchanged in compatible .xlsx and .xls files opened in Microsoft Excel or WPS Spreadsheets.