I'm trying to write a custom function that averages some data in a Google sheet. The function currently converts it to an integer equivalent but rather than have the cell say something like =average(convertToInt(map:data))
I would like to have a single function =averageData(map:data)
that would calculate the average in the custom function.
How to use the built-in average
function in Sheets from a custom function?