Search code examples
google-sheetssumgoogle-sheets-formula

SUM on google sheet always returns 0


The sum on my spreadsheet column Category always returns 0. enter image description here

I have formatted column Amount as Number but still it doesn't work. I had also removed all currency symbols from that column using find & replace. What do I have to change? It works flawlessly on MS Excel but not here.


Solution

  • You file Locale is UNITED KINGDOM and UK use dot . as decimal separator. So, google sheet treating comma , as string and your full column treating as string instead of number value. Either change Locale or change decimal separator. You can try the following formula by not changing anything in google-sheet.

    =SUM(INDEX(--SUBSTITUTE(C4:C5,",",".")))
    

    enter image description here