Search code examples
exceltimenumbersdate-conversion

convert all dates in a column to numbers


I'm trying to convert time to numbers in excel. I am using this formula:

=HOUR(A2) + MINUTE(A2) / 60 + SECOND(A2) / 3600

And it works well, but I have to convert a column with around 65.000 of dates. How do I do that in an elegant and time saving way?


Solution

  • So assuming that your formula does what you want it to do, you just have to double click on the lower-right part on the cell with your first formula. So if your data are in the range A2:A65000, write your formula on cell B2, and double click on its lower-right part.

    See the pic below:

    enter image description here