logo
search
Pivot Table Issues

How to Convert Text Dates and Times for Excel Pivot Table Grouping

Ayan MasoodAyan Masood Oct 16, 2026 869 views

Question details

The user needs to convert dates and times imported as text into actual date and time values to enable grouping in Excel PivotTables.

How to Convert Text Dates and Times for Excel Pivot Table Grouping
Product
Excel
Device & OS
not provided
Scenario
Importing database data where dates and times are formatted as text, preventing the PivotTable grouping feature from functioning.
Observed behavior
Dates and times imported as text cannot be grouped in Excel PivotTables until they are properly converted into real date and time values.
Before you start

Before converting your data, ensure you select the entire column containing the text dates or times and verify that there are no adjacent columns that might be overwritten if the data separates.

Solution 1Recommended

Use Text to Columns to Convert Dates and Times

The Text to Columns wizard is the most efficient built-in feature to force Excel to recognize text strings as real date and time values.

This method applies a built-in data transformation tool that directly overwrites the text strings in your column with proper serial date numbers, fixing the PivotTable grouping issue immediately.

1
Select the target column

Click the letter of the column containing the dates or times formatted as text to highlight the entire column.

2
Open Text to Columns

Navigate to the 'Data' tab on the Excel ribbon and click the 'Text to Columns' button.

3
Navigate the wizard

Leave the data type as 'Delimited' and click 'Next' twice until you reach Step 3 of 3 in the wizard.

4
Set the Date format

Under the 'Column data format' section, select the 'Date' radio button. Choose the format that matches your text data from the dropdown (for example, 'MDY' for Month-Day-Year).

5
Finish conversion

Click 'Finish'. If you are converting time values, simply running the wizard and clicking 'Finish' without changing settings will usually convert the text into usable times.

Use Text to Columns to Convert Dates and Times
Refresh Your PivotTable: After converting the columns, remember to right-click your PivotTable and select 'Refresh' so the changes take effect and enable grouping.
Powerful Spreadsheet Tool

Group PivotTable Dates Instantly with WPS Spreadsheet

WPS Spreadsheet seamlessly handles database imports and provides intuitive Text to Columns features, making it incredibly simple to convert and group date or time data in PivotTables.

  1. 1. Open your dataset: Launch WPS Spreadsheet and open your .xlsx file containing the text dates.
  2. 2. Access Text to Columns: Select the column with the text dates, go to the 'Data' tab, and click 'Text to Columns'.
  3. 3. Convert the format: Choose 'Delimited', click 'Next' to reach Step 3, select 'Date' (e.g., MDY), and click 'Finish'.
  4. 4. Create and group PivotTable: Select your entire dataset, click 'Insert' > 'PivotTable', and drag your newly converted date values to rows to easily group them by months or years.
Free and lightweight office suiteFully compatible with Microsoft Excel (.xlsx) formatsIntuitive Text to Columns wizard for fast date conversionRobust PivotTable features for advanced data grouping
QA img-9

Frequently Asked Questions

Why can't I group dates in my Excel PivotTable?

If your dates are imported or formatted as text, Excel treats them as distinct string values rather than a continuous timeline. Grouping requires the data to be formatted as actual date serial numbers.

How do I refresh the PivotTable after converting the text dates?

Click anywhere inside your PivotTable, navigate to the 'PivotTable Analyze' tab on the ribbon (or 'Options' in older versions), and click the 'Refresh' button. Alternatively, right-click inside the PivotTable and select 'Refresh'.

Does Text to Columns work for time values stored as text?

Yes. Selecting the affected column, opening the Text to Columns wizard, and simply clicking 'Finish' without changing any settings forces Excel to re-evaluate the data, usually converting the text into standard time values.

What formula should I use if my text strings contain both dates and times?

You can use the VALUE function. For example, type '=VALUE(A2)' in an adjacent column. You will get a decimal number. Format this new cell using a custom Date and Time format (e.g., 'mm/dd/yyyy hh:mm') to display both properly.