Mar 28 2022 03:09 AM
Personal Finances Workbook.
Simple Transactions Table (Currency so 2 decimal digits)
No Interest Calcs or similar.
Formula to derive balance on the selected account is:-
=(SUMIFS(TrAmount,TrAccName,B4))
Not much room for error there!
After about 35 transactions to the account I am getting a figure which should be 0 of:-
-£0.000000000000028421709430404
Where is this coming from please?
I’m baffled!
Many thanks.
Jon
Mar 28 2022 04:45 AM
Solution@JonnieMorgan Google for "Floating point error" and just accept it. When you notice something like this wrap the formula in a ROUND function. So, in your case use:
=ROUND(SUMIFS(TrAmount,TrAccName,B4),2)
Mar 28 2022 08:03 AM
Mar 28 2022 04:45 AM
Solution@JonnieMorgan Google for "Floating point error" and just accept it. When you notice something like this wrap the formula in a ROUND function. So, in your case use:
=ROUND(SUMIFS(TrAmount,TrAccName,B4),2)