0

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;
}
7

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.