Is there a bug in Excel concerning dates?

后端 未结 3 1827
北恋
北恋 2020-12-11 18:24

Please don\'t ask how I stumbled upon this but please try the following:

  1. Type \"60\" into a cell in Excel.
  2. Set the data type to a date format
3条回答
  •  猫巷女王i
    2020-12-11 18:51

    It's not a bug - Excel accepts Feb 29th 1900 as a valid date. It's a historical issue.

    Your 60 is being regarded as 'number of days since Jan 1 1900'.

    More info:

    http://polymathprogrammer.com/2009/10/26/the-leap-year-1900-bug-in-excel/

提交回复
热议问题