Each result is returned directly to the DATE function.
The final result is a proper Excel date that can be formatted any way you like.
This approach can be customized as needed.
That’s why we add zero at the end.
The math operation causes Excel to try and convert the string to a number.
When successful, this will result in a valid Excel date.
Note you may need to apply datenumber formattingto display the date correctly.
BecauseExcel dates are in fact numbers, this can often do the trick.
You may need to apply a date format if the operations succeeds.
Add zero to fix dates
Sometimes, you’ll encounter dates in a text format that Excelshouldrecognize.
When you add zero, Excel will attempt to coerce text values to numbers.
For example, =LEFT(“apple”,3) returns “app”.
For example, =MID(“apple”,2,3) returns “ppl”.
For example, =RIGHT(“apple”,3) returns “ple”.