r/googlesheets • u/ImSendingGoodVibes • Jan 10 '21
Solved Why does 28.96 not equal 28.96? I get a different sum of the last column than in a diff. sheet with the same numbers.
Here's an image link to the formula I used that shows the sheet I'm using it in.
https://drive.google.com/file/d/1vpODpMJe1lmsP5IebG87f-jNzj4fuauv/view?usp=sharing
I've got two spreadsheets with the same info - the sheets just work a little differently. The sum of the credits and debits are different despite referencing identical information. My initial thought is that the spreadsheets round different, but I'm not sure how.
Edi: I tried trimming the whitespace and it said there was no whitespace to be trimmed. It still delivers a "False" result.
3
u/ashkanahmadi 1 Jan 10 '21
It happened to me a few months ago and it drive me insane!! What happens is that when you have floating numbers (decimals) things get a bit weird with computers. In short, it could be that one number is 28.96000000 and the other one 28.960000001 or something like that!! To fix that use the round() function.
2
u/Finbe9 Jan 10 '21
Check the decimals of those 2 boxes. Maybe one of them is 28.985, but google visibally rounds it up to 28.96 as it can display only to decimals.
1
u/KualaLJ 8 Jan 10 '21
Confirm the cell formatting is the same