How to Populate a Daily Counts Sheet from a Summary Sheet in Excel
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.

- 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 modifying your daily tracking sheets, ensure both your Summary and Daily Counts sheets use identical date formats to avoid matching errors in your formulas.
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.
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).
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.
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 SUMIFS to Aggregate Daily Data
If your Summary Sheet contains multiple entries for the same date, SUMIFS will add them all together for your Daily Counts Sheet instead of just pulling the first match.
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. Open your workbook: Launch WPS Spreadsheet and open the file containing your Summary and Daily Counts sheets.
- 2. Insert the lookup formula: Navigate to the Daily Counts Sheet, select your target cell, and input your preferred XLOOKUP or SUMIFS formula.
- 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.

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.




