Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
widman
 
Posts: n/a
Default Round up-down-or middle

Anyone know a good way to round so that a prices can end up in 50 cent
increments?
28.10 would round down to 28.00
28.40 wound end up 28.50
28.80 would end up 29.00
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Round up-down-or middle

Try one of these:

For a value in A1

B1: =MROUND(A1,0.5)
or
B1: =ROUND(A1/0.5,0)*0.5

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"widman" wrote:

Anyone know a good way to round so that a prices can end up in 50 cent
increments?
28.10 would round down to 28.00
28.40 wound end up 28.50
28.80 would end up 29.00

  #3   Report Post  
Posted to microsoft.public.excel.misc
widman
 
Posts: n/a
Default Round up-down-or middle

Yep, the second one did it. Excel did not recognize "mround" as a formula.

thanks

"Ron Coderre" wrote:

Try one of these:

For a value in A1

B1: =MROUND(A1,0.5)
or
B1: =ROUND(A1/0.5,0)*0.5

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"widman" wrote:

Anyone know a good way to round so that a prices can end up in 50 cent
increments?
28.10 would round down to 28.00
28.40 wound end up 28.50
28.80 would end up 29.00

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gary Brown
 
Posts: n/a
Default Round up-down-or middle


Not sure if this is the most efficient of formulas, but i works for
me:-

=IF((A1-INT(A1))<0.25,FLOOR(A1,0.5),IF((A1-INT(A1))=0.75,CEILING(A1,0.5),IF((A1-INT(A1))<0.5,CEILING(A1,0.5),FLOOR(A1,0.5))))

Assuming your value is in A1, if there are to be negative numbers, you
may need to alter the formula to calculate on Absolute values

G


--
Gary Brown
------------------------------------------------------------------------
Gary Brown's Profile: http://www.excelforum.com/member.php...o&userid=17084
View this thread: http://www.excelforum.com/showthread...hreadid=536862

  #5   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default Round up-down-or middle

Excel did not recognize "mround" as a formula.

The MROUND function is part of the Analysis Tool-Pak add-in. In
order to use it, you must go to the Tools menu, choose Add-Ins,
and select Analysis Tool-Pak from the list. Once you've checked
this item, the MROUND function will be available for use.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"widman" wrote in message
...
Yep, the second one did it. Excel did not recognize "mround"
as a formula.

thanks

"Ron Coderre" wrote:

Try one of these:

For a value in A1

B1: =MROUND(A1,0.5)
or
B1: =ROUND(A1/0.5,0)*0.5

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"widman" wrote:

Anyone know a good way to round so that a prices can end up
in 50 cent
increments?
28.10 would round down to 28.00
28.40 wound end up 28.50
28.80 would end up 29.00



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 time maybe this explanation will help Darts Excel Discussion (Misc queries) 1 March 22nd 06 09:57 PM
round up a function RESULT Lynne Excel Discussion (Misc queries) 4 November 10th 05 04:59 PM
Remove middle initial from "first name middle initial" Justin F. Excel Discussion (Misc queries) 15 September 26th 05 06:13 PM
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 08:28 AM.

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"