Simple Rounding Problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I make the number 27.9864 look like 27.9900? I've tried a few things
and am doiwn to VB stuff which I don't quite understand so any help would be
appreciated.
 
Lisa,

If you want to change how a cell is displayed, with the number is in cell
A1, the formula

=ROUND(A1,2)

in another cell, formatted for "0.0000", will show as you desire.

If you want to change the number, the macro lines

ActiveCell.Value = Application.Round(ActiveCell.Value, 2)
ActiveCell.NumberFormat = "0.0000"

will change the activecell's actual value.

HTH,
Bernie
MS Excel MVP
 
In a strict mathematics sense, 27.9864 does not round to 27.9900
The extra zeros are showing a precision that's not there.
 
Lisa,

You can use the round function for this eg Round(A1, 2) - these will round
the value in cell A1 to 2 dps

J
 

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

Similar Threads

New printer recommendations 2
Shpock vs Ebay? 4
Round formula 1
Round up an average 3
Rounding 6
Rounding 4
If Function and rounding numbers 3
Rounding Problem?? 1

Back
Top