google-sheets

Address unavailable for UrlFetchApp.fetch in Google Apps Script

天涯浪子 提交于 2021-02-08 11:38:43
问题 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,

Google Sheets concatenate a 2d array into a single column and sort simultaneously

别等时光非礼了梦想. 提交于 2021-02-08 11:28:24
问题 I want to know if it is possible and if so how I can achieve converting an array of 8 columns and 300+ rows into a sorted, concatenated, one-dimensional array where each row is the concatenation of the contents in the 8 columns. I would also like to achieve this using a single formula. Example: leg | dog | tom | jon | bar | | | | foo | bin | git | hub | bet | far | day | bin | ... would convert into: bar dog jon leg tom bet bin bin day far foo git hub ... I can achieve this for a single row

Google Sheets query return all rows if they match any value in a column on another sheet

◇◆丶佛笑我妖孽 提交于 2021-02-08 11:19:33
问题 I have a google sheet with 3 tabs. I want to have tab3 pull all rows from tab1 (southware) into tab3 if there is a match to any value on tab2 (Top)column B =query(southware!B3:AA,"SELECT * WHERE I = '"&Top!B3&"' and D='112'", 0) I can get it to pull all the rows for only 1 cell on tab2- how do I make it evaluate all the values in column B on tab2 回答1: See if this helps =query(southware!B3:AA,"SELECT * WHERE I matches '"&TEXTJOIN("|", 1, Top!B3:B)&"' and D='112'", 0) 回答2: QUERY is not able to

“Internal error executing the custom function” in only one of many cells using the function

不问归期 提交于 2021-02-08 11:12:40
问题 I have a custom function in my sheet which returns the color code for the font color of an inputted cell. It has been working fine for a few months, but today, one out of 61 cells using the custom function return an error saying "Internal error executing custom formula". I do not understand why this problem would exist only in this cell (it is the 6th of 61 cells with the function) nor how to fix it. The custom function follows here: function FontColor(input) { var ss = SpreadsheetApp

“Internal error executing the custom function” in only one of many cells using the function

…衆ロ難τιáo~ 提交于 2021-02-08 11:01:01
问题 I have a custom function in my sheet which returns the color code for the font color of an inputted cell. It has been working fine for a few months, but today, one out of 61 cells using the custom function return an error saying "Internal error executing custom formula". I do not understand why this problem would exist only in this cell (it is the 6th of 61 cells with the function) nor how to fix it. The custom function follows here: function FontColor(input) { var ss = SpreadsheetApp

How to avoid duplication when exporting from Google Sheets to Firebase

非 Y 不嫁゛ 提交于 2021-02-08 10:53:37
问题 I'm trying to export data from Google Sheets to a collection in Google Firestore. I'm using script editor in Google Sheets to write the code. I've successfully transferred the data to Firestore. However, if I add new data to the Google Sheet and try to export to Firestore all of the data that was already in Firestore duplicates. How can I have the code only add new data and not add everything when I export? //Create a menu item for 'Export to Firestore' function onOpen() { SpreadsheetApp

How to avoid duplication when exporting from Google Sheets to Firebase

放肆的年华 提交于 2021-02-08 10:52:39
问题 I'm trying to export data from Google Sheets to a collection in Google Firestore. I'm using script editor in Google Sheets to write the code. I've successfully transferred the data to Firestore. However, if I add new data to the Google Sheet and try to export to Firestore all of the data that was already in Firestore duplicates. How can I have the code only add new data and not add everything when I export? //Create a menu item for 'Export to Firestore' function onOpen() { SpreadsheetApp

Split, reorder, concat inline

ぐ巨炮叔叔 提交于 2021-02-08 10:45:31
问题 I want to split a cell, reorder the pieces and recombine. How do I do that inline? For example: | name | reordered name | | Page,Larry | Larry Page | | Brin,Sergey | Sergey Brin | How can I do this? I know that: =SPLIT(A2, ",") will split the values into the next two columns and I know that I can concatenate values with: =CONCATENATE(A2, " ", B2) How do I bring these things together in a single formula? Can I access the values from SPLIT and reorder them? I know I can do: =CONCATENATE(SPLIT

Split, reorder, concat inline

孤街浪徒 提交于 2021-02-08 10:40:35
问题 I want to split a cell, reorder the pieces and recombine. How do I do that inline? For example: | name | reordered name | | Page,Larry | Larry Page | | Brin,Sergey | Sergey Brin | How can I do this? I know that: =SPLIT(A2, ",") will split the values into the next two columns and I know that I can concatenate values with: =CONCATENATE(A2, " ", B2) How do I bring these things together in a single formula? Can I access the values from SPLIT and reorder them? I know I can do: =CONCATENATE(SPLIT

How to Split Multi-line Cells Into Different Rows in Google Sheet

放肆的年华 提交于 2021-02-08 10:13:12
问题 I have a Google sheet that is very messy. In some cells, there are multiple email addresses, multiple names, multiple phone numbers, etc. Raw Data I want to split the cells with multiple email addresses into different rows with the exact same data for the other columns. Something like this: Cleaned sheet I used a script that I found another answer here on StackOverflow, however, the script only works if there's a return or space between the email address. The issue is that the sheet is very