Click a cell and type to replace it, or press Enter to edit. Start with = to enter a formula, for example =SUM(B18:B25). Cells with a blue corner contain a formula. Shift-click or drag to select a range; Ctrl/⌘+Z undoes.
=
=SUM(B18:B25)