The SCAN function is best used when you need a running total—a sum that accumulates row by row, with the accumulated value ...
To add a formula in Google Sheets, click the cell where you want the answer, then choose one of the hundreds of functions.