The Computer Oracle

Formula to add minutes to date+time in Excel

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Track title: CC L Beethoven - Piano Sonata No 8 in C

--

Chapters
00:00 Formula To Add Minutes To Date+Time In Excel
00:48 Accepted Answer Score 26
02:06 Thank you

--

Full question
https://superuser.com/questions/649718/f...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#microsoftexcel #datetime

#avk47



ACCEPTED ANSWER

Score 26


You would need to divide the number of minutes by 1440 (24 hours in a day × 60 minutes in an hour) and then add that to the date.

=B4+(B3/1440)

or if you want to be more verbose...

=B4+(B3/24/60)

The reason this works is that Excel date+time values are stored as a floating point decimal number representing the number of days that have passed since January 1st 1900. So one hour is essentially represented as 0.04166666666 (1 day ÷ 24 hours). If you further divide that by 60 (the number of minutes in an hour) then you will get the representation of minutes which is 0.00069444444 (1 day ÷ 24 hours ÷ 60 minutes).

The reason that =TIME(...) does not work as you expected is that it's return value is limited to less than 1 day (i.e.0 to 0.99999999999). Anything that would result in more than 1 day would wrap around again.