Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PJH
 
Posts: n/a
Default Round hh:mm:ss to whole hh:mm

I am using the following:

=TEXT((J30/$B$31)/24, "h:mm")

to convert hours and hundreths to hours and minutes. Excel is dropping the
seconds and not rounding up. (e.g., 9:00:36 should round to 9:01)

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Round hh:mm:ss to whole hh:mm

Then you need to use round, btw is there any particular reason you are using
TEXT?


=ROUND(A1/TIME(,1,),0)*TIME(,1,)

will round the time value in A1 to nearest minute
could look like

=ROUND((J30/$B$31/24)/TIME(,1,),0)*TIME(,1,)

of course that can be wrapped in TEXT

--
Regards,

Peo Sjoblom

Northwest Excel Solutions

Portland, Oregon




"PJH" wrote in message
...
I am using the following:

=TEXT((J30/$B$31)/24, "h:mm")

to convert hours and hundreths to hours and minutes. Excel is dropping
the
seconds and not rounding up. (e.g., 9:00:36 should round to 9:01)

Any ideas?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default Round hh:mm:ss to whole hh:mm


Try

=ROUND((J30/$B$31)*6,1)/144

format as [h]:mm


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=513450

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default Round hh:mm:ss to whole hh:mm

On Thu, 16 Feb 2006 16:52:27 -0800, PJH wrote:

I am using the following:

=TEXT((J30/$B$31)/24, "h:mm")

to convert hours and hundreths to hours and minutes. Excel is dropping the
seconds and not rounding up. (e.g., 9:00:36 should round to 9:01)

Any ideas?



You need to round your result to the nearest minute:


=TEXT(ROUND((J30/$B$31)/24/TIME(0,1,0),0)*TIME(0,1,0), "h:mm")


--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
round up a function RESULT Lynne Excel Discussion (Misc queries) 4 November 10th 05 04:59 PM
hh:mm - mm formated 2 round to .25, .50, .75 & 1 Laurie Excel Worksheet Functions 5 July 19th 05 05:31 PM
Round a number in nested function kim Excel Worksheet Functions 1 July 6th 05 11:45 AM
Round whole numbers up and down JoeBed Excel Discussion (Misc queries) 4 July 5th 05 05:21 PM
How do I ROUND() round off decimals of a column dataset? Højrup Excel Worksheet Functions 2 January 12th 05 10:50 AM


All times are GMT +1. The time now is 10:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"