#1   Report Post  
ynissel
 
Posts: n/a
Default Rounding

When using MRound (Or floor/Ceiling) Is there a seperate function for
negative. Meaning I have a column with positive numbers and negative numbers
which I need rounded to the nearest 1/8th. Do I have to first do an IF to
see if its + then do an Mround (a1,.125) and if its - then Mround (a1,-.125) ?
Thanks.
  #2   Report Post  
Kostis Vezeridis
 
Posts: n/a
Default

You can use
=MROUND(A1, SIGN(A1)*(1/8))

HTH
Kostis Vezerides

"ynissel" wrote in message
...
When using MRound (Or floor/Ceiling) Is there a seperate function for
negative. Meaning I have a column with positive numbers and negative

numbers
which I need rounded to the nearest 1/8th. Do I have to first do an IF to
see if its + then do an Mround (a1,.125) and if its - then Mround

(a1,-.125) ?
Thanks.



  #3   Report Post  
ynissel
 
Posts: n/a
Default

Perfect - thanks !!

"Kostis Vezeridis" wrote:

You can use
=MROUND(A1, SIGN(A1)*(1/8))

HTH
Kostis Vezerides

"ynissel" wrote in message
...
When using MRound (Or floor/Ceiling) Is there a seperate function for
negative. Meaning I have a column with positive numbers and negative

numbers
which I need rounded to the nearest 1/8th. Do I have to first do an IF to
see if its + then do an Mround (a1,.125) and if its - then Mround

(a1,-.125) ?
Thanks.




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
Rounding LaraHubbs Excel Discussion (Misc queries) 2 June 21st 05 09:42 PM
Percentage rounding error in charts Tracey Excel Discussion (Misc queries) 4 May 14th 05 04:01 AM
Banker's Rounding - need help! Somecallmejosh Excel Discussion (Misc queries) 3 January 20th 05 09:53 PM
How do I make Excel stop rounding off my numbers that are 16 digi. Aida Excel Discussion (Misc queries) 1 December 6th 04 04:34 PM
rounding Alex Excel Worksheet Functions 4 November 9th 04 04:39 PM


All times are GMT +1. The time now is 05:52 AM.

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"