Change Date Format in Excel from mm-dd-yy hh:mm to dd-mm-yy hh:mm

前端 未结 1 1580
时光说笑
时光说笑 2021-01-26 05:37

I am exporting data from an external source.
It has a date format as mm-dd-yy hh:mm. Post pasting it in Excel the format shows as General.

相关标签:
1条回答
  • 2021-01-26 06:27

    If the cell will not change format, it may be a text string. Try using;

    =DATE(2000+MID(A1,7,2),LEFT(A1,2),MID(A1,4,2)) + TIME(MID(A1,10,2),RIGHT(A1,2),0)
    

    and set the proper formmat:

    0 讨论(0)
提交回复
热议问题