ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Round to a particular tolerance (https://www.excelbanter.com/excel-worksheet-functions/215075-round-particular-tolerance.html)

Chad[_3_]

Round to a particular tolerance
 
Hi All,

Is there a way to round to an even numbers, or odd. It doesn't really
matter. Basically this is what I need:

120=120
121=120
121.999=120
122=122
123=122
124=124
125=124
126=126
127=126
128=128
129=128
130=130

or maybe even change it later to
120 to 122.999 = 120
123 to 125.999 = 123
etc...

the one catch is, it must round down to that number. When I looked at
'rounddown' it only rounds to 1, 10, 100 etc. unless I am wrong

thanks
Chad



Glenn

Round to a particular tolerance
 
Chad wrote:
Hi All,

Is there a way to round to an even numbers, or odd. It doesn't really
matter. Basically this is what I need:

120=120
121=120
121.999=120
122=122
123=122
124=124
125=124
126=126
127=126
128=128
129=128
130=130


=ROUNDDOWN(A1/2,0)*2


or maybe even change it later to
120 to 122.999 = 120
123 to 125.999 = 123
etc...


=ROUNDDOWN(A1/3,0)*3


the one catch is, it must round down to that number. When I looked at
'rounddown' it only rounds to 1, 10, 100 etc. unless I am wrong

thanks
Chad



Shane Devenshire[_2_]

Round to a particular tolerance
 
Hi,

Try this

=MROUND(A1-1,2)

This assumes your numbers start in cell A1. This is an analysis toolpak
function, so if you are using 2003 or earlier, choose Tools, Add-ins, and
check the Analysis ToolPak.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Chad" wrote:

Hi All,

Is there a way to round to an even numbers, or odd. It doesn't really
matter. Basically this is what I need:

120=120
121=120
121.999=120
122=122
123=122
124=124
125=124
126=126
127=126
128=128
129=128
130=130

or maybe even change it later to
120 to 122.999 = 120
123 to 125.999 = 123
etc...

the one catch is, it must round down to that number. When I looked at
'rounddown' it only rounds to 1, 10, 100 etc. unless I am wrong

thanks
Chad





All times are GMT +1. The time now is 03:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com