#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Rounding

I am looking at a more accurate way to round numbers off. The problem is
that excel wants to stick to the simple method. I am looking for a formula
that looks at the digits beond the five for exaplme 8.356=8.4, 8.353=8.3,
8.355=8.3.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 837
Default Rounding

You will first have to explain your rounding algorithm, since it is not
obvious from your examples.

Jerry

"sloancm" wrote:

I am looking at a more accurate way to round numbers off. The problem is
that excel wants to stick to the simple method. I am looking for a formula
that looks at the digits beond the five for exaplme 8.356=8.4, 8.353=8.3,
8.355=8.3.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Rounding

when rounding I need to look at the digits behind the five to determine which
way to round up or down. 10.26=10.3, 12.6558=12.7, 52.3552=52.3. It is
basically looking at 0.55555... as the center point not .5

Trent

"Jerry W. Lewis" wrote:

You will first have to explain your rounding algorithm, since it is not
obvious from your examples.

Jerry

"sloancm" wrote:

I am looking at a more accurate way to round numbers off. The problem is
that excel wants to stick to the simple method. I am looking for a formula
that looks at the digits beond the five for exaplme 8.356=8.4, 8.353=8.3,
8.355=8.3.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 837
Default Rounding

Ignoring the vagaries of binary approximations (where 5/9=0.55555... has no
exact binary representation and the exact approximation used will depend on
what precedes it), you may be happy with
=IF(ABS(A1)*10-INT(ABS(A1)*10)<5/9,ROUNDDOWN(A1,1),ROUNDUP(A1,1))
to round a number in A1.

Jerry

"sloancm" wrote:

when rounding I need to look at the digits behind the five to determine which
way to round up or down. 10.26=10.3, 12.6558=12.7, 52.3552=52.3. It is
basically looking at 0.55555... as the center point not .5

Trent

"Jerry W. Lewis" wrote:

You will first have to explain your rounding algorithm, since it is not
obvious from your examples.

Jerry

"sloancm" wrote:

I am looking at a more accurate way to round numbers off. The problem is
that excel wants to stick to the simple method. I am looking for a formula
that looks at the digits beond the five for exaplme 8.356=8.4, 8.353=8.3,
8.355=8.3.

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 do I correct rounding errors in Excel formulas? C. Van Dam Excel Worksheet Functions 1 August 29th 06 04:37 AM
Rounding and Number Formatting Pflugs Excel Discussion (Misc queries) 2 July 18th 06 09:35 PM
Problems: rounding & formatting Text/# combinations nastech Excel Discussion (Misc queries) 1 July 5th 06 06:51 PM
Rounding to the Nearest Eighth L.sean9 Excel Discussion (Misc queries) 4 June 23rd 06 12:00 AM
Banker's Rounding - need help! Somecallmejosh Excel Discussion (Misc queries) 3 January 20th 05 09:53 PM


All times are GMT +1. The time now is 12:47 PM.

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"