Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Round a number

Posted on 2011-03-03
7
Medium Priority
?
194 Views
Last Modified: 2012-05-11
Please tell me how I can display the rounded version of a number (without using a function).
THe number is the cell must display the rounded version, but the actual value must still be the non-rounded version.
0
Comment
Question by:dshrenik
  • 3
  • 3
7 Comments
 
LVL 24

Expert Comment

by:jimyX
ID: 35029682
Just set the cell format to Number with 0 Decimal places.
0
 

Author Comment

by:dshrenik
ID: 35029701
If possible, can you give me the procedure to do the same. Thanks!
0
 
LVL 39

Accepted Solution

by:
nutsch earned 1000 total points
ID: 35029745
Look at the screencast below. You get to the cells format box by clicking Ctrl+1

Thomas
nutsch-416086.flv
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 24

Assisted Solution

by:jimyX
jimyX earned 1000 total points
ID: 35029772
Range("yourcell").NumberFormat = "0"
0
 

Author Comment

by:dshrenik
ID: 35029808
Thats not rounding the number. IT is just trimming it right?
0
 
LVL 24

Expert Comment

by:jimyX
ID: 35029841
No, it's rounding the number for viewing but the original number is kept intact. try it please.
0
 

Author Comment

by:dshrenik
ID: 35029853
Sorry about that!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question