Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 271
Default Need help with rounding

I have a rounding question. i need to do the following:

Round:


$#.00 - $#.09 round up to $#.09

$#.10 - $#.49 round up to $#.49

$#.50 - $#.99 round up to $#.99

Examples: 11.05 would round to 11.09
25.36 would round to 25.49
5.60 would round to 5.99

Is there a way to do this?

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Need help with rounding

=IF(MOD(A1,1)<=0.09,INT(A1)+0.09,IF(MOD(A1,1)<=0.4 9,INT(A1)+0.49,INT(A1)+0.99))

Note that you didn't specify what happens to inputs between 0.09 and .10,
between .49 and .50, and between .99 and .00.
--
David Biddulph

"SUSAN" wrote in message
...
I have a rounding question. i need to do the following:

Round:


$#.00 - $#.09 round up to $#.09

$#.10 - $#.49 round up to $#.49

$#.50 - $#.99 round up to $#.99

Examples: 11.05 would round to 11.09
25.36 would round to 25.49
5.60 would round to 5.99

Is there a way to do this?

Thank you!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Need help with rounding

Hi Susan

With the number in A1 try this formula in B1:

=IF(A1-INT(A1)<=0.09,INT(A1)+0.09,IF(A1-INT(A1)<=0.49,INT(A1)+0.49,INT(A1)+0.99))

Regards,

Per

"SUSAN" skrev i meddelelsen
...
I have a rounding question. i need to do the following:

Round:


$#.00 - $#.09 round up to $#.09

$#.10 - $#.49 round up to $#.49

$#.50 - $#.99 round up to $#.99

Examples: 11.05 would round to 11.09
25.36 would round to 25.49
5.60 would round to 5.99

Is there a way to do this?

Thank you!


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Need help with rounding

Couple of way to do this
=if(mod(a1,1)<=.09,int(a1)+.09,if (mod(a1,1)<=.49,int(a1)+.49,int(a1)+.99))
would be the way I'd do it.

"SUSAN" wrote:

I have a rounding question. i need to do the following:

Round:


$#.00 - $#.09 round up to $#.09

$#.10 - $#.49 round up to $#.49

$#.50 - $#.99 round up to $#.99

Examples: 11.05 would round to 11.09
25.36 would round to 25.49
5.60 would round to 5.99

Is there a way to do this?

Thank you!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 271
Default Need help with rounding

Thank you so much, exactly what we needed!

"David Biddulph" wrote:

=IF(MOD(A1,1)<=0.09,INT(A1)+0.09,IF(MOD(A1,1)<=0.4 9,INT(A1)+0.49,INT(A1)+0.99))

Note that you didn't specify what happens to inputs between 0.09 and .10,
between .49 and .50, and between .99 and .00.
--
David Biddulph

"SUSAN" wrote in message
...
I have a rounding question. i need to do the following:

Round:


$#.00 - $#.09 round up to $#.09

$#.10 - $#.49 round up to $#.49

$#.50 - $#.99 round up to $#.99

Examples: 11.05 would round to 11.09
25.36 would round to 25.49
5.60 would round to 5.99

Is there a way to do this?

Thank you!




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
I need a formula with rounding up & rounding down to the nearest . Tony Kay Excel Worksheet Functions 3 May 29th 07 11:13 PM
ROUNDING UP Novice2000 New Users to Excel 2 October 10th 06 02:14 PM
Trying Rounding Nicholas Excel Discussion (Misc queries) 3 October 5th 06 06:01 PM
Rounding JM Excel Discussion (Misc queries) 5 September 21st 06 03:30 AM
rounding help JM Excel Discussion (Misc queries) 6 September 21st 06 02:17 AM


All times are GMT +1. The time now is 05:37 PM.

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

About Us

"It's about Microsoft Excel"