Decimal?

L

LD

Hi all.

I need help with a formula.
I want to roundup if a value's decimal is greater than .7
and rounddown if less.

How do I get the value of the decimal?
 
H

Harald Staff

Hi

One way
=INT(A1)+(MOD(A1,1)>=0.7)
You don't spesify desired behavior on exact .7 .Here it rounds up. Remove
the last equal sign to round down instead.
 
P

Paul

LD said:
Hi all.

I need help with a formula.
I want to roundup if a value's decimal is greater than .7
and rounddown if less.

How do I get the value of the decimal?

One way is to subtract 0.2 from the number and then round as normal:
=ROUND(A1-0.2,0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top