When attempting to print to the console using Logger.log when running a formula in google sheets nothing is logged. How can I fix this? I am trying to do this in this part of my code:
**Logger.log(data[row][col]);**
Code:
/**
This is only a test
**/
function getLonnie(data) {
Logger.log("hello");
var myArray = [];
var numTimesLonnie = 0;
for(var row = 0; row<data.length; row++){
for(var col = 0; col<data[0].length; col++){
if((data[row][col]) === "Lonnie"|| (data[row][col]) === "Lonnie G"){
numTimesLonnie++;
myArray.push(data[row][col])
**Logger.log(data[row][col]);** ---> I am trying to log while in a formula here
}
}
}
return numTimesLonnie;
}