Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why is my excel calculation bringing back a "value" other than zero?

I have an excel spreadsheet with 3 Rows and 4 Columns of data, formatted as currency, w/2 decimal spaces. The 4th columns contains the following formula IFERROR(C2-(A2+B2),""). I want to apply conditional formatting so that if the value in D <> 0 turn red. This works for all rows but the last one. I copied the data in column D and "paste special values" in the adjacent cell, and D4 cell comes back with 5.96046E-08 instead of zero, like the others. Any help in understanding why this is happening is greatly appreciated!!!

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Modify the formula in column D so that it rounds the result to an appropriate number of decimal places. For example, if you are working with currency and 2 decimal places, you could use the ROUND function:

=IFERROR(ROUND(C2-(A2+B2), 2), "")

This will round the result of the calculation to 2 decimal places, which should avoid the problem of small inaccuracies.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading