Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default My rounding error in a simple IF

col:A col:B col:C col:D col:E
4.82 -.02 =4.80 vs 4.80 =0%
why am i getting an error here?
=if(A0.10,(D-C)*100/C,0)

Im expecting a 0% difference between C AND D
IT SHOULD READ 0%
DOH! WHAT am i doing wrong here?
I GET A number anywhere from 0.03% to .09%
any tips to do this right?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default My rounding error in a simple IF

Not quite following you on this...

Does "=4.80" mean that's a calculated value?

If so, the 4.80 may not be the true value of that cell. It may be something
like 4.80000000056889

You should probably round it off to 2 decimal places.

--
Biff
Microsoft Excel MVP


"garron" wrote in message
...
col:A col:B col:C col:D col:E
4.82 -.02 =4.80 vs 4.80 =0%
why am i getting an error here?
=if(A0.10,(D-C)*100/C,0)

Im expecting a 0% difference between C AND D
IT SHOULD READ 0%
DOH! WHAT am i doing wrong here?
I GET A number anywhere from 0.03% to .09%
any tips to do this right?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default My rounding error in a simple IF

You should probably round it off to 2 decimal places.

Round it using the ROUND function. Don't just *format* it to show only 2
decimal places. Formatting is only for *display* purposes.

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Not quite following you on this...

Does "=4.80" mean that's a calculated value?

If so, the 4.80 may not be the true value of that cell. It may be
something like 4.80000000056889

You should probably round it off to 2 decimal places.

--
Biff
Microsoft Excel MVP


"garron" wrote in message
...
col:A col:B col:C col:D col:E
4.82 -.02 =4.80 vs 4.80 =0%
why am i getting an error here?
=if(A0.10,(D-C)*100/C,0)

Im expecting a 0% difference between C AND D
IT SHOULD READ 0%
DOH! WHAT am i doing wrong here?
I GET A number anywhere from 0.03% to .09%
any tips to do this right?





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 error? Steve Excel Discussion (Misc queries) 5 June 1st 08 02:58 PM
Simple Rounding, duh!! moe Excel Worksheet Functions 2 February 27th 08 04:16 AM
Rounding error is conditional on brackets JasonG Excel Discussion (Misc queries) 2 February 4th 08 05:31 PM
Percentage rounding error in charts Tracey Excel Discussion (Misc queries) 4 May 14th 05 04:01 AM
Simple Rounding Problem Lisa Excel Discussion (Misc queries) 3 March 4th 05 07:48 PM


All times are GMT +1. The time now is 09:00 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"