0

I downloaded some data from my bank for some transactions.

Using MS Excel 2008 V 12.2 on a Imac 2015

I usually convert the dates to YYYY-MM-DD (System International Standard) so there is absolutely no confusion ever (as what 11-02-04 would mean), as with other formats, at any time in the future.

However, when I convert the data in the cell to YYYY-MM-DD using format, half the dates never convert. They remain 26/07/2015. The strange thing is there is no real consistency, some entries convert, some don't. It seems strange if an engineer would program their dates to different formats. I've tried everything, including manually deleting the entire contents of the cell, and replacing it with 2015-07-26, then it converts to July 7, 2015. I've researched this with no luck on the web, even looking at some answers in this forum. Would appreciate any help. I can try to post the sample excel here or a screen shot if possible.

26/04/2015  27/04/2015
29/04/2015  30/04/2015

2015-04-06  2015-05-06
14/06/2015  15/06/2015

26/07/2015  27/07/2015
26/07/2015  27/07/2015
26/07/2015  27/07/2015
28/07/2015  29/07/2015
28/07/2015  29/07/2015
2015-08-08  2015-10-08
2015-08-08  2015-10-08
2015-08-08  2015-10-08
20/08/2015  21/08/2015
20/08/2015  21/08/2015
23/08/2015  24/08/2015
23/08/2015  24/08/2015

Note that in August, only one date reformatted properly. Also in April.

Am not a techie, so would a appreciate simple step by step instructions on how to fix if you can help. Also a layman's terms to explain why this is happening would be great. it seems really mindboggling to me how/why/if an software engineer? would change date formats in mid month or whatever, and also why the date won't change properly even with complete deletion and manual input.

My other question, out of interest, is that I assume hundreds of brilliant engineers design Excel. And in decades of existence, how come the International SI standard of YYYY-MM-DD, the first format I would include on day one, is NOT even an option in the drop down field?

Thanks in advance for your kind assistance,

Stu

teylyn
  • 23,615
stu
  • 1

1 Answers1

2

If you attempt to change the format of a cell containing a "date", and the display does not change, then the cell contains Text rather than a true date. You can verify this by toggling Ctrl+`. This will cause true dates to revert to numbers. Text cells will remain unchanged.

Say column A contains a mixture of true dates and Text. In B1 enter:

=IF(ISNUMBER(A1),A1,DATE(RIGHT(A1,4),MID(A1,3,2),LEFT(A1,2)))

and copy downwards. Column B values will all be dates and will all accept formatting:

enter image description here

Please note the custom format.

If your system supports VBA, you can write a macro to correct values "in-place".