Share via

Date Format question in excel

Anonymous
2025-02-01T13:47:25+00:00

I have thousands of records in Column A with the Date written in text like 20190131 and not an official data format. Is there a formula I can use to change them all to official dates so I can filter and group them in pivot tables and such?

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2025-02-01T14:25:07+00:00

    Thanks Hans

    Was this answer helpful?

    0 comments No comments
  2. HansV 462.6K Reputation points
    2025-02-01T13:49:44+00:00

    With a value such as 20190131 in D2, the formula

    =DATE(LEFT(D2, 4), MID(D2, 5, 2), RIGHT(D2, 2))

    will return the corresponding date,

    Was this answer helpful?

    0 comments No comments