How to Group Excel PivotTable Dates Before January 1900
Question details
User needs to group historical dates earlier than January 1, 1900 in an Excel PivotTable by year, month, or another label, because Excel's built-in date grouping does not accept pre-1900 dates.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The source data contains dates before January 1, 1900, and the user wants them grouped in a PivotTable for historical analysis.
- Observed behavior
- Excel PivotTable date grouping does not support dates earlier than January 1, 1900; the date grouping options may be unavailable or produce incorrect groups.
Confirm which column contains the pre-1900 dates and decide whether you need grouping by year, month, quarter, or a custom period such as decade or century before you add helper columns.
Create Helper Columns for Year, Month, or Custom Grouping in the Source Data
Use this method when you need to group pre-1900 dates in an Excel or WPS PivotTable without relying on the built-in date grouping feature.
Excel's PivotTable date grouping works only for dates on or after January 1, 1900. When earlier dates are stored as text, you can create text-based helper columns in the source data and use those fields as PivotTable row fields.
Open the source data sheet, select the column next to your pre-1900 date column, right-click, and choose Insert to add new columns for Year, Month, or a custom label.
In the helper column, enter a formula that matches your date format, such as =LEFT(A2,4) for YYYY-MM-DD text dates or =MID(A2,6,2) for the month. Adjust the cell reference and character positions to your date layout.
In another helper column, concatenate the year and month with a formula like =LEFT(A2,4)&"-"&MID(A2,6,2) to create values such as 1888-05 for monthly grouping.
Click the PivotTable, open the PivotTable Fields pane, and drag the new Year, Month, or label columns into the Rows area instead of the original date field.
Right-click the PivotTable and choose Refresh, then check that pre-1900 records appear in the expected year, month, or custom groups.

Use a Custom Period or Century Label for Historical Analysis
Use this approach when you want broader grouping, such as decade, century, or era, and do not need automatic year/month date grouping.
Group Pre-1900 Dates in WPS Office Spreadsheets with Helper Columns
WPS Office Spreadsheets can open and edit Excel workbooks and lets you create the same helper-column grouping for pre-1900 dates. It keeps your source data intact and gives you full control over year, month, period, and custom labels.
- 1. Open the Excel workbook in WPS Office Spreadsheets: Launch WPS Office, click Menu > Open, and select the workbook that contains the pre-1900 dates.
- 2. Create helper columns for year, month, or period: Insert new columns beside the date column and use text formulas such as =LEFT(A2,4) to extract the grouping value you need.
- 3. Update the PivotTable with helper fields: Click the existing PivotTable or create a new one, then drag the helper column into the Rows area instead of the original date field.
- 4. Refresh and save the workbook: Right-click the PivotTable, choose Refresh, and save the file in Excel-compatible .xlsx format.

Frequently Asked Questions
Why can't Excel group dates before January 1, 1900 in a PivotTable?
Excel's date system starts at January 1, 1900, so earlier dates are normally treated as text. The PivotTable automatic date grouping cannot create year/month groups from text or unsupported date serials; use helper columns instead.
Can I use the YEAR function on pre-1900 dates?
If the date is stored as text, YEAR returns #VALUE!. Extract the year with text functions like =LEFT(A2,4) or =MID(A2,1,4), depending on the format. If the date is a supported serial in another application, convert it to text first.
Does WPS Office support native PivotTable date grouping before 1900?
WPS Office Spreadsheets is Excel-compatible and may not reliably group pre-1900 dates natively. The recommended workaround is to create helper columns and use those fields in the PivotTable.
What date format is easiest for helper columns?
A consistent text format such as YYYY-MM-DD is easiest. Use =LEFT(A2,4) for year, =MID(A2,6,2) for month, and adjust the character positions to match your actual date format.
How do I refresh the PivotTable after adding helper columns?
Right-click the PivotTable, choose Refresh, and confirm the new helper fields appear in the PivotTable Fields task pane. You may need to add the helper columns to the Rows area manually.




