The best way to do this is by converting your data to an Excel table. Select your data range (A1:E11), press Ctrl + T, and ...
To add a formula in Google Sheets, click the cell where you want the answer, then choose one of the hundreds of functions.