SUM adds up everything in the range you give it, ignoring any text and empty cells along the way.
Syntax
SUM(number1, [number2], ...)
When to use it
Every total. It also powers two common jobs: a running total, and each row shown as a share of the whole. Both work by anchoring one end of the range with dollar signs.
What trips people up
The dollar signs are the part worth learning. $B$2 stays put when the formula is filled down, while B2 moves with it. A running total needs one end pinned and the other free.
Set by your computer's language, not by the file. A frequent cause of a correct-looking formula being rejected.
Excel version
XLOOKUP, IFS, TEXTBEFORE and TEXTJOIN need Microsoft 365 or 2021; older versions return #NAME? instead. Choosing the older one switches every walkthrough to a formula that works there.