Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lisa
 
Posts: n/a
Default Simple Rounding Problem

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.
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

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

"Lisa" wrote in message
...
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.



  #3   Report Post  
Marvin P. Winterbottom
 
Posts: n/a
Default

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" wrote:

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.

  #4   Report Post  
James
 
Posts: n/a
Default

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


"Lisa" wrote in message
...
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Array Formulas and ISNUMBER Henrik Excel Worksheet Functions 1 February 10th 05 12:31 AM
Freeze Pane problem in shared workbooks JM Excel Discussion (Misc queries) 1 February 1st 05 12:04 AM
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 05:33 PM
Problem with date base units for x axis Peter Carr Charts and Charting in Excel 1 December 15th 04 09:11 AM
Paper Tray selection Problem, Michael Hoffmann Excel Discussion (Misc queries) 4 December 3rd 04 09:08 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"