Solved

Round a number

Posted on 2011-03-03
7
185 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 250 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 24

Assisted Solution

by:jimyX
jimyX earned 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tags from access to excel 3 28
time format showing wrong 12 50
Problem to With line 4 39
Excel Conditional Formatting in a Macro 4 25
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now