Function Problems

How to Populate a Daily Counts Sheet from a Summary Sheet in Excel

Kushani NimanthikaKushani Nimanthika Nov 10, 2026 870 views

Question details

The user wants to transfer quantities from a Summary Sheet to a matching date row in a Daily Counts Sheet while keeping past daily records intact.

How to Populate a Daily Counts Sheet from a Summary Sheet in Excel
Product
Excel
Device & OS
not provided
Scenario
Tracking daily data where a summary sheet is updated daily and values need to be logged into a historical daily counts sheet based on the date.
Observed behavior
The user needs a reliable method to pull data accurately, but faces the challenge of preserving historical values when the summary sheet is replaced or overwritten.
Before you start

Before modifying your daily tracking sheets, ensure both your Summary and Daily Counts sheets use identical date formats to avoid matching errors in your formulas.

Solution 1Recommended

Use XLOOKUP to Transfer Data Based on Dates

XLOOKUP is an efficient and modern function to find a specific date in your Summary Sheet and return the corresponding quantity to your Daily Counts Sheet.

This method is ideal when your Summary Sheet has exactly one row per date. By wrapping it in IFERROR, you can prevent ugly error messages for future dates that haven't been logged yet.

1
Select the target cell

Go to your Daily Counts Sheet and select the cell where you want the first quantity to appear (e.g., next to the first date in cell D19).

2
Enter the XLOOKUP formula

Type the formula: =IFERROR(XLOOKUP(D19, Summary!$D$3:$D$3, Summary!$E$3:$E$3, 0), 0). This assumes D19 is the date on the Daily sheet, Summary!D3 is the date on the summary sheet, and Summary!E3 is the quantity.

3
Apply and fill down

Press Enter to apply the formula. Then, click and drag the fill handle at the bottom-right corner of the cell to apply this formula to the rest of the dates in your column.

Use XLOOKUP to Transfer Data Based on Dates
Formula Limitation for Historical Data: Formulas are dynamic. If the data in the Summary sheet is deleted or overwritten the next day, the Daily Counts sheet will lose the historical value unless you copy and paste the calculated result as "Values" before updating the Summary.
Efficient Data Tracking with WPS Spreadsheet

Easily Populate Daily Count Sheets with WPS Office

WPS Spreadsheet offers full support for advanced formulas like XLOOKUP and SUMIFS, making it incredibly easy to link your Summary and Daily Counts sheets. Manage daily data seamlessly within a lightweight, free alternative to Microsoft Excel.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your Summary and Daily Counts sheets.
  2. 2. Insert the lookup formula: Navigate to the Daily Counts Sheet, select your target cell, and input your preferred XLOOKUP or SUMIFS formula.
  3. 3. Lock historical values: Select the cells containing yesterday's calculated data, press Ctrl+C, right-click, and select 'Paste Special' > 'Values' to preserve the records permanently.
Fully compatible with Microsoft Excel (.xlsx) formats and formula syntax.Supports modern lookup and aggregation functions including XLOOKUP and SUMIFS.Built-in 'Paste Special' tools to easily lock formula results as static historical values.Free, lightweight, and fast performance for handling large daily tracking datasets.
QA img-9

Frequently Asked Questions

Why does my XLOOKUP formula return a #N/A or 0 error?

This usually happens if the date format in the Summary Sheet does not exactly match the format in the Daily Counts Sheet, or if the date doesn't exist in the source range. Ensure both columns are formatted identically as 'Date' without hidden time stamps.

How do I preserve yesterday's data when I clear the Summary sheet?

Because Excel formulas calculate dynamically, clearing the source data clears the result. You must either copy the daily result and use 'Paste as Values' over the formula before clearing the Summary sheet, or set up a VBA script/Power Query to append the data automatically.

Can I use VLOOKUP instead of XLOOKUP for this task?

Yes, you can use VLOOKUP as long as the date column in your Summary Sheet is positioned to the left of the quantity column. However, XLOOKUP is generally recommended because it is more flexible and won't break if you insert new columns into your sheet.