It is quiet normal that you can see in NotePad but not in Excel simply because there are altogether different.
If you pass the date 01102009, Excel will remove the 0 "not significant" to the left, and then interpret the data as the number 1102009.
Possible solutions:
- Change the extension TXT: On opening the file using Excel, you can specify the date format of the column and Excel will interpret correctly your data.
- Open the file as it is and then treat it in Excel or VBA. For example, in Excel, you can have
Code:
=DATE(RIGHT (A1,4);IF(LEN(A1)=7;MID(A1,2,2);MID (A1,3,2));IF(LEN(A1)=7;LEFT(A1,1);LEFT(A1,2)))
Bookmarks