Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default If statement error check

I've created a Sales Tax Ledger where
Net Sales - Resale - Non-Tax - Process - Other - Gas&Diesel = Taxable
2% Tax + 7%Tax should equal Taxable. I want to create a column to check to
see if they are equal to check for errors.
I typed =IF(H4=J4+K4,"","Error")
The function works exept on some cells it displayed an error when there
shouldn't be. I then evaluated the formula and it showed J4+K4 = 127.5 and
H4=127.500000001 that was where the error came from, but I never typed a
..500000001. How do I get this to stop?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default If statement error check

Here's the reason

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

in your case you should probably be able to use ROUND(data,2)



--


Regards,


Peo Sjoblom

"lghovden06" wrote in message
...
I've created a Sales Tax Ledger where
Net Sales - Resale - Non-Tax - Process - Other - Gas&Diesel = Taxable
2% Tax + 7%Tax should equal Taxable. I want to create a column to check
to
see if they are equal to check for errors.
I typed =IF(H4=J4+K4,"","Error")
The function works exept on some cells it displayed an error when there
shouldn't be. I then evaluated the formula and it showed J4+K4 = 127.5
and
H4=127.500000001 that was where the error came from, but I never typed a
.500000001. How do I get this to stop?



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
Using contents of a check box for an in statement Erin Excel Discussion (Misc queries) 3 June 21st 07 05:23 PM
How do I use a "check(ed) box" as a criteria in an "=if" statement Bill Bromback Excel Worksheet Functions 1 August 19th 05 05:28 PM
How do I check for values in a list in an if statement? DJC Excel Discussion (Misc queries) 1 July 27th 05 07:13 PM
IF statement to check cell contents Lance Gray Excel Worksheet Functions 1 May 29th 05 10:53 PM
How do I check formatting in an if-then statement bfmartiniv Excel Worksheet Functions 1 December 14th 04 12:42 AM


All times are GMT +1. The time now is 08:49 AM.

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"