Feb 16 2023 02:12 AM
I want to check if the total of my specification agrees with my trial balance. But my check cell in K41 (with a value of 25.00 in the example attached turns green even if it isn't the same is the sum in K39 (-100.01). What am I doing wrong?
Also I'd like to build in a bit of a margin for rounding differences. So that a sum in K39 of 24.95 or 25.05 also turns K41 green. How do I do that?
Feb 16 2023 02:27 AM - edited Feb 16 2023 02:30 AM
Solution@ArnoutM Use this in stead:
To allow for the small rounding difference use this formula:
=ABS($K$41-$K$39)<=0.05
Feb 16 2023 02:39 AM
Feb 16 2023 03:05 AM
@ArnoutM Glad I could help. Regarding the difficulties with CF, think of writing formulas that return either TRUE or FALSE and first enter them in the sheet itself. For instance in K43, enter the formula and copy it across to L43. Note that you should use relative reference (i.e. no $-signs).
If the results are correct copy the formula from K43 into CF and apply it to =$K$41:$L$41. Then it will always work as expected.
Feb 16 2023 03:17 AM
Feb 16 2023 03:24 AM - edited Feb 16 2023 03:45 AM
@ArnoutM I believe so. And there may be occasions where you need to use absolute references (row, column or both). Just test the formula in the grid and, indeed, copy the formula from the top left cell. The CF rule will behave exactly the same as a formula on the grid. TRUE will apply the format, FALSE will skip it.