A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi @Darrell Speegle,
It is not very simple to convert numbers given as texts to dates, since it depends on how these numbers are given.
However, below I am giving you a solution through PYTHON formulas.
In column A, numbers are given as texts that must be converted to dates. These numbers are conceived with 8 numbers that represent a full date, i.e. mm/dd/yyyy or with 7 and 6 numbers. The case with 6 numbers represents the short date, i.e. mm/dd/yy. The formulas work for: Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel for the web.
(see this link: https://support.microsoft.com/en-us/office/get-started-with-python-in-excel-a33fbcbe-065b-41d3-82cf-23d05397f53d)
In cell D2, this PYTHON formula has been applied:
pd.to_datetime(xl("A2"))
In cell D3 and below, this formula has been applied:
pd.to_datetime(xl("A3"), format = '%m%d%Y')
After you have applied the formula in D3, drag it down.
How are formulas applied?
In cell D2, type =PY and then use the Tab key on your keyboard. In the cell, you will see a green symbol with the letters PY inside it. Then in this cell enter the PYTHON code, for example pd.to_datetime(xl("A2")) and immediately while holding down the Ctrl key on the keyboard press the Enter key and the formula will be applied, giving the expected result. The results obtained from the PYTHON formula can then be converted to Excel values.
HTH
IlirU