Note: The other languages of the website are Google-translated. Back to English

How to round time to nearest hour/minute/second in Excel?

doc-round-time-1
This tutorial is talking about rounding time to nearest hour, minute or second in Excel as below screenshot shown.
Round time to nearest hour/minute/second

arrow blue right bubble Round time to nearest hour/minute/second

Round time to nearest 1 hour

Select a cell and type this formula =MROUND(A2,"1:00") into it, and press Enter key, then drag autofill handle to the cells you need.
doc-round-time-2

Tips:

1. You need to format the cells as time format firstly by selecting cells and right clicking to select Format Cells in the context menu; in the Format Cells dialog, selecting Time in Category list and then selecting a time type in Type list, and clicking OK.

2. You also can use these formulas to round time to nearest hour =ROUND(A2/(1/24),0)*(1/24) or =MROUND(A2,1/24).

3. If you want to round time to previous 1 hour, you can use this formula =FLOOR(A2,1/24).

4. In above formulas, you can change 1 to other number as you need.

Round time to nearest 15 minute

Select a cell and type this formula =ROUND(A2*(24*60/15),0)/(24*60/15) into it, and press Enter key, then drag autofill handle to the cells you need.doc-round-time-3

Tip:

1. You need to format the cells as time format firstly by selecting cells and right clicking to select Format Cells in the context menu; in the Format Cells dialog selecting Time in Category list, selecting a time type in Type list, and clicking OK.

2. You also can use this formula =MROUND(A2,15/60/24) to round time to nearest minute.

3. If you want to round time to previous 15 minute, use this formula =FLOOR(A2,15/60/24).

4. In above formulas, you can change 15 to other number as you need.

Round time to nearest 10 second

Select a cell and type this formula =MROUND(A2, 10/86400) into it, and press Enter key, then drag autofill handle to the cells you need.
doc-round-time-4

Tip:

1. You need to format the cells as time format firstly by selecting cells and right clicking to select Format Cells in the context menu, then go to select a time type in the Format Cells dialog.

2. In above formula, you can change 10 to other number as you need. For example, use =MROUND(A2, 20/86400) to round time to nearest 20 second.


Quickly convert time to decimal value in Excel

For example, you have a list of time needed to be converted todecimal hours, minutes or seconds, how can you quickly and easily solve it in Excel? The Convert Time of Kutools for Excel, can do a favor for you.   Click for 30 days free trial!
doc convert time
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

Relative Articles:


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office / Excel 2007-2021 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (13)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi,

I’m trying to round down over time hours. Everything should be in down to the hour examples
1:56 – 1:00
2:17 – 2:00

I’m using floor currently but have come to a little problem. When it is exactly on the hour like 1:00, 2:00, 3:00, it rounds down to 0:00, 1:00, 2:00 but should stay at respective hours. Any possible solution?

Thanks!
This comment was minimized by the moderator on the site
Sorry for reply you too late, I did not found the direct formula to solve your problem, but you can add 1:00 into a cell, and then use =FLOOR(A2,1/24)-the cell contains 1:00 to get the correct answer.
This comment was minimized by the moderator on the site
What is the easiest formula to round Work Time Hours down to the nearest tenth of an hour?
This comment was minimized by the moderator on the site
=ROUND(G2*(1*60/30),0)/(1*60/30) , you mean like this?
This comment was minimized by the moderator on the site
Thank you for posting a way to round the time down to the nearest hour with the Floor function! It's the only thing that actually worked!
This comment was minimized by the moderator on the site
hi do have any formula to round up total hours 1 minute into 1 hours, example 124:01-125:00
This comment was minimized by the moderator on the site
Hello, jaime, this fomrula can help you =ROUNDUP( B2*24, 0) / 24
This comment was minimized by the moderator on the site
Hi, your formula for rounding to the nearest minute should be MROUND(A2,1/60/24), thanks for great work on these.
This comment was minimized by the moderator on the site
Thank You for posting this!
This comment was minimized by the moderator on the site
HOLA ESTOY TRATANDO DE REDONDEAR LAS HORAS, EJEMPLO SI LLEGA A LA HORA CON FRACION DE 15 MINUTOS SE QUEDE EN LA HORA, SI PASA EL MINUTO 16 HASTA EL MINUTO 45 SE QUEDE EN HORAS Y MEDIA Y DESPUES DEL MINUTO 46 SE SUBA A LA SIGUIENTE HORA. GRACIAS
This comment was minimized by the moderator on the site
Hi, FREDY, you can try this formula
=IF(MINUTE(A3)<15,MROUND(A3,"1:00"),IF(MINUTE(A3)<45,MROUND(A3,"0:30"),MROUND(A3,"1:00")))
A3 is the cell that contains the time.
This comment was minimized by the moderator on the site
Estoy tratando de redondear minutos es decir si esta 1:40 se quede 2:00 minutos o 1:04 solo 1:00 minuto
This comment was minimized by the moderator on the site
Quale formula si può usare per arrotondare al quarto d'ora, considerando che, per l'orario d'ingresso il minuto 15/30/45/00 deve essere successivo al minuto della timbratura mentre per l'uscita deve accadere esattamente il contrario?

Esempio:
ingresso 7:42 -> 7:45
uscita 12:18 -> 12:15
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL