Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default round a 15 digit decimal down from .05

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default round a 15 digit decimal down from .05

In Excel
=ROUND(x,1)
or in VBA
Application.Round(x,1)

Jerry

Excell-ent wrote:

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.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default round a 15 digit decimal down from .05

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.

"Jerry W. Lewis" wrote:

In Excel
=ROUND(x,1)
or in VBA
Application.Round(x,1)

Jerry

Excell-ent wrote:

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.



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
how to place a decimal after 3rd digit Alison Excel Discussion (Misc queries) 6 October 27th 08 11:56 PM
Format to Round to Tens Digit Andy Excel Discussion (Misc queries) 4 May 30th 07 02:46 AM
Round Up by a factor not by a digit [MROUNDUP(number,multiple)] [email protected] Excel Worksheet Functions 8 May 28th 07 10:08 AM
How do I stop decimal being placed in a 3 digit whole number Jhawk Setting up and Configuration of Excel 4 August 31st 06 02:03 AM
WHAT SYNTAX IS USED TO ROUND A 4-DIGIT NUMBER TO THE NEAREST THOUS KENITOSAN Excel Discussion (Misc queries) 4 February 19th 05 10:06 PM


All times are GMT +1. The time now is 07:14 AM.

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"