10-21-2020 05:23 PM
10-21-2020 05:23 PM
This formula is working in some cells and not others. It is driving me crazy.
10-21-2020 08:05 PM - edited 10-21-2020 08:10 PMSolution
Hard to say, since we have no idea which is row 3 and 6. (Klunk!)
Also, when you post formulas, be sure to copy from the Formula Bar to avoid silly typos like "FAIL (sic) (missing right-parenthesis) instead of "FAIL"; and to avoid inadvertently fixing whatever the problem is.
Finally, it is essential to provide the formulas, at least in referenced cells (e.g. G3 and G6); and to provide the exact values (15 significant digits), not just the displayed (formatted) values. Even better: attach an example Excel file (redacted) that demonstrates the problems.
Taking a wild guess....
Perhaps row 3 has the values displayed as 0.0300 (D3), 3.9800 (E3), 3.6000 (F3), 0.0416 (G3) etc; and row 6 has the values displayed as -0.2000 (D6), 3.9800 (E6), 3.6000 (F6), 0.0416 (G6) etc.
You might expect G3=G6 is true ("PASS") based on appearance.
But since the formula is returning "FAIL", obviously G3<G6 is true. There can be many reasons.
First, if you format each cell with 16 decimal places to display 15 significant digits, is G6 really something like 0.04164... ?
Second, if they truly look identical to 15 significant digits, it is possible that there is an infinitesimal difference. In other words, =SUM(G3,-G6) might be a number of the form -6.94E-18 when formatted as General or Scientific.
(Do not write =G3-G6. Excel might change the result to exact zero because the values are "close enough".)
In either case, the remedy might be to explicitly round the any calculations in G3 and G6 to 5 decimal places, the precision that you display.
But only you can decide if that's appropriate and what precision to round to, based on your intentions.
10-21-2020 08:20 PM
@Joe User Thank you for taking the time to help me. It was a rounding issue. Thanks!