You can do many cool things with custom functions in Google Sheets. Here's how to use Google scripts to create a function.