Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

Round a number

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
dshrenik
Asked:
dshrenik
  • 3
  • 3
2 Solutions
 
jimyXCommented:
Just set the cell format to Number with 0 Decimal places.
0
 
dshrenikAuthor Commented:
If possible, can you give me the procedure to do the same. Thanks!
0
 
nutschCommented:
Look at the screencast below. You get to the cells format box by clicking Ctrl+1

Thomas
nutsch-416086.flv
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
jimyXCommented:
Range("yourcell").NumberFormat = "0"
0
 
dshrenikAuthor Commented:
Thats not rounding the number. IT is just trimming it right?
0
 
jimyXCommented:
No, it's rounding the number for viewing but the original number is kept intact. try it please.
0
 
dshrenikAuthor Commented:
Sorry about that!
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now