By default, when you select a formula or source field in a dialog box, Enter mode is activated. You can see this in the ...
To add a formula in Google Sheets, click the cell where you want the answer, then choose one of the hundreds of functions.