How to Store Daily Excel Form Values by Selected Date
Question details
The user needs a method to save and retrieve daily form entries in Excel tied to specific dates, as basic cell formatting overwrites previous data.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating an interactive daily tracker or form where selecting a date from a dropdown loads that date's historical entries or allows saving new ones.
- Observed behavior
- Standard data validation and formatting only affect current cell properties. Changing a date does not automatically store the previous form values or load the new date's context, causing historical records to be lost.
Before applying structural changes or running VBA scripts, ensure your workbook is saved as an Excel Macro-Enabled Workbook (.xlsm) and create a backup copy to prevent accidental data loss during testing.
Use a Structured Data Table and XLOOKUP Formulas
This is the best non-coding approach to retrieve and display daily records by separating your user interface form from your backend data storage.
Excel forms cannot store multiple days of data in a single set of cells. By utilizing a separate database sheet, you can store historical entries safely and use lookup formulas to pull them into your form dynamically.
Create a new worksheet and name it 'Database'. Create column headers representing the 'Date' and each specific field from your form. Enter your historical daily data row by row.
Navigate to your 'Form' sheet and select the cell designated for the date. Go to the 'Data' tab, click 'Data Validation', choose 'List' from the Allow dropdown, and select the range of dates from your Database sheet.
In the form fields where data should dynamically appear, enter an XLOOKUP formula. For example, use =XLOOKUP(Date_Cell, Database!A:A, Database!B:B). When you change the date dropdown, the corresponding daily values will instantly populate.

Implement a VBA Macro to Save and Load Entries
If you need an interactive form where you can actively type in new daily values and save them back to the database, a VBA macro is required.
Create and Manage Daily Form Values with WPS Spreadsheet
WPS Spreadsheet provides robust formula capabilities and seamless VBA macro support, making it incredibly easy to track, save, and retrieve interactive daily form entries.
- 1. Set Up Your Sheets: Open WPS Spreadsheet, create one tab named 'Form' for your interface and another named 'Database' for logging historical values.
- 2. Link with Formulas: Use Data Validation to create a date dropdown on your Form tab, and use XLOOKUP to automatically pull values from the Database based on the selection.
- 3. Automate with Macros: Access the Developer tools in WPS Spreadsheet to write or record a macro that writes new form entries directly to your Database tab.

Frequently Asked Questions
Why doesn't standard data validation save previous date values?
Data validation only restricts what type of data can be entered into a specific cell; it does not possess memory or storage capabilities. To retain historical daily values, you must log them into a separate structured database table.
Should I use FILTER instead of XLOOKUP for my daily form?
If a single selected date has multiple rows of records (e.g., multiple sales in one day), use the FILTER function to extract an array of data. If each date only has one corresponding entry, XLOOKUP is the most efficient choice.
Can I run my Excel VBA macros for saving forms in WPS Office?
Yes, WPS Office supports VBA macros. You can open your existing .xlsm files in WPS Spreadsheet, and your scripts for saving and loading daily form entries will run seamlessly.




