To add a formula in Google Sheets, click the cell where you want the answer, then choose one of the hundreds of functions.
You may need to add cells in Google Sheets if your spreadsheet needs to contain more information than it currently has room for.