google-sheets

Convert spreadsheet decimal number format: period- and comma-separated decimal positions

帅比萌擦擦* 提交于 2021-02-08 13:37:15
问题 In OpenOffice Calc, one can change number format between standard United States, with decimal separator being a period . , and the SI (International System) format with decimal separator being a comma , . This can be done by setting the language to US-English in the first case, and to Canada-French in the latter case (in the Format menu). 13.3 13,3 2.2 2,2 How can the same be done in Google Spreadsheets? It does not seem that language can be changed within a same sheet (or maybe a same Google

I want to write a script to read and log values of a specific row and copy them to a new sheet

半世苍凉 提交于 2021-02-08 12:12:41
问题 I want to build a script to automate creating a form out of specific values. What I need to do is: Ask the user which row is relevant for the form, enter the row in a text box Log value of column A of that row (Date) Check that row from column C-ZZZ for values (numbers) if there is a cell with a value, log the value. If the cell is empty ignore it If there is a value in a cell additionally log values of row 1-10 of that column (numbers + strings) create a new sheet copy logged values in a

Access data in Google App Script from spread sheet modal html form

老子叫甜甜 提交于 2021-02-08 12:12:36
问题 I have Google spreadsheet script which will show modal dialog using SpreadsheetApp.getUi().showModalDialog using a html form which is created as a file in the SpreadSheet Script project. This is how my Google Script project structure is : --Code.gs | |- openFormModalDialog() |- fetchData() |- updateSheet() | --form.html When click button in my form.html which is showed in the modal from the Code.gs I wan to call a function in my Code.gs to process the data entered by the user in the form. I

I want to write a script to read and log values of a specific row and copy them to a new sheet

女生的网名这么多〃 提交于 2021-02-08 12:10:31
问题 I want to build a script to automate creating a form out of specific values. What I need to do is: Ask the user which row is relevant for the form, enter the row in a text box Log value of column A of that row (Date) Check that row from column C-ZZZ for values (numbers) if there is a cell with a value, log the value. If the cell is empty ignore it If there is a value in a cell additionally log values of row 1-10 of that column (numbers + strings) create a new sheet copy logged values in a

Google Script Performance Slow Down

廉价感情. 提交于 2021-02-08 11:47:18
问题 I'm new to Google script. Anyone can give some advice how to improve the coding performance? If the numOfEmail variable is quite a huge number then the performance will slow down. for (var i = 0; i < numOfEmail; i++) { var messages=threads[i].getMessages(); for (var j = 0; j < messages.length; j++) { sheet.getRange("A"+(lastEntry+i)).setValue(messages[j].getId()); sheet.getRange("B"+(lastEntry+i)).setValue(messages[j].getDate()); sheet.getRange("C"+(lastEntry+i)).setValue(messages[j].getFrom(

Google Apps script not working in an embedded iframe

只谈情不闲聊 提交于 2021-02-08 11:42:50
问题 I have a Google sheet where I have placed a few buttons linking to the script. It works fine when I use it on the sheets page. But when I publish it and embed the sheet on my website, the button doesn't work. It's not performing. Below is the sample code I use to move from one sheet to another with the click of the button and the iframe code I am using. function goToInward() { var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); spreadsheet.setActiveSheet(spreadsheet.getSheetByName(

IMPORTDATA Google Sheet CSV on Google Drive

旧时模样 提交于 2021-02-08 11:41:29
问题 So I'm starting to really get into utilizing Google Drive to streamline my many personal projects. One of the things I'd love to do is figure out how to download CSV files onto my Google Drive, and have Google Sheets automatically do an =IMPORTDATA on any new .csv files in a specific directory. I've come across a number of problems trying to figure this out, but the biggest issue is that putting any kind of file on the Google Drive doesn't give you a link to the file itself, but rather

FTR calculation using Google Query function

十年热恋 提交于 2021-02-08 11:41:18
问题 I am trying to create crosstabs pivot tables using Google Query function to calculate Employees First Time Resolution (FTR) rate based on the number of Issues received while booking Opportunities vs Total Opportunities booked . +---------+-------+---------+-----------+--------+-------+ | OppName | OppID | EmpName | MonthYear | Status | Issue | +=========+=======+=========+===========+========+=======+ | abc | 1000 | alex | 2020-Jan | active | yes | +---------+-------+---------+-----------+---

FTR calculation using Google Query function

别说谁变了你拦得住时间么 提交于 2021-02-08 11:40:04
问题 I am trying to create crosstabs pivot tables using Google Query function to calculate Employees First Time Resolution (FTR) rate based on the number of Issues received while booking Opportunities vs Total Opportunities booked . +---------+-------+---------+-----------+--------+-------+ | OppName | OppID | EmpName | MonthYear | Status | Issue | +=========+=======+=========+===========+========+=======+ | abc | 1000 | alex | 2020-Jan | active | yes | +---------+-------+---------+-----------+---

Address unavailable for UrlFetchApp.fetch in Google Apps Script

孤街醉人 提交于 2021-02-08 11:39:33
问题 First of all, many thanks to Google for the awesome Google Apps Script! I am currently designing a Google Sheets ad-on with a API service named CryptoCompare. So far it has always worked out quite well. But suddenly I get the error "Address unavailable". I tried different endpoints, new API keys and even new Google Sheets. But nothing works. This simple call fails: var response = UrlFetchApp.fetch('https://min-api.cryptocompare.com/data/blockchain/list'); Btw: Other APIs (such as Coinbase,