google-sheets-custom-function

How to add a table of contents to Google Sheets

拈花ヽ惹草 提交于 2020-07-09 08:07:53
问题 I'm trying to add a table of contents to Google Sheets : simply want to include a list of all sheets inside the document, as clickable links (got 150+ sheets.) I got it to work, but it's more complicated than I'd like, and leaves me with questions about custom functions in Google Sheets. Here's what I have, set of course in Tools › Script editor : /** * Returns all the document's sheet IDs. * * @return * @customfunction */ function tocid() { var out = new Array() var sheets = SpreadsheetApp

How to add a table of contents to Google Sheets

我们两清 提交于 2020-07-09 08:07:13
问题 I'm trying to add a table of contents to Google Sheets : simply want to include a list of all sheets inside the document, as clickable links (got 150+ sheets.) I got it to work, but it's more complicated than I'd like, and leaves me with questions about custom functions in Google Sheets. Here's what I have, set of course in Tools › Script editor : /** * Returns all the document's sheet IDs. * * @return * @customfunction */ function tocid() { var out = new Array() var sheets = SpreadsheetApp

You do not have permission to use copyTo

北城余情 提交于 2020-06-18 12:45:47
问题 I'm trying to copy a range from one sheet to another ( whilst preserving the formulas ). I wrote a simple script using copyTo : function copyRangeAcrossSheets(source_sheet,source_range,target_sheet,target_range) { var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); var source_sheet = spreadsheet.getSheetByName(source_sheet); var target_sheet = spreadsheet.getSheetByName(target_sheet); var source_range = source_sheet.getRange(source_range); var target_range = target_sheet.getRange(target

Combining Data From Many Cells into One

。_饼干妹妹 提交于 2020-06-17 08:35:17
问题 Im putting together a pretty lengthy spreadsheet in google spreadsheets. This spreadsheet contains information about products ie name, brand, part number, ect... I was helped previously and given some nice solutions but I am still running into limitations. What I am trying to do is generate, automatically, a description field based on information in other cells. The formula I am using in the descriptions column is ="Brand Name"&" "&A3&" "&B3&" "&(joinVals(E3:G3," x "))&" "&K3 joinVals(E3:G3,"

Combining Data From Many Cells into One

人盡茶涼 提交于 2020-06-17 08:34:09
问题 Im putting together a pretty lengthy spreadsheet in google spreadsheets. This spreadsheet contains information about products ie name, brand, part number, ect... I was helped previously and given some nice solutions but I am still running into limitations. What I am trying to do is generate, automatically, a description field based on information in other cells. The formula I am using in the descriptions column is ="Brand Name"&" "&A3&" "&B3&" "&(joinVals(E3:G3," x "))&" "&K3 joinVals(E3:G3,"