Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-28-2016, 06:47 AM
tracyj tracyj is offline Mac OS X Office for Mac 2011
Novice
 
Join Date: Nov 2016
Posts: 3
tracyj is on a distinguished road
Default £16.90 + £0.99 = £17.89 doesn't it?


I've added the sample spreadsheet as an attachment
Attached Files
File Type: xlsx 1789 check .xlsx (31.0 KB, 9 views)

Last edited by tracyj; 11-28-2016 at 06:49 AM. Reason: layout of table
Reply With Quote
  #2  
Old 11-28-2016, 06:53 AM
tracyj tracyj is offline Mac OS X Office for Mac 2011
Novice
 
Join Date: Nov 2016
Posts: 3
tracyj is on a distinguished road
Default

Sorry, I don't know if my original post showed up.

I'm having a problem with a IF function which is showing up a "check" result when it shouldn't.

The formula is =IF(A3-SUM(B3:C3)=0,"-","check")

But when I put 17.89 in column A, £16.90 in column B and £0.99 in column C is gives the result "check" instead of "-"

It works ok with other numbers so what am I doing wrong??
Reply With Quote
  #3  
Old 11-28-2016, 08:56 AM
xor xor is offline Windows 10 Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Try

=IF(ROUND(A3-SUM(B3:C3),2)=0,"-","check")

Change 2 to the precision you want.

The problem is the way that Excel represents values internally: 64-bit-binary floating-point. Values are represented by the sum of 53 consecutive powers of 2 ("bits") times an exponential factor. Consequently, most decimal fractions cannot be represented exactly.

If you really want to study this, see:

http://faculty.tarleton.edu/agapie/d...atingPoint.pdf
Reply With Quote
  #4  
Old 11-28-2016, 09:39 AM
tracyj tracyj is offline Mac OS X Office for Mac 2011
Novice
 
Join Date: Nov 2016
Posts: 3
tracyj is on a distinguished road
Default

That's perfect. Thank you!

Tracy
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Timing Doesn't Hold yonargi2 PowerPoint 0 11-13-2015 03:15 PM
mp4 doesn't run ohawiseguyeh PowerPoint 8 11-03-2014 11:15 PM
Delete bookmark which doesn't have a name rarulkumar Word VBA 2 04-19-2013 03:19 AM
slideshow doesn't run gali PowerPoint 0 10-10-2010 11:39 PM
Autotext screen tip doesn't appear Steve_D Word 0 05-11-2010 07:14 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:52 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft