Excel - just the hour

User has an excel spreadsheet and he wants column 3 to take the number from the same rown in column 2 and round it to the preceding. So 12:15 in column 2 would appear as 12:00

12:59 would also appear as 12:00
Who is Participating?
byundtConnect With a Mentor Commented:
You can shorten the FLOOR formula to:

By way of explanation, dates and times are stored as numbers. The date is the integer part of the number and the time is the decimal fraction. Since there are 24 hours in a day, you want FLOOR to round down to multiple of 1/24.
ZamZ0Connect With a Mentor Commented:



mrmythAuthor Commented:
great thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.