change date format of cell in excel from dd.mm.yyyy to yyy/mm/dd ( excel version 2013 )

前端 未结 4 1769
小鲜肉
小鲜肉 2021-01-24 06:48

I have been searching it for an hour but unfortunately nothing found that actually work. I have an excel sheet with a column having date in it. Current date format is dd

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-24 07:13

    You are making this way too complicated. Just use the DATE(year,month,day) function and switch the DAY() and YEAR() inside it.

    If in cell A1 you have a European-style date in this format: 12-04-2017; Excel will interpret this as Dec 4, 2017.

    Excel will interpret it properly as Apr 12, 2017 if you change it to the American-style of 04-22-2017 by writing this equation in another cell: "=DATE(YEAR(A1),DAY(A1),MONTH(A1))".
    (I put the DAY() in the month spot and the MONTH() in the day spot.) Now you can use any date format you want.

提交回复
热议问题