Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default How to Avoid Rounding Errors

As I understand it Excel displays data according to the Format of a Cell but
calculates using the underlying value. One can get at the value but using
Cell.Value. Please correct this if I'm wrong as I'm no expert! Now I've come
across many cases where this has made it appear that macro's don't sum
correctly ( and in fact in spreadsheets in general ) so other than using
Round() in every calculation ( and I'm assuming here the this will force
Excel to store and use the rounded value from the cell ) is there any way of
saying 'Look Excel all my figures are currency so please round the results of
all your calcs to 2 dp' e.g. £10 / 3 = £3.33 not 3.3333
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default How to Avoid Rounding Errors

Take a look he

http://www.mcgimpsey.com/excel/pennyoff.html

In article ,
"John Pritchard" wrote:

As I understand it Excel displays data according to the Format of a Cell but
calculates using the underlying value. One can get at the value but using
Cell.Value. Please correct this if I'm wrong as I'm no expert! Now I've come
across many cases where this has made it appear that macro's don't sum
correctly ( and in fact in spreadsheets in general ) so other than using
Round() in every calculation ( and I'm assuming here the this will force
Excel to store and use the rounded value from the cell ) is there any way of
saying 'Look Excel all my figures are currency so please round the results of
all your calcs to 2 dp' e.g. £10 / 3 = £3.33 not 3.3333

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default How to Avoid Rounding Errors

Thanks - I'll experiment with using the precision as displayed option. I
guess this means that the .value is stored as 2 d.p. in all cases if I'm
working with currency? I've also heared that there's a .value2 - have you any
idea if this is true or what it is used for.

"JE McGimpsey" wrote:

Take a look he

http://www.mcgimpsey.com/excel/pennyoff.html

In article ,
"John Pritchard" wrote:

As I understand it Excel displays data according to the Format of a Cell but
calculates using the underlying value. One can get at the value but using
Cell.Value. Please correct this if I'm wrong as I'm no expert! Now I've come
across many cases where this has made it appear that macro's don't sum
correctly ( and in fact in spreadsheets in general ) so other than using
Round() in every calculation ( and I'm assuming here the this will force
Excel to store and use the rounded value from the cell ) is there any way of
saying 'Look Excel all my figures are currency so please round the results of
all your calcs to 2 dp' e.g. £10 / 3 = £3.33 not 3.3333


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
Rounding Errors in 2007 Jacqueline Excel Worksheet Functions 14 May 29th 09 08:51 PM
Rounding Errors Help mattflow Excel Discussion (Misc queries) 2 August 12th 05 08:10 PM
How avoid errors when you Copy chartobjects paste in powerpoint Gunnar Johansson[_5_] Excel Programming 0 May 8th 05 12:40 PM
Rounding Errors animal1881[_6_] Excel Programming 2 August 26th 04 01:58 AM
Unwanted Rounding Errors Anson[_2_] Excel Programming 1 June 10th 04 02:30 PM


All times are GMT +1. The time now is 11:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"