Function Problems

Remove Text After T in Excel with Find and Replace

Kushani NimanthikaKushani Nimanthika Dec 2, 2026 868 views

Question details

Remove T and everything after it from transaction data, then convert the remaining date text to actual dates if needed.

How to Remove Text After T in Excel with Find and Replace
Product
Microsoft Excel
Device & OS
not provided
Scenario
A column contains transaction timestamps such as 2025-03-08T14:30:00, and only the date portion is needed.
Observed behavior
The desired result is a date without the T separator or the text that follows it; the result may need conversion from text to a date value.
Before you start

Identify the cells containing the timestamps and check that T is the separator you want to remove. Select only the target cells, and avoid including formulas or unrelated text.

Solution 1Recommended

Replace T and the Remaining Text, Then Convert Dates

Use this method to remove the separator and trailing text from selected cells and convert ISO-style date text to Excel dates.

1
Select the target range

In the worksheet, select the cells containing the transaction timestamps, such as V2 through the last used row.

2
Open Replace

Press Ctrl+H, click Options, and clear Match entire cell contents. If only uppercase T should match, select Match case.

3
Remove the suffix

Enter T* in Find what, leave Replace with blank, and click Replace All. The asterisk matches any characters following T, so T is removed too.

4
Convert text to dates

If the remaining dates are stored as text in year-month-day order, select the results and choose Data > Text to Columns. Click Next twice, select Date, choose YMD, and click Finish.

Replace T and the Remaining Text, Then Convert Dates
Check the date order: Choose YMD only when the remaining text is in year-month-day order. Apply a date format from Home > Number if Excel displays the converted values as numbers.
Work with transaction dates in WPS

Remove Timestamp Suffixes in WPS Spreadsheet

Use Find and Replace in WPS Spreadsheet to remove T and the trailing time from selected transaction data, then convert ISO-style date text if needed.

  1. 1. Open the workbook: Open the Excel workbook in WPS Spreadsheet and select the cells containing the timestamps.
  2. 2. Replace the suffix: Press Ctrl+H, enter T* in Find what, leave Replace with blank, and click Replace All. If available, clear Match entire cell contents and enable Match case to match only uppercase T.
  3. 3. Convert date text if needed: Select the results and use Data > Text to Columns. Advance through the wizard, choose Date and YMD for year-month-day text, and click Finish.
  4. 4. Format the dates: If the converted values appear as numbers, select the cells and choose a date format from the Home tab's number format menu.
Remove timestamp suffixes from a selected range in one operationConvert year-month-day text into date valuesOpen and edit Microsoft Excel XLSX and XLS filesWork in a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Does T* remove the letter T as well?

Yes. In Find and Replace, T* matches T and all characters after it in the cell, so replacing the match with a blank removes the separator too.

How can I prevent lowercase t from being removed?

In Excel's Replace dialog, click Options and select Match case before running Replace All.

Why do the remaining dates still behave like text?

Excel may retain the results as text. Select them and use Data > Text to Columns, then choose Date and the matching date order, such as YMD.

What happens to cells that do not contain T?

They are not changed by the T* replacement. Check the selected range afterward for any values that use a different separator.