#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Round it off

Hi,

I am creating estimates for a tast to be completed. The result comes in
mins. I have divided it by 60 to get it in hours. However, The result coming
is something like 1.42 hrs. 8.89 hrs etc.

What i want is that it should round it off to the nearest 15 mins and show
it. An hour is divided into .25 (15 mins); .5 (30 mins); .75 (45 Mins); 1 (1
hour)
Examples:
1.42 Hrs means 1 Hour and 21 Mins. (app) - This should show 1.5 hours
2.22 Hrs means 2 Hours and 13 mins - This should show as 2.25 hours
3.72 Hrs means 3 Hours and 42 mins - This should show as 3.75 hours

Something on these lines... is this possible? Round up and Round down
functions don't work for me as they round it to the no. of decimals we
specify and that does no good. I can't round it off to 0 decimals as it gets
the numbers wrong. I mean it might change 1 hour 5 min task to 2 hours. and
vice versa.

Thanks and Regards,
Sri Harsha Kiran.P

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Round it off

The below returns number rounded up, away from zero, to the nearest multiple
of significance

=CEILING(A1,0.25)


If this post helps click Yes
---------------
Jacob Skaria


"Sri Harsha" wrote:

Hi,

I am creating estimates for a tast to be completed. The result comes in
mins. I have divided it by 60 to get it in hours. However, The result coming
is something like 1.42 hrs. 8.89 hrs etc.

What i want is that it should round it off to the nearest 15 mins and show
it. An hour is divided into .25 (15 mins); .5 (30 mins); .75 (45 Mins); 1 (1
hour)
Examples:
1.42 Hrs means 1 Hour and 21 Mins. (app) - This should show 1.5 hours
2.22 Hrs means 2 Hours and 13 mins - This should show as 2.25 hours
3.72 Hrs means 3 Hours and 42 mins - This should show as 3.75 hours

Something on these lines... is this possible? Round up and Round down
functions don't work for me as they round it to the no. of decimals we
specify and that does no good. I can't round it off to 0 decimals as it gets
the numbers wrong. I mean it might change 1 hour 5 min task to 2 hours. and
vice versa.

Thanks and Regards,
Sri Harsha Kiran.P

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Round it off

<<round it off to the nearest 15 mins

=IF(MOD(A1,0.25)0.125,CEILING(A1,0.25),FLOOR(A1,0 .25))

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

The below returns number rounded up, away from zero, to the nearest multiple
of significance

=CEILING(A1,0.25)


If this post helps click Yes
---------------
Jacob Skaria


"Sri Harsha" wrote:

Hi,

I am creating estimates for a tast to be completed. The result comes in
mins. I have divided it by 60 to get it in hours. However, The result coming
is something like 1.42 hrs. 8.89 hrs etc.

What i want is that it should round it off to the nearest 15 mins and show
it. An hour is divided into .25 (15 mins); .5 (30 mins); .75 (45 Mins); 1 (1
hour)
Examples:
1.42 Hrs means 1 Hour and 21 Mins. (app) - This should show 1.5 hours
2.22 Hrs means 2 Hours and 13 mins - This should show as 2.25 hours
3.72 Hrs means 3 Hours and 42 mins - This should show as 3.75 hours

Something on these lines... is this possible? Round up and Round down
functions don't work for me as they round it to the no. of decimals we
specify and that does no good. I can't round it off to 0 decimals as it gets
the numbers wrong. I mean it might change 1 hour 5 min task to 2 hours. and
vice versa.

Thanks and Regards,
Sri Harsha Kiran.P

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Round it off

Another way
=ROUND(A1/0.25,0)*0.25

PS: If you are using Analysis ToolPak take a look at MROUND() function

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

<<round it off to the nearest 15 mins

=IF(MOD(A1,0.25)0.125,CEILING(A1,0.25),FLOOR(A1,0 .25))

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

The below returns number rounded up, away from zero, to the nearest multiple
of significance

=CEILING(A1,0.25)


If this post helps click Yes
---------------
Jacob Skaria


"Sri Harsha" wrote:

Hi,

I am creating estimates for a tast to be completed. The result comes in
mins. I have divided it by 60 to get it in hours. However, The result coming
is something like 1.42 hrs. 8.89 hrs etc.

What i want is that it should round it off to the nearest 15 mins and show
it. An hour is divided into .25 (15 mins); .5 (30 mins); .75 (45 Mins); 1 (1
hour)
Examples:
1.42 Hrs means 1 Hour and 21 Mins. (app) - This should show 1.5 hours
2.22 Hrs means 2 Hours and 13 mins - This should show as 2.25 hours
3.72 Hrs means 3 Hours and 42 mins - This should show as 3.75 hours

Something on these lines... is this possible? Round up and Round down
functions don't work for me as they round it to the no. of decimals we
specify and that does no good. I can't round it off to 0 decimals as it gets
the numbers wrong. I mean it might change 1 hour 5 min task to 2 hours. and
vice versa.

Thanks and Regards,
Sri Harsha Kiran.P

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 firroo Excel Discussion (Misc queries) 2 December 18th 08 02:09 PM
Round to .99? WBTKbeezy Excel Worksheet Functions 2 November 14th 07 03:23 AM
@ROUND steph44haf Excel Worksheet Functions 4 October 23rd 06 02:06 PM
round up James Horton Las Vegas Excel Worksheet Functions 3 August 29th 06 09:07 AM
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 05:16 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"