Rounding

G

Guest

I have a worksheet where to formula gives a result in a monetary format,
however the calculations cause the answer to be rounded by. For example the
result maybe $2.456 which rounds up to $2.46. I want the amount to remain as
$2.45, in other words I don't want rounding to occur. Is there anyway I can
turn rounding off in certain cells?
 
K

Ken Johnson

elusiverunner said:
I have a worksheet where to formula gives a result in a monetary format,
however the calculations cause the answer to be rounded by. For example the
result maybe $2.456 which rounds up to $2.46. I want the amount to remain as
$2.45, in other words I don't want rounding to occur. Is there anyway I can
turn rounding off in certain cells?

Hi elusiverunner,

=TRUNC(2.456 , 2)

returns 2.45

Ken Johnson
 
G

Guest

Thanks for your reply Ken, but the cells that require the lack of rounding
already has a formula in it. Is there a way I can merge this with other
formula?
 
K

Ken Johnson

elusiverunner said:
Thanks for your reply Ken, but the cells that require the lack of rounding
already has a formula in it. Is there a way I can merge this with other
formula?

Hi Steven,

What is that formula?

Or try...

=TRUNC(original formula without the =, 2)

Ken Johnson
 
G

Guest

Sorry that it has taken so long for me to get back to you, Ken. I have tried
your suggestion and it works a treat. However, cells that do not have values
in have now got this - "#VALUE!" without the " were they were blank before
getting values inserted.

I have tried to manipulate the formula to try and get blank cells when there
is no data, but to no luck. The formula before the "TRUNC" statement looks
like this =IF(OR(D5=""),"",(D5/10))
 
J

joeu2004

elusiverunner said:
Ken Johnson said:
try...
=TRUNC(original formula without the =, 2)
[....]
I have tried to manipulate the formula to try and get blank cells when there
is no data, but to no luck. The formula before the "TRUNC" statement looks
like this =IF(OR(D5=""),"",(D5/10))

=if(D5="", "", trunc(d5/10, 2))
 

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