I have attached a sample workbook that contains a problem that was brought to my attention, one that I haven’t seen before. Basically, the problem is that a calculation performed within an IF gives a different result than the same calculation performed without the IF. I used the Formula Auditing tool on both results and it stepped through the calculations and returned the same results that the cells show (i.e., different results in each cell). I am curious if any of the great Excel minds on this board has an explanation. Thank you all in advance
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Different Results with IF() (Excel 2003)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Different Results with IF() (Excel 2003)
- This topic has 2 replies, 2 voices, and was last updated 18 years, 10 months ago.
AuthorTopicWSBrookBoy
AskWoody LoungerJune 28, 2006 at 11:50 am #433194Viewing 0 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerJune 28, 2006 at 12:07 pm #1018386Since Excel stores binary numbers in binary form with a limited precision, rounding errors occur, both when converting to and from the decimal notation used for data entry and display, and during calculations.
Excel performs calculation with a precision of about 15 (decimal) digits. The numbers you add and subtract have 4 or 5 digits before the decimal point, so that leaves a precision of about 10 or 11 digits after the decimal point. The result of the IF formula is approximately -0.0000000000009, i.e. the 13th digit after the decimal point is different from zero. This is well within the expected precision.Why then is the result of =B5-(B3+B4) exactly zero? Apparently, Excel rounds the results of direct calculations to a “nice” value. But if the calculation is part of a larger formula, this rounding doesn’t take place.
If you set the number format to display fewer decimal places, the displayed results will be equal.
If you’d like the result of the IF formula to be rounded, you can use for example=IF(TRUE,ROUND(B5-(B3+B4),9),0)
-
WSBrookBoy
AskWoody Lounger
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Privacy and the Real ID
by
Susan Bradley
1 hour, 49 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
10 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
11 hours, 50 minutes ago -
Upgrading from Win 10
by
WSjcgc50
5 hours, 8 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
3 hours, 53 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
1 day ago -
The story of Windows Longhorn
by
Cybertooth
12 hours, 12 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
1 day, 2 hours ago -
Are manuals extinct?
by
Susan Bradley
6 hours, 26 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
1 day, 11 hours ago -
Network Issue
by
Casey H
22 hours, 39 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
1 day, 23 hours ago -
May 2025 Office non-Security updates
by
PKCano
1 day, 23 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
2 days, 1 hour ago -
pages print on restart (Win 11 23H2)
by
cyraxote
1 day, 2 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
2 days, 4 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
2 days, 4 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
2 days, 11 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 day, 3 hours ago -
Asking Again here (New User and Fast change only backups)
by
thymej
2 days, 22 hours ago -
How much I spent on the Mac mini
by
Will Fastie
6 hours, 15 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
1 day, 1 hour ago -
Spring cleanup — 2025
by
Deanna McElveen
3 days, 4 hours ago -
Setting up Windows 11
by
Susan Bradley
1 day, 23 hours ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
3 days ago -
Powershell version?
by
CWBillow
3 days, 1 hour ago -
SendTom Toys
by
CWBillow
1 day, 11 hours ago -
Add shortcut to taskbar?
by
CWBillow
3 days, 4 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
3 days, 21 hours ago -
How can I install Skype on Windows 7?
by
Help
3 days, 20 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.