ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Round formulas (https://www.excelbanter.com/excel-worksheet-functions/97341-round-formulas.html)

mstack

Round formulas
 
Hello,

I need a formula that will round up or down based on .7 decimal rather than
..5. For example, the number 45.7 would round up to 46. The number 45.6
would round down to 45.

Is there a formula to help me do this? I appreciate any help I can get.
Thank you.

~Meghan

Bernard Liengme

Round formulas
 
Try this
=IF(MOD(A1,1)=0.7,ROUNDUP(A1,0),ROUNDDOWN(A1,0))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email


"mstack" wrote in message
...
Hello,

I need a formula that will round up or down based on .7 decimal rather
than
.5. For example, the number 45.7 would round up to 46. The number 45.6
would round down to 45.

Is there a formula to help me do this? I appreciate any help I can get.
Thank you.

~Meghan




Bernard Liengme

Round formulas
 
Alternative
=INT(A1)+(MOD(A1,1)=0.7)

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"mstack" wrote in message
...
Hello,

I need a formula that will round up or down based on .7 decimal rather
than
.5. For example, the number 45.7 would round up to 46. The number 45.6
would round down to 45.

Is there a formula to help me do this? I appreciate any help I can get.
Thank you.

~Meghan




[email protected]

Round formulas
 
Hello Meghan,

=INT(A1+0.3)

HTH,
Bernd


Marcelo

Round formulas
 
hi,

try to use:

=if(c3-int(c3)=0.6999,(1-(c3-int(c3))+c3),int(c3))

hth
regards from Brazil
Marcelo

"mstack" escreveu:

Hello,

I need a formula that will round up or down based on .7 decimal rather than
.5. For example, the number 45.7 would round up to 46. The number 45.6
would round down to 45.

Is there a formula to help me do this? I appreciate any help I can get.
Thank you.

~Meghan



All times are GMT +1. The time now is 07:20 PM.

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