This function works the same in Google Sheets as it does in Excel — same syntax and arguments.
SUM(number1, [number2], …)SUM totals the numbers in one or more ranges or individual cells — the most-used function in Excel. It ignores text and blanks, so a stray label in a column won't break the total.
=SUM(B2:B100)Result: $248,500
Adds every number in the range.
=SUM(B2:B10, D2:D10)Result: 1,420
Totals two separate ranges at once.
The numbers are likely stored as text. Convert them with VALUE or by multiplying by 1, and SUM will pick them up.