round a 15 digit decimal down from .05

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

Guest

What code to use to round a 15 digit decimal down if it's less than .05 and
up if it's over that in EXCEL.

My work does calculations in grams.

Also, need to know how to divide the above number by 100 to get a per cent
of total weight .

I'm tending to want to use MOD, MROUND and INTEGER.
 
I'll try it and get back to you. Thanks. What about the cell that makes a
percent from dividing two cells of the grams with 15 digits - please answer
in both Excel and VBA.
 
The meaning of that part of your question is not entirely clear, but
here are some observations that may help with what you are asking.

"/" does division in both Excel and VBA, as in
=A1/100
or in VBA
ratio = [A1] / 100

In Excel, you can format a decimal fraction as a percent either by
pressing the % button on the Formatting toolbar, or by
Format|Cells|Number|Percentage.

You have not said what anything in your post has to do with weights, but
=componentWt/TotalWt
formatted as percentage would be percent total weight.

Jerry
 

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

Back
Top