ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Rounding time (https://www.excelbanter.com/excel-worksheet-functions/157931-rounding-time.html)

Amy

Rounding time
 
Hi,

I would like to round time to the nearest minute in Excel. For example have
a time that is 7:03:01 and 7:03:59 and they both appear as 7:03 with the
format h:mm when I would prefer they appear as 7:03 and 7:04. Can anyone
please tell me how I can do this.

Regards,

Amy

Mike H

Rounding time
 
Hi Amy,

This rounds the time in A1 to the nearest minute.

=ROUND((A1)/"0:01:00",0)*"0:01:00"

Mike

"Amy" wrote:

Hi,

I would like to round time to the nearest minute in Excel. For example have
a time that is 7:03:01 and 7:03:59 and they both appear as 7:03 with the
format h:mm when I would prefer they appear as 7:03 and 7:04. Can anyone
please tell me how I can do this.

Regards,

Amy


JE McGimpsey

Rounding time
 
One way:

Since XL stores times as fractional days, 1 = 24 hours * 60 minutes =
1440 minutes. So,

=ROUND(A1*1440,0)/1440

Format as time, if necessary.

In article ,
Amy wrote:

Hi,

I would like to round time to the nearest minute in Excel. For example have
a time that is 7:03:01 and 7:03:59 and they both appear as 7:03 with the
format h:mm when I would prefer they appear as 7:03 and 7:04. Can anyone
please tell me how I can do this.

Regards,

Amy


David Biddulph[_2_]

Rounding time
 
=MROUND(A28,1/1440)
--
David Biddulph

"Amy" wrote in message
...
Hi,

I would like to round time to the nearest minute in Excel. For example
have
a time that is 7:03:01 and 7:03:59 and they both appear as 7:03 with the
format h:mm when I would prefer they appear as 7:03 and 7:04. Can anyone
please tell me how I can do this.

Regards,

Amy




Rick Rothstein \(MVP - VB\)

Rounding time
 
In addition to the posted ROUND solutions, if you have the Analysis ToolPak
add-in added in...

=MROUND(F1,TIME(0,1,0))

appears to also work.

Rick


"Amy" wrote in message
...
Hi,

I would like to round time to the nearest minute in Excel. For example
have
a time that is 7:03:01 and 7:03:59 and they both appear as 7:03 with the
format h:mm when I would prefer they appear as 7:03 and 7:04. Can anyone
please tell me how I can do this.

Regards,

Amy




All times are GMT +1. The time now is 11:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com