Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9799

Google Sheets: Exception: The parameters (number) don't match the method signature for SpreadsheetApp.Range.setValues

$
0
0

With the following function:

function updateCells() {  var ss = SpreadsheetApp.getActiveSpreadsheet();  var spreadsheetSummary = ss.getSheetByName('Summary');  const range = spreadsheetSummary.getDataRange()  const values = range.getDisplayValues()  const transposeCheck = values[0].map((_, iCol) => values.map(row => row[iCol]).some(cell => cell))  var countBoolean = transposeCheck.filter(Boolean).length  var spreadsheetCommunityGroups = ss.getSheetByName('Community Groups');  var cellValueCommunityGroups = spreadsheetCommunityGroups.getRange('A12').getValue();  var summaryCommunityGroups = 'B'+countBoolean++  spreadsheetSummary.getRange(summaryCommunityGroups).setValues(cellValueCommunityGroups);}

I receive error

Exception: The parameters (number) don't match the method signaturefor SpreadsheetApp.Range.setValues.

Help appreciated.


Viewing all articles
Browse latest Browse all 9799

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>