Converting String to Date in Excel

前端 未结 2 556
忘了有多久
忘了有多久 2021-01-24 07:19

I\'ve got date strings formatted this way: \"Tuesday, January 3, 2012\"

How can I convert them in a date format in Excel 2010?

Thank you in advance!

2条回答
  •  长发绾君心
    2021-01-24 07:41

    There's the DATEVALUE worksheet function which converts text to dates, however it doesn't seem to accept "Tuesday, January 3, 2012". But it does accept e.g. "3 January 2012" so if you manipulate the string into that format you should be able to get it to work.

    Just a thought, these data functions like DATEVALUE often depend on your display settings for date, so what works for me in London UK may be different if you're elsewhere in the world with different display settings.

提交回复
热议问题