I got a variable that displays this in the logs:
[20-06-04 08:58:27:816 BRT] 2.0
[20-06-04 08:58:27:818 BRT] 6.0
[20-06-04 08:58:27:820 BRT] 14.0
How can I set this to a column range?
I tried setValues and I couldn't get any value in the range.
If I put setValue the range only sets 14.
Anyone can help me?
edit: this is the code that I'm using this variable.
function reconhecerid(){
var app1 = SpreadsheetApp;
var ss1 = app1.getActiveSpreadsheet();
var menu = ss1.getSheetByName("%");;
var regis = ss1.getSheetByName("Crédito");
var data = regis.getDataRange().getValues();
for(var i = 0; i<data.length;i++){
if(data[i][3] == "P"){ //[1] because column B
var hue = ((i+1)-2);
Logger.log(hue);
menu.getRange("A7:A").setValue(hue);