Calculate running total in Excel and Google Sheets

=SUM($A$2:A3)

$A$2 = fixed cell; A3 = moving/dynamic cell

Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.