Search code examples
exceldatenumber-formatting

Formula to convert date to number


I would like to know the formula to convert a date in 10/26/2013 to 41573 number as done in Excel.

Like how 10/26/2013 is converted to 41573.


Solution

  • If you change the format of the cells to General then this will show the date value of a cell as behind the scenes Excel saves a date as the number of days since 01/01/1900

    Screenprint 1

    Screenprint 2

    If your date is text and you need to convert it then DATEVALUE will do this:

    Datevalue function