How to Filter VSTACK Data and Hide Zero Dates in Excel
Question details
The user needs to combine case data from multiple worksheets using VSTACK, filter the combined results based on a developer name specified in cell B2, and ensure that blank dates do not display as January 0, 1900.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Consolidating multiple worksheets into a single master sheet, filtering the combined dataset dynamically based on a cell reference, and cleaning up formatting artifacts like zero-value dates.
- Observed behavior
- The VSTACK function successfully combines the data, but needs dynamic filtering applied to it. Additionally, empty date cells from the source sheets are incorrectly displaying as January 0, 1900 in the consolidated output.
Ensure you are using a version of Excel that supports dynamic array functions like VSTACK and FILTER, such as Microsoft 365, Excel 2021, or the latest version of WPS Office.
Filter VSTACK Data Using Dynamic Arrays and a Holding Worksheet
Use the FILTER function wrapped around VSTACK, combined with a holding worksheet to dynamically include newly added sheets in your dataset.
To filter consolidated multi-sheet data without constantly updating your formula, use a 3D reference with a 'holding' sheet at the end of your workbook. Any new worksheets inserted before this holding sheet will automatically be included in the VSTACK array.
Add a new, blank worksheet at the very end of your data sheets and name it 'TheEnd'. Ensure all data worksheets you want to combine are placed between your first sheet and 'TheEnd'.
In your master sheet, enter the formula to combine and filter. For example: =FILTER(VSTACK('0001-0500:TheEnd'!A3:F501),(VSTACK('0001-0500:TheEnd'!B3:B501)<>"")*(ISNUMBER(SEARCH(B2,VSTACK('0001-0500:TheEnd'!F3:F501),1))))
The ISNUMBER(SEARCH(...)) segment allows Excel to look for the developer name entered in cell B2 within column F of your stacked data, returning only the rows that match.

Hide Zero Dates (January 0, 1900) globally in Excel Options
Adjust Excel's advanced settings to hide zero values, which will prevent blank date cells from displaying as January 0, 1900.
Prevent Source Errors from Breaking the FILTER Formula
Wrap your source data extraction formulas in IFERROR to prevent #VALUE! or other errors from rippling through your VSTACK and FILTER arrays.
Consolidate and Filter Data Easily with WPS Office
WPS Spreadsheet fully supports advanced dynamic array functions like VSTACK and FILTER. You can effortlessly consolidate multi-sheet data, apply complex filters, and manage cell formatting while ensuring seamless compatibility with your existing Excel files.
- 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open your multi-sheet dataset. Your Excel formulas will load automatically.
- 2. Enter dynamic array formulas: Use =FILTER(VSTACK(...)) directly in your master sheet exactly as you would in Excel. WPS Spreadsheet handles dynamic spilling seamlessly.
- 3. Hide zero dates: Go to Menu > Options > View, and uncheck 'Zero values' to easily hide January 0, 1900 dates from your filtered output.

Frequently Asked Questions
Why does Excel show January 0, 1900 for blank dates?
In Excel, dates are stored as sequential serial numbers starting from January 1, 1900 (serial number 1). When a date formula refers to a blank cell, it evaluates as 0, which Excel formats as January 0, 1900.
Can I automatically include newly added worksheets in my VSTACK formula?
Yes, by using a 3D reference with a 'holding' worksheet. If you create a blank sheet named 'TheEnd' and use the reference 'Sheet1:TheEnd'!A1:A10, any new sheet inserted between 'Sheet1' and 'TheEnd' is automatically included in the array.
Why does my FILTER and VSTACK formula return an error?
Errors in the source data often propagate to the master formula. If one of the source sheets has a #VALUE! or #N/A error in the referenced range, the entire VSTACK/FILTER output will fail. Use the IFERROR function on the source data to return blanks instead of errors.
Is there a way to hide zero dates without changing Excel options?
Yes, you can use custom number formatting. Select the date cells, press Ctrl+1 to open Format Cells, choose Custom, and enter a format like 'm/d/yyyy;;;@'. This forces zero values to display as blank.




