qid int64 4 8.14M | question stringlengths 20 48.3k | answers list | date stringlengths 10 10 | metadata list | input stringlengths 12 45k | output stringlengths 2 31.8k |
|---|---|---|---|---|---|---|
80,978 | <p>I'm looking to use GoogleSheets to display ticker symbols and prices in real-time of stocks that have created new 26-week highs, i.e. today's highest trading price is greater than any trading price during the last 26-week period.</p>
<p>I think GoogleSheets's native GOOGLEFINANCE function allows this to be done for... | [
{
"answer_id": 80983,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "<p>I'll describe the process in stages. Here is a command that returns a table with high price on every day within the l... | 2015/08/01 | [
"https://webapps.stackexchange.com/questions/80978",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/99029/"
] | I'm looking to use GoogleSheets to display ticker symbols and prices in real-time of stocks that have created new 26-week highs, i.e. today's highest trading price is greater than any trading price during the last 26-week period.
I think GoogleSheets's native GOOGLEFINANCE function allows this to be done for a 52-week... | I'll describe the process in stages. Here is a command that returns a table with high price on every day within the last 26 weeks:
```
=GOOGLEFINANCE("GOOG","high",TODAY()-26*7,TODAY())
```
Output:
```
+-------------------+----------+
| Date | High |
+-------------------+----------+
| 2/2/2015 16:0... |
81,102 | <p>I trying to make an admin document where all rows from other documents are added automatically.</p>
<p>Example:
Person A is typing data into this document
<a href="https://docs.google.com/spreadsheets/d/1piyeJWfr6oTkhwh-1mm8KiS4yB8uclDV2O_BG5przgg/edit#gid=0" rel="nofollow">https://docs.google.com/spreadsheets/d/1p... | [
{
"answer_id": 81176,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": false,
"text": "<p>Yes, it's possible, but not in real-time, as it could possible if they were typing/viewing in the same document an... | 2015/08/05 | [
"https://webapps.stackexchange.com/questions/81102",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/91612/"
] | I trying to make an admin document where all rows from other documents are added automatically.
Example:
Person A is typing data into this document
<https://docs.google.com/spreadsheets/d/1piyeJWfr6oTkhwh-1mm8KiS4yB8uclDV2O_BG5przgg/edit#gid=0>
Person B is typing data into a similar document
Admin is watching everyt... | Yes, it's possible, but not in real-time, as it could possible if they were typing/viewing in the same document and screen area.
Use `IMPORTRANGE()` function to get the data from each spreadsheet and arrays to properly join.
I.E.
In the admin spreadsheet, in the A1 add the following formula to get the column titles... |
81,111 | <p>I have a sheet as below,</p>
<pre><code>| A | B | C |
-------------
|abc|123|Yes|
|jkl|123|No |
|abc|123|Yes|
|abc|567|Yes|
</code></pre>
<p>I want to get the output like,</p>
<pre><code>| A | B | C |Count|
-------------------
|abc|123|Yes| 2 |
|jkl|123|No | 1 |
|abc|567|Yes| 1 |
</code></pre>
| [
{
"answer_id": 81112,
"author": "JPV",
"author_id": 83521,
"author_profile": "https://webapps.stackexchange.com/users/83521",
"pm_score": 3,
"selected": true,
"text": "<p>See if this helps ?</p>\n\n<pre><code>=ArrayFormula(query({A1:C,C1:C}, \"select Col1, Col2, Col3, count(Col4) where C... | 2015/08/05 | [
"https://webapps.stackexchange.com/questions/81111",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/99226/"
] | I have a sheet as below,
```
| A | B | C |
-------------
|abc|123|Yes|
|jkl|123|No |
|abc|123|Yes|
|abc|567|Yes|
```
I want to get the output like,
```
| A | B | C |Count|
-------------------
|abc|123|Yes| 2 |
|jkl|123|No | 1 |
|abc|567|Yes| 1 |
``` | See if this helps ?
```
=ArrayFormula(query({A1:C,C1:C}, "select Col1, Col2, Col3, count(Col4) where Col1 <> ''group by Col1, Col2, Col3 label count(Col4)''"))
``` |
81,121 | <p>I've got a google spreadsheet I created yesterday and used Tools -> Script Editor to create a function in a single file called Code.gs</p>
<pre><code>function onOpen(e) {
var email = (Session.getEffectiveUser().getEmail());
var targetsheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var masters... | [
{
"answer_id": 81123,
"author": "anoopb",
"author_id": 99249,
"author_profile": "https://webapps.stackexchange.com/users/99249",
"pm_score": 2,
"selected": false,
"text": "<p>Solution was to go to Resources -> Current Triggers and add a new trigger in the Script project.</p>\n"
},
{
... | 2015/08/05 | [
"https://webapps.stackexchange.com/questions/81121",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/99249/"
] | I've got a google spreadsheet I created yesterday and used Tools -> Script Editor to create a function in a single file called Code.gs
```
function onOpen(e) {
var email = (Session.getEffectiveUser().getEmail());
var targetsheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var mastersheet = Spreads... | [Simple Triggers](https://developers.google.com/apps-script/guides/triggers/), such as `onOpen`, are subject to certain restrictions:
>
> * They cannot access services that require authorization.
> * They can modify the file they are bound to, but cannot access other files because that would require authorization.
>... |
81,150 | <p>I am trying to add a submission date to column 1 whenever a new row is automatically added through Zapier. Is this possible? E.g.,</p>
<pre><code> C1 C2 C3
(DATE STAMP WHEN SUBMITTED) John Smith
(DATE STAMP WHEN SUBMITTED) Sam Hardy
</code><... | [
{
"answer_id": 81170,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<p>I think this requires a script (Tools > Script Editor), such as the following: it checks for blank A cells where the... | 2015/08/06 | [
"https://webapps.stackexchange.com/questions/81150",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/99272/"
] | I am trying to add a submission date to column 1 whenever a new row is automatically added through Zapier. Is this possible? E.g.,
```
C1 C2 C3
(DATE STAMP WHEN SUBMITTED) John Smith
(DATE STAMP WHEN SUBMITTED) Sam Hardy
``` | If you want to include the time your Zap runs in your Zap (or use that as an approximation of when the trigger occurs), you can use the following field in your Zap: {{zap\_meta\_human\_now}}
Just enter that text with the curly braces into the field instead of selecting something from the dropdown.
For more informatio... |
82,220 | <p>Vimeo's player doesn't have any option to adjust play speed settings. Is there some way to watch content at a faster speed?</p>
<p>YouTube lets you adjust video play speed by clicking the gear icon and clicking on "speed" and Windows Media Player by View -> Enhancements -> Play Speed settings.</p>
| [
{
"answer_id": 82221,
"author": "g491",
"author_id": 98304,
"author_profile": "https://webapps.stackexchange.com/users/98304",
"pm_score": 2,
"selected": false,
"text": "<p>To do this, download VLC Player, pull up the Media menu, choose Open Network Stream, and paste in the <a href=\"htt... | 2015/08/09 | [
"https://webapps.stackexchange.com/questions/82220",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/98304/"
] | Vimeo's player doesn't have any option to adjust play speed settings. Is there some way to watch content at a faster speed?
YouTube lets you adjust video play speed by clicking the gear icon and clicking on "speed" and Windows Media Player by View -> Enhancements -> Play Speed settings. | [Create a bookmarklet](https://www.youtube.com/watch?v=FFdz2LrkNuQ) with the following content:
```
javascript: var v = document.querySelector('video'); var t = prompt('Set the playback rate'); v.playbackRate = parseFloat(t)
```
Then simply launch the bookmarklet when playing a video on Vimeo and enter your desired... |
82,278 | <p>Has anybody come up with a formula to find duplicates in a column? For example:</p>
<pre><code>a
b
c
d
b
d
</code></pre>
<p><code>=somefunction(A1:A6)</code></p>
<p>Output: </p>
<pre><code>b
d
</code></pre>
<p>I know there is a <code>=unique()</code> function, it's basically a <code>=not_unique()</code> functio... | [
{
"answer_id": 82284,
"author": "Vidar S. Ramdal",
"author_id": 21583,
"author_profile": "https://webapps.stackexchange.com/users/21583",
"pm_score": 2,
"selected": false,
"text": "<p>The only way I found (using formulas) is by introducing a new <code>count</code> column.</p>\n\n<p>If yo... | 2015/08/11 | [
"https://webapps.stackexchange.com/questions/82278",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/62510/"
] | Has anybody come up with a formula to find duplicates in a column? For example:
```
a
b
c
d
b
d
```
`=somefunction(A1:A6)`
Output:
```
b
d
```
I know there is a `=unique()` function, it's basically a `=not_unique()` function. Was wondering if it can be constructed without using code. | The possible solution without an additional column is:
```
=FILTER(UNIQUE(A2:A7), ARRAYFORMULA( COUNTIF(A2:A7,UNIQUE(A2:A7))>1 ))
```
Please, see prepared example here: **[Find Duplicates](https://docs.google.com/spreadsheets/d/1gktHBKdbt66k3sZgAJJzFE7a6aG24lsgu6aFXjeWWLs/edit?usp=sharing)** |
82,297 | <p>I frequently have a problem when entering a row of data that one or more cells will get a spurious newline at the end of their data, and that row will become double-tall. Sometimes I can guess the offending cell, click on it, backspace out the newline, which also removes the last character of the previous row, and ... | [
{
"answer_id": 82394,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "<p>To remove extraneous whitespace (new lines, tabs, spaces) at the beginning or at the end of the cells, one can use <c... | 2015/08/11 | [
"https://webapps.stackexchange.com/questions/82297",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/76903/"
] | I frequently have a problem when entering a row of data that one or more cells will get a spurious newline at the end of their data, and that row will become double-tall. Sometimes I can guess the offending cell, click on it, backspace out the newline, which also removes the last character of the previous row, and then... | To remove extraneous whitespace (new lines, tabs, spaces) at the beginning or at the end of the cells, one can use `trim` command. For example, suppose your current data range is A2:F20. In another part of the sheet, enter
```
=arrayformula(trim(A2:F20))
```
then copy the results and *paste values* (`Ctrl``Shift``V... |
82,348 | <p>I am interested in adding a hotkey to change the color of a text. I edit, so switching text from black to red is something I do often, but I have to go click on text color each and every time in Google Docs. </p>
<p>Is there any way to actually add new hotkeys in Google Docs? So far it seems like it's not an availa... | [
{
"answer_id": 82372,
"author": "user4362665",
"author_id": 100722,
"author_profile": "https://webapps.stackexchange.com/users/100722",
"pm_score": 1,
"selected": false,
"text": "<p>No, so far this functionality has not beed added, even though it has been requested for several years now.... | 2015/08/12 | [
"https://webapps.stackexchange.com/questions/82348",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/100687/"
] | I am interested in adding a hotkey to change the color of a text. I edit, so switching text from black to red is something I do often, but I have to go click on text color each and every time in Google Docs.
Is there any way to actually add new hotkeys in Google Docs? So far it seems like it's not an available option... | **Solution 1 (best to change the fonts and simple stuff)**: Just install the extension TamperMonkey and use/improve [this script](https://gist.github.com/WiliTest/b78ad2c234565ba8ce40df15440540d9) (⚠ don't use ~~TamperMonkey~~: ⚠ it's a scam!)
---
---
● **Solution 2 (Depreciated)**:
I first tried using a google scri... |
82,354 | <p><em>Is it possible to add a new keyboard shortcut to draw.io to insert a given element?</em></p>
<p>In short I want to have a faster way of inserting the <em>General > Text</em> element. Ideally I would like to change the double click event to insert this, instead of a non-linkable text which it uses today.</p>
<p... | [
{
"answer_id": 82356,
"author": "Thomas the Tank Engine",
"author_id": 7783,
"author_profile": "https://webapps.stackexchange.com/users/7783",
"pm_score": 0,
"selected": false,
"text": "<p>There isn't a mechanism to assign shortcuts, but it's an interesting idea. Please submit it as a <a... | 2015/08/13 | [
"https://webapps.stackexchange.com/questions/82354",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/100699/"
] | *Is it possible to add a new keyboard shortcut to draw.io to insert a given element?*
In short I want to have a faster way of inserting the *General > Text* element. Ideally I would like to change the double click event to insert this, instead of a non-linkable text which it uses today.
The reason I can't use the dou... | A plugin to insert elements
---------------------------
It turns out that it is indeed possible to add a plugin, which adds shortcuts to draw.io. Here is plugin code for adding either an ellipse using `Ctrl+Shift+Q`, or text using `Ctrl+Shift+T`. For the text node I opted for left justified, and top aligned.
```
Draw... |
82,416 | <p>If I delete a document owned by me, everybody loses access to that document. However, if I delete a document owned by someone else, it is only deleted from my point of view. Everybody else still sees that document.</p>
<p>In an environment where everybody is responsible for maintaining a pool of documents, this is ... | [
{
"answer_id": 82433,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 2,
"selected": false,
"text": "<p>With consumer accounts it's not possible to delete files owned by someone else. </p>\n\n<p>Bear in mind that users... | 2015/08/14 | [
"https://webapps.stackexchange.com/questions/82416",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/10656/"
] | If I delete a document owned by me, everybody loses access to that document. However, if I delete a document owned by someone else, it is only deleted from my point of view. Everybody else still sees that document.
In an environment where everybody is responsible for maintaining a pool of documents, this is terribly c... | To work around the problem, you can use a naming convention and a script. E.g., the users can agree to consider a file deleted if its name is "zzz\_delete\_this\_file" (multiple files can have the same name in Google Drive).
Users can also install the following script ([general information on scripts](https://script.... |
82,597 | <p>I want to check if a set of fields indicate times of the day that are before 11am. The dates are stored in this format: <code>8:42:00 AM</code></p>
<p>I tried <code>A1<"11:00:00 AM"</code> but it always returns <code>True</code>, even if it was after 11am</p>
<p>Maybe a solution is convert it to Epoch first? or... | [
{
"answer_id": 82608,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "<p>The problem is that \"11:00:00 AM\" is not a time value, it's just a string with characters 1, 1, :, 0, and so forth.... | 2015/08/20 | [
"https://webapps.stackexchange.com/questions/82597",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/14200/"
] | I want to check if a set of fields indicate times of the day that are before 11am. The dates are stored in this format: `8:42:00 AM`
I tried `A1<"11:00:00 AM"` but it always returns `True`, even if it was after 11am
Maybe a solution is convert it to Epoch first? or is there a more straight forward way? any working ap... | The problem is that "11:00:00 AM" is not a time value, it's just a string with characters 1, 1, :, 0, and so forth. You can convert it to a time value with [`timevalue`](https://support.google.com/docs/answer/3267350) function:
```
=A1<timevalue("11:00:00 AM")
```
or better yet, define the time directly with [`time... |
82,621 | <p>I have a sheet with following values on column A:</p>
<pre><code> [ A ]
[1] Dead line
[2] 15 days remaining***
[3] Dead
[4] 131 days remaining*
[5] 80 days remaining**
</code></pre>
<p>I would like to use conditional formatting on column A so:</p>
<ul>
<li>when only 1 asterisk appears: green ... | [
{
"answer_id": 82622,
"author": "moonpoint",
"author_id": 101197,
"author_profile": "https://webapps.stackexchange.com/users/101197",
"pm_score": 4,
"selected": true,
"text": "<p>You can achieve your desired results by putting a tilde, <code>~</code> in front of the asterisk as an <a hre... | 2015/08/19 | [
"https://webapps.stackexchange.com/questions/82621",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/2869/"
] | I have a sheet with following values on column A:
```
[ A ]
[1] Dead line
[2] 15 days remaining***
[3] Dead
[4] 131 days remaining*
[5] 80 days remaining**
```
I would like to use conditional formatting on column A so:
* when only 1 asterisk appears: green cell background
* when only 2 asteris... | You can achieve your desired results by putting a tilde, `~` in front of the asterisk as an [escape character](https://en.wikipedia.org/wiki/Escape_character), if you put the conditional formatting rules in the order listed below.
First, create the one for orange when three asterisks occur using `text contains` and th... |
82,683 | <p>I'm trying to filter a protected column in a spreadsheet that I shared with other users.</p>
<p>But I it looks like I can protect it or filter it with the other user but not both. </p>
<p>In Excel I can do it without a problem. Do I have any option to do so? </p>
| [
{
"answer_id": 82694,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<p>If a column of a spreadsheet is protected from a user (i.e., that user does not have edit rights to the column), the... | 2015/08/23 | [
"https://webapps.stackexchange.com/questions/82683",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/101330/"
] | I'm trying to filter a protected column in a spreadsheet that I shared with other users.
But I it looks like I can protect it or filter it with the other user but not both.
In Excel I can do it without a problem. Do I have any option to do so? | At this time, on Google Sheets
* owner and users **with** permissions to edit a **protected range**
+ are allowed
- to filter it.
- to edit saved filters.
* users **without** permissions to edit a **protected range**
+ **are not** allowed
- to filter the protected range.
- to edit view filters created by ot... |
82,763 | <p>I have a <a href="https://docs.google.com/spreadsheets/d/1lG-iKRqoZ3BmBE58Uiy6C79hlDqSoCVxD1QVX-05Eyg/edit?usp=sharing" rel="nofollow noreferrer">sheet of data</a> in the form:</p>
<pre><code>Date Val
2015-08-05 10
2015-08-09 13
2015-08-14 4
</code></pre>
<p>I am trying to display this data i... | [
{
"answer_id": 82767,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<p>It appears you don't need to change the data at all, just change the presentation of the data, i.e., formatting. Sel... | 2015/08/25 | [
"https://webapps.stackexchange.com/questions/82763",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/39514/"
] | I have a [sheet of data](https://docs.google.com/spreadsheets/d/1lG-iKRqoZ3BmBE58Uiy6C79hlDqSoCVxD1QVX-05Eyg/edit?usp=sharing) in the form:
```
Date Val
2015-08-05 10
2015-08-09 13
2015-08-14 4
```
I am trying to display this data in other cell such that it looks like this:
```
Date ... | It appears you don't need to change the data at all, just change the presentation of the data, i.e., formatting. Select column A, go to Format -> Number -> More formats -> More data and time formats, and set the desired format there:

New date/time data added to Column A ... |
82,879 | <p>Given the list of categories and sub-categories:</p>
<pre><code>CatA SubCatA
CatA SubCatA
CatB SubCatB
CatB SubCatB
CatC SubCatC
CatC SubCatC
</code></pre>
<p>I'd like to return all unique main categories based on the secondary category.</p>
<p>I don't want to use:</p>
<pre><code>=QUERY(A1:B6,"... | [
{
"answer_id": 82888,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 6,
"selected": true,
"text": "<p>Without a query:</p>\n\n<pre><code>=unique(filter(A1:A6, B1:B6=\"SubCatA\"))\n</code></pre>\n"
},
{
"answer_i... | 2015/08/28 | [
"https://webapps.stackexchange.com/questions/82879",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/22759/"
] | Given the list of categories and sub-categories:
```
CatA SubCatA
CatA SubCatA
CatB SubCatB
CatB SubCatB
CatC SubCatC
CatC SubCatC
```
I'd like to return all unique main categories based on the secondary category.
I don't want to use:
```
=QUERY(A1:B6,"SELECT A WHERE B = 'SubCatA'")
```
as it's... | Without a query:
```
=unique(filter(A1:A6, B1:B6="SubCatA"))
``` |
83,073 | <p>I've got a document that's convenient to keep in a spreadsheet because of calculations, but I also have a significant amount of text that I'd like to keep in the same place. Some of that text involves hyperlinks, preferably in line with plain text, but my attempts at figuring out how to write a formula that prints t... | [
{
"answer_id": 83075,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "<p>No, a cell cannot contain a mix of text and links. Either the entire cell is a link or there is no link.</p>\n\n<p>... | 2015/09/03 | [
"https://webapps.stackexchange.com/questions/83073",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/102068/"
] | I've got a document that's convenient to keep in a spreadsheet because of calculations, but I also have a significant amount of text that I'd like to keep in the same place. Some of that text involves hyperlinks, preferably in line with plain text, but my attempts at figuring out how to write a formula that prints the ... | Since 2020-06-02 it is possible to have multiple links mixed with text - Google Sheets introduced me to this feature. This feature seems to be public (it is not some internal test), since I found it in [official documentation](https://support.google.com/docs/answer/45893?hl=en):
>
> Tip: You can add multiple links in... |
84,130 | <p>Is there any way to see all publicly shared Google Drive items/documents from a specific Google user?</p>
| [
{
"answer_id": 84135,
"author": "Riël",
"author_id": 101629,
"author_profile": "https://webapps.stackexchange.com/users/101629",
"pm_score": -1,
"selected": false,
"text": "<p>If you are admin you can use the Drige API with a service account impersonating that user.</p>\n"
},
{
"... | 2015/09/05 | [
"https://webapps.stackexchange.com/questions/84130",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/95229/"
] | Is there any way to see all publicly shared Google Drive items/documents from a specific Google user? | I wrote a Google Apps Script macro that you can attach to a new spreadsheet (or an old one, if it would make any sense) that accomplishes this task. To attach a script to a spreadsheet, go into that spreadsheet (or create a new one), click "Tools"->"Script editor...", copy and paste the code into the editor, click "Res... |
84,172 | <p>Slack insists on telling me that</p>
<pre><code>foo: joined #best-chat-room-yay
</code></pre>
<p>Is there a way to disable this?</p>
| [
{
"answer_id": 90333,
"author": "Squazz",
"author_id": 78014,
"author_profile": "https://webapps.stackexchange.com/users/78014",
"pm_score": 3,
"selected": true,
"text": "<p>UPDATE: <a href=\"https://webapps.stackexchange.com/a/133106/78014\">It seems it's now possible</a></p>\n\n<p>Not ... | 2015/09/07 | [
"https://webapps.stackexchange.com/questions/84172",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/85786/"
] | Slack insists on telling me that
```
foo: joined #best-chat-room-yay
```
Is there a way to disable this? | UPDATE: [It seems it's now possible](https://webapps.stackexchange.com/a/133106/78014)
Not as it is at the moment, no, unfortunately.
One thing you can do, is to mute the channel.
[](https://i.stack.imgur.com/RngKD.png)
If that is not an option, t... |
84,190 | <p>Is it possible to dynamically change the name of a sheet in Google Sheets based on the contents of a specific cell? For instance, I'd like my sheet to get its name from whatever is in cell A1... is that possible at all?</p>
| [
{
"answer_id": 84199,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "<p>Here's a script that does this: enter it in Tools > Script Editor.</p>\n\n<p>It runs automatically on every edit, and... | 2015/09/08 | [
"https://webapps.stackexchange.com/questions/84190",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/103341/"
] | Is it possible to dynamically change the name of a sheet in Google Sheets based on the contents of a specific cell? For instance, I'd like my sheet to get its name from whatever is in cell A1... is that possible at all? | Here's a script that does this: enter it in Tools > Script Editor.
It runs automatically on every edit, and renames the active sheet if the content of A1 (referred by row 1, column 1) does not match the current sheet name.
```
function onEdit() {
var sheet = SpreadsheetApp.getActiveSheet();
var oldName = sheet.g... |
84,208 | <p>Example:</p>
<pre><code> A B
1 john 6
2 ryan 5
3 kate 8
4 paul 1
</code></pre>
<p>I want the formula that returns the text "kate" in A3, because the value in B3 is the highest in the range B1:B4. I would like to know also the same opperation but with the lowest value (i.e. B4 is the lowest, so I would get "pau... | [
{
"answer_id": 84211,
"author": "gar",
"author_id": 98410,
"author_profile": "https://webapps.stackexchange.com/users/98410",
"pm_score": 2,
"selected": true,
"text": "<p>For the highest value you can use:</p>\n\n<pre><code>=INDEX(sort(A:B, 2, false), 1, 1)\n</code></pre>\n\n<p>This firs... | 2015/09/08 | [
"https://webapps.stackexchange.com/questions/84208",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/103378/"
] | Example:
```
A B
1 john 6
2 ryan 5
3 kate 8
4 paul 1
```
I want the formula that returns the text "kate" in A3, because the value in B3 is the highest in the range B1:B4. I would like to know also the same opperation but with the lowest value (i.e. B4 is the lowest, so I would get "paul"). | For the highest value you can use:
```
=INDEX(sort(A:B, 2, false), 1, 1)
```
This first sorts and then retrieves the value from the first row and column of the sorted data.
Using the opposite sort order in the formula will yield the lowest value:
```
=INDEX(sort(A:B, 2, true), 1, 1)
``` |
84,227 | <p>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 <code>=IMPORTDATA</code> on any new <code>.csv</code> files in a specific direc... | [
{
"answer_id": 84228,
"author": "gar",
"author_id": 98410,
"author_profile": "https://webapps.stackexchange.com/users/98410",
"pm_score": 3,
"selected": false,
"text": "<p>Generating a direct download link, as described <a href=\"http://www.labnol.org/internet/direct-links-for-google-dri... | 2015/09/09 | [
"https://webapps.stackexchange.com/questions/84227",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/103415/"
] | 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 ... | Generating a direct download link, as described [in this article](http://www.labnol.org/internet/direct-links-for-google-drive/28356/) seems to work fine with the `=IMPORTDATA` function.
To summarize, you take the `SITE_ID` string from the sharing link you have:
```
https://drive.google.com/file/d/FILE_ID/edit?usp=sh... |
84,309 | <p>I've embedded a public google calendar </p>
<pre><code>https://www.google.com/calendar/embed?mode=WEEK&src=alecjacobson%40gmail.com
</code></pre>
<p>This shows the calendar using New York's timezone (my calendar's default), regardless if the person viewing it is, e.g., in Chicago.</p>
<p>I can add</p>
<pre><... | [
{
"answer_id": 85122,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 2,
"selected": false,
"text": "<p>AFAIK Google Calendar doesn't have a URL parameter to display an embeded calendar in the user's local timezone.</p... | 2015/09/10 | [
"https://webapps.stackexchange.com/questions/84309",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/78556/"
] | I've embedded a public google calendar
```
https://www.google.com/calendar/embed?mode=WEEK&src=alecjacobson%40gmail.com
```
This shows the calendar using New York's timezone (my calendar's default), regardless if the person viewing it is, e.g., in Chicago.
I can add
```
&ctz=America%2FChicago
```
And this will ... | AFAIK Google Calendar doesn't have a URL parameter to display an embeded calendar in the user's local timezone.
Instead
* you need to use JavaScript or something like that. The following posts could give some hints:
+ [Getting the client's timezone in JavaScript](https://stackoverflow.com/q/1091372/1595451)
+ [Sup... |
84,337 | <p>I'm working on a document that I would like to have a sheet that searches another sheet for a specific value that I type in (a name) and return content from all of the rows that have that value in their first column. Similar to vlookup, but include not just the content from the first row found.</p>
<p>In my documen... | [
{
"answer_id": 84345,
"author": "vdeogmer",
"author_id": 101062,
"author_profile": "https://webapps.stackexchange.com/users/101062",
"pm_score": 2,
"selected": false,
"text": "<p>I would go with a =filter(). You can filter down to a row in a range that corresponds to the row from a condi... | 2015/09/11 | [
"https://webapps.stackexchange.com/questions/84337",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/103609/"
] | I'm working on a document that I would like to have a sheet that searches another sheet for a specific value that I type in (a name) and return content from all of the rows that have that value in their first column. Similar to vlookup, but include not just the content from the first row found.
In my document, the des... | `filter` works, but with `query` you can get all needed columns with one command:
```
=query(Notes!A2:E, "select B, D, E where A = '"&B1&"'")
```
The messy end of query string is arranged so that if B1 contains Student Name, the query becomes `"select B, D, E where A = 'Student Name'"` |
84,405 | <p>I have a sequence of letters, in <strong>Google Spreadsheets</strong>:</p>
<pre><code> | A B C D E F
--|----------------------
1 | U Y 0 4 X N
2 | H X Y
3 | W
</code></pre>
<p>The first row contains a character pattern that serves as a template. Each subsequent row contains <em... | [
{
"answer_id": 84562,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 4,
"selected": true,
"text": "<h1>Short answer</h1>\n\n<p>QUERY() allows the use of a subset of SQL but this subset does not include the FROM clause... | 2015/09/14 | [
"https://webapps.stackexchange.com/questions/84405",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/103744/"
] | I have a sequence of letters, in **Google Spreadsheets**:
```
| A B C D E F
--|----------------------
1 | U Y 0 4 X N
2 | H X Y
3 | W
```
The first row contains a character pattern that serves as a template. Each subsequent row contains *variants* of the values in some of the col... | Short answer
============
QUERY() allows the use of a subset of SQL but this subset does not include the FROM clause.
QUERY() requires a single array as the source table, so it could not be used. Instead use ARRAYFORMULA(), TRANSPOSE(), JOIN(), SPLIT(), REPT(), FILTER(), COUNTA(), SORT() and the division (`/`) and c... |
84,456 | <p>I have two sheets of data as per below:</p>
<pre><code>╔═══════════╦══════╦══════════════╗
║ SheetName ║ Cell ║ CellValue ║
╠═══════════╬══════╬══════════════╣
║ Sheet1 ║ B1 ║ ='sheet2'!A2 ║
║ Sheet2 ║ A2 ║ 0576543 ABC ║
╚═══════════╩══════╩══════════════╝
</code></pre>
<p>This produces the output <c... | [
{
"answer_id": 87464,
"author": "Aurielle Perlmann",
"author_id": 109556,
"author_profile": "https://webapps.stackexchange.com/users/109556",
"pm_score": 2,
"selected": false,
"text": "<p>The issue in this case appears to be that you put double quotes and single quotes around the cell re... | 2015/09/15 | [
"https://webapps.stackexchange.com/questions/84456",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/103835/"
] | I have two sheets of data as per below:
```
╔═══════════╦══════╦══════════════╗
║ SheetName ║ Cell ║ CellValue ║
╠═══════════╬══════╬══════════════╣
║ Sheet1 ║ B1 ║ ='sheet2'!A2 ║
║ Sheet2 ║ A2 ║ 0576543 ABC ║
╚═══════════╩══════╩══════════════╝
```
This produces the output `0576543 ABC` in `B1`
I wan... | The issue in this case appears to be that you put double quotes and single quotes around the cell reference, try this, should fix it.
```
=REGEXREPLACE(sheet2!A2, " .*", "xxx")
``` |
84,468 | <p>I've got a bunch of cells that have formulas to display the day of the week according to the date above it. (I'm using Google Sheets by the way)</p>
<p>I want the cell underneath the day of the week that has been calculated, to display a number (which is the number of stylists in the salon on that day usually) on t... | [
{
"answer_id": 84586,
"author": "ZygD",
"author_id": 90249,
"author_profile": "https://webapps.stackexchange.com/users/90249",
"pm_score": 1,
"selected": false,
"text": "<blockquote>\n <p>I tried the 'if' formula but couldn't seem to master it!</p>\n</blockquote>\n\n<p>If you want to us... | 2015/09/15 | [
"https://webapps.stackexchange.com/questions/84468",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/103933/"
] | I've got a bunch of cells that have formulas to display the day of the week according to the date above it. (I'm using Google Sheets by the way)
I want the cell underneath the day of the week that has been calculated, to display a number (which is the number of stylists in the salon on that day usually) on that day of... | This can be solved by introducting a separate sheet, let's call it 'Weekdays':
```
| Weekday | Number of stylists Site 1 | Number of stylists Site 2 | Number of stylists Site 3 |
| 1 | 0 | 0 | 0 |
| 2 | 0 | ... |
84,602 | <p>I have two columns a and b</p>
<ul>
<li>a contains a set of text and </li>
<li>b contains a set of numerical that relates to each row in a</li>
</ul>
<p>I want to create a function that will search column a for substring value and then return a total value by adding together the corresponding value from column b w... | [
{
"answer_id": 84603,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<p>I would <a href=\"https://support.google.com/docs/answer/3093197\" rel=\"nofollow\"><code>filter</code></a> using <a... | 2015/09/18 | [
"https://webapps.stackexchange.com/questions/84602",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/-1/"
] | I have two columns a and b
* a contains a set of text and
* b contains a set of numerical that relates to each row in a
I want to create a function that will search column a for substring value and then return a total value by adding together the corresponding value from column b where the string was found
E.g. I wa... | I would [`filter`](https://support.google.com/docs/answer/3093197) using [`regexmatch`](https://support.google.com/docs/answer/3098292?hl=en) and then sum:
```
=sum(filter(B2:B, regexmatch(A2:A, "devops")))
```
if you want to include "devopsreactions", or
```
=sum(filter(B2:B, regexmatch(A2:A, "\bdevops\b")))
``... |
84,702 | <p>I have a question where the user has to pick 2 options out of 10 available options. How can I limit it to 2 and nothing more?</p>
| [
{
"answer_id": 84749,
"author": "Nicholas Gasque",
"author_id": 69201,
"author_profile": "https://webapps.stackexchange.com/users/69201",
"pm_score": 1,
"selected": false,
"text": "<p>I am a developer with <a href=\"https://www.cognitoforms.com\" rel=\"nofollow noreferrer\">Cognito Forms... | 2015/09/21 | [
"https://webapps.stackexchange.com/questions/84702",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/104239/"
] | I have a question where the user has to pick 2 options out of 10 available options. How can I limit it to 2 and nothing more? | I am a developer with [Cognito Forms](https://www.cognitoforms.com).
Although we do not have a setting that will let you do this. You can use a calculation field just below your Choice field to calculate how many items have been selected and show an error if two many options are picked.
You will need to start with yo... |
84,848 | <p>I'm looking to have cell borders automatically applied when a cell is not empty. I thought I could use conditional formatting for this, but it doesn't seem to be an option. </p>
| [
{
"answer_id": 84913,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<p>This is possible with a script (\"Tools > Script editor\"), using <a href=\"https://developers.google.com/apps-scrip... | 2015/09/22 | [
"https://webapps.stackexchange.com/questions/84848",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/-1/"
] | I'm looking to have cell borders automatically applied when a cell is not empty. I thought I could use conditional formatting for this, but it doesn't seem to be an option. | This is possible with a script ("Tools > Script editor"), using [setBorder](https://developers.google.com/apps-script/reference/spreadsheet/range#setBorder(Boolean,Boolean,Boolean,Boolean,Boolean,Boolean)) method. Here is a little demo script
```
function onEdit() {
var cell = SpreadsheetApp.getActiveRange();
if ... |
85,004 | <pre><code>14.08.2015 John Doe 100
14.08.2015 Bruce Willis 100
09.08.2015 Keanu Reaves 100
15.08.2015 John Doe 250
18.08.2015 John Doe 150
18.08.2015 Keanu Reaves 200
20.08.2015 Keanu Reaves 150
27.08.2015 Bruce Willis 100
06.09.2015 Bruce Willis 100
06.09.2015 Bruce Wil... | [
{
"answer_id": 85005,
"author": "mcarchon",
"author_id": 104336,
"author_profile": "https://webapps.stackexchange.com/users/104336",
"pm_score": 2,
"selected": true,
"text": "<p>By using SUMIFS (multiple criteria to define the sum range) instead of SUMIF (one criteria to define the sum r... | 2015/09/30 | [
"https://webapps.stackexchange.com/questions/85004",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/104869/"
] | ```
14.08.2015 John Doe 100
14.08.2015 Bruce Willis 100
09.08.2015 Keanu Reaves 100
15.08.2015 John Doe 250
18.08.2015 John Doe 150
18.08.2015 Keanu Reaves 200
20.08.2015 Keanu Reaves 150
27.08.2015 Bruce Willis 100
06.09.2015 Bruce Willis 100
06.09.2015 Bruce Willis ... | By using SUMIFS (multiple criteria to define the sum range) instead of SUMIF (one criteria to define the sum range) and adding an extra column B which calculates the month number you can find that sum. The extra column is required because SUMIFS doesn't allow formulas like MONTH() as a criteria.
=SUMIFS(D1:D15,B1:B15,... |
85,043 | <p>After searching, the closest information I've found is <a href="https://webapps.stackexchange.com/questions/26304/url-to-create-a-new-google-document">this question</a>. However, that answer covers just creating a Google Drive file, period. I would like to find out how to make that file get created in a specific fol... | [
{
"answer_id": 89069,
"author": "jaycer",
"author_id": 113117,
"author_profile": "https://webapps.stackexchange.com/users/113117",
"pm_score": 4,
"selected": true,
"text": "<p>I watched what happens when Google Docs creates a new document in a folder. The browser briefly goes to a create... | 2015/10/01 | [
"https://webapps.stackexchange.com/questions/85043",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/41980/"
] | After searching, the closest information I've found is [this question](https://webapps.stackexchange.com/questions/26304/url-to-create-a-new-google-document). However, that answer covers just creating a Google Drive file, period. I would like to find out how to make that file get created in a specific folder.
Is this ... | I watched what happens when Google Docs creates a new document in a folder. The browser briefly goes to a create url. To make the url, you need to know your folder's id. If you navigate to the folder in a browser, its id is at the end of the url:
```
https://drive.google.com/drive/u/0/folders/[string_of_characters_is_... |
85,044 | <p>I've got a Gmail email filter rule set up to prevent email from various senders from going into spam. Here's a simplified version of the rule:</p>
<pre>
Matches:
from:(abc.org.nz|def.nz|westpac|mailman|ird.govt|mybank|contact)
Do this: Never send it to Spam
</pre>
<p>As you can see, to keep it short and more... | [
{
"answer_id": 85051,
"author": "ale",
"author_id": 354,
"author_profile": "https://webapps.stackexchange.com/users/354",
"pm_score": 5,
"selected": true,
"text": "<p>Gmail search doesn't support wildcards, partial words, or regular expressions. By extension, then, neither do Gmail filte... | 2015/10/01 | [
"https://webapps.stackexchange.com/questions/85044",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/104983/"
] | I've got a Gmail email filter rule set up to prevent email from various senders from going into spam. Here's a simplified version of the rule:
```
Matches:
from:(abc.org.nz|def.nz|westpac|mailman|ird.govt|mybank|contact)
Do this: Never send it to Spam
```
As you can see, to keep it short and more generalised (not ... | Gmail search doesn't support wildcards, partial words, or regular expressions. By extension, then, neither do Gmail filters. (Some information from [Google Support](https://support.google.com/mail/answer/6593).)
`@example.com` will work because `@` is a word separator. But `@example` will match `@example.com` but *not... |
85,070 | <p>How do I disable Facebook chat availability? My chat is offline and I am using Windows 7 with Firefox. When I login with my other account through my mobile Facebook and open a chat conversation I see the account that I use on my computer is active "just now" whenever I move the mouse or refresh the page.</p>
<p>How... | [
{
"answer_id": 85071,
"author": "a man in love",
"author_id": 104986,
"author_profile": "https://webapps.stackexchange.com/users/104986",
"pm_score": 5,
"selected": true,
"text": "<p>Okay I have found the solution to block this status.</p>\n\n<p>Basically Facebook uses a timer and so it ... | 2015/10/02 | [
"https://webapps.stackexchange.com/questions/85070",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/104986/"
] | How do I disable Facebook chat availability? My chat is offline and I am using Windows 7 with Firefox. When I login with my other account through my mobile Facebook and open a chat conversation I see the account that I use on my computer is active "just now" whenever I move the mouse or refresh the page.
How do I disa... | Okay I have found the solution to block this status.
Basically Facebook uses a timer and so it will send a heartbeat message to their servers with the idle time every x minutes.
Here is an example of such web request:
```
https://1-edge-chat.facebook.com/pull?channel=userid&seq=0&partition=-2&clientid=18ae8ecc&cb=ie... |
85,101 | <p>I'm currently using the following function to import data from one spreadsheet to another based on a value in Column K of the source spreadsheet: </p>
<pre><code>=QUERY(
IMPORTRANGE("URL","Sheet Name!A2:P1000"),
"SELECT Col1,Col2,Col3,Col6,Col7,Col8,Col9,Col10,Col11,Col12,Col13,Col14,Col15
WHERE Col11 ... | [
{
"answer_id": 85109,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 4,
"selected": true,
"text": "<p>No, it's not possible to \"skip columns\". </p>\n\n<p>Instead you could use two query functions, one to be used to ... | 2015/10/02 | [
"https://webapps.stackexchange.com/questions/85101",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/105041/"
] | I'm currently using the following function to import data from one spreadsheet to another based on a value in Column K of the source spreadsheet:
```
=QUERY(
IMPORTRANGE("URL","Sheet Name!A2:P1000"),
"SELECT Col1,Col2,Col3,Col6,Col7,Col8,Col9,Col10,Col11,Col12,Col13,Col14,Col15
WHERE Col11 CONTAINS 'West... | No, it's not possible to "skip columns".
Instead you could use two query functions, one to be used to get the columns A - C, the other to get the columns F and following.
First formula (A1):
```
=QUERY(
IMPORTRANGE("URL","Sheet Name!A2:P"),
"SELECT Col1,Col2,Col3
WHERE Col11 CONTAINS 'West'",
1
)
... |
85,200 | <p>I've got a Google spreadsheet that looks like this:</p>
<pre><code> Start time | End Time | Time difference
-------------+---------------+-----------------
11:30:00 | 12:45:00 | 1,25
-------------+---------------+-----------------
09:20:00 | 10:30:00 |
11:35:00 | 12:00:00 ... | [
{
"answer_id": 85183,
"author": "Xavierjazz",
"author_id": 17873,
"author_profile": "https://webapps.stackexchange.com/users/17873",
"pm_score": 0,
"selected": false,
"text": "<p>No. They have removed access to that domain unless you had previously registered a name. They allow you to ke... | 2015/10/06 | [
"https://webapps.stackexchange.com/questions/85200",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/105261/"
] | I've got a Google spreadsheet that looks like this:
```
Start time | End Time | Time difference
-------------+---------------+-----------------
11:30:00 | 12:45:00 | 1,25
-------------+---------------+-----------------
09:20:00 | 10:30:00 |
11:35:00 | 12:00:00 | #VALUE!... | ### Microsoft won't provide new email accounts under the hotmail.com domain
This is incorrect.
The normal "Create Account" link at <https://signup.live.com/signup>? allows the creation of @hotmail.com addresses:
>
> [](https://i.stack.imgur.com/8SC... |
85,227 | <p>I would like to count the number of non-empty cells in a range that depends on the row number. I've tried <code>counta(row()+3:row()+4)</code> which always returns 1 as does <code>counta(row():row())</code> (where I would have expected a circular dependency). <code>counta(12:12)</code> works fine, as does <code>coun... | [
{
"answer_id": 85234,
"author": "Vidar S. Ramdal",
"author_id": 21583,
"author_profile": "https://webapps.stackexchange.com/users/21583",
"pm_score": 3,
"selected": true,
"text": "<p>You cannot construct a range specification like that. You'll want the <code>=INDIRECT</code> function (<a... | 2015/10/07 | [
"https://webapps.stackexchange.com/questions/85227",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/67141/"
] | I would like to count the number of non-empty cells in a range that depends on the row number. I've tried `counta(row()+3:row()+4)` which always returns 1 as does `counta(row():row())` (where I would have expected a circular dependency). `counta(12:12)` works fine, as does `count(13:14)`.
How do I make a range that is... | You cannot construct a range specification like that. You'll want the `=INDIRECT` function ([documentation](https://support.google.com/docs/answer/3093377?vid=1-635798006255742032-2068237842)), in order to translate a row number into a range.
You must also include the *column* in your range. If your range spans column... |
85,231 | <p>There is a user I follow on Twitter and I'm trying to find a message they posted a while ago. I tried using Twitter search to search "@username searchterm" and there were no search results. How do I search for "searchterm" of "@user"?</p>
| [
{
"answer_id": 85234,
"author": "Vidar S. Ramdal",
"author_id": 21583,
"author_profile": "https://webapps.stackexchange.com/users/21583",
"pm_score": 3,
"selected": true,
"text": "<p>You cannot construct a range specification like that. You'll want the <code>=INDIRECT</code> function (<a... | 2015/10/07 | [
"https://webapps.stackexchange.com/questions/85231",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/20235/"
] | There is a user I follow on Twitter and I'm trying to find a message they posted a while ago. I tried using Twitter search to search "@username searchterm" and there were no search results. How do I search for "searchterm" of "@user"? | You cannot construct a range specification like that. You'll want the `=INDIRECT` function ([documentation](https://support.google.com/docs/answer/3093377?vid=1-635798006255742032-2068237842)), in order to translate a row number into a range.
You must also include the *column* in your range. If your range spans column... |
85,233 | <p>I love the reminder functionality of Google Inbox. I mainly use it as a way to save links I want to look at later. </p>
<p>I know you can select 'Reminders' in the menu to see only reminders, but I often want to see just my mail without seeing reminders. </p>
<p>Is there a way to temporarily hide reminders?</p>
| [
{
"answer_id": 85243,
"author": "Coert Grobbelaar",
"author_id": 105338,
"author_profile": "https://webapps.stackexchange.com/users/105338",
"pm_score": 1,
"selected": false,
"text": "<p>As a quick fix for Chrome, I installed <a href=\"https://chrome.google.com/webstore/detail/custom-jav... | 2015/10/07 | [
"https://webapps.stackexchange.com/questions/85233",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/105338/"
] | I love the reminder functionality of Google Inbox. I mainly use it as a way to save links I want to look at later.
I know you can select 'Reminders' in the menu to see only reminders, but I often want to see just my mail without seeing reminders.
Is there a way to temporarily hide reminders? | In order to just see email messages and not reminders, add this to your search box:
```
in:inbox
``` |
85,249 | <p>I cannot find in <a href="https://developers.google.com/apps-script/reference/sites/site" rel="nofollow">documentation</a> an equivalent to <code>getSummary()</code> or <code>getTitle()</code> to retrieve the HTML content of a Google Sites <a href="https://support.google.com/sites/answer/191134?hl=en" rel="nofollow"... | [
{
"answer_id": 85269,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 0,
"selected": false,
"text": "<p>At this time there isn't a specific Google Apps Script method to retrieve the site custom footer of a Google Site ... | 2015/10/07 | [
"https://webapps.stackexchange.com/questions/85249",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/105376/"
] | I cannot find in [documentation](https://developers.google.com/apps-script/reference/sites/site) an equivalent to `getSummary()` or `getTitle()` to retrieve the HTML content of a Google Sites [footer](https://support.google.com/sites/answer/191134?hl=en) (the custom footer editable through `Edit site layout > Custom Fo... | One solution using [UrlFetchApp](https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app):
```
function GetHtmlFooter() {
var url = 'https://sites.google.com/a/test.net/';
var content = UrlFetchApp.fetch(url).getContentText("UTF-8");
var footer = content.match('<div class="sites-subfooter-c... |
85,262 | <p>I have an issue with my query where I have numeric cells and text cells that if all are empty I do not want to retrieve them however if anyone of the cells are not empty I want to retrieve that row.</p>
<p>I know that <code>is not Null</code> is used for numeric cells and <code><>''</code> is used for text ce... | [
{
"answer_id": 85267,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "<blockquote>\n <p>the query only grabs the headers.</p>\n</blockquote>\n\n<p>No, it grabs some rows, too. Scroll down..... | 2015/10/07 | [
"https://webapps.stackexchange.com/questions/85262",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/85445/"
] | I have an issue with my query where I have numeric cells and text cells that if all are empty I do not want to retrieve them however if anyone of the cells are not empty I want to retrieve that row.
I know that `is not Null` is used for numeric cells and `<>''` is used for text cells.
For example:
Let's say the tabl... | >
> the query only grabs the headers.
>
>
>
No, it grabs some rows, too. Scroll down... way, way down. There they are. Here's why you are hitting this.
1. Some of your columns are completely empty. These are interpreted as *string* by default. Hence, `is not null` is always true for these, and you get the whole ... |
85,437 | <p>I currently have a list of several recurrent events, with dates of recurrence on the same row. I hope to create a .csv file for importing into calendars, so would like to have each recurrent date on a separate row in a spreadsheet.</p>
<p>Not entirely sure how to phrase this, so I set up <a href="https://docs.googl... | [
{
"answer_id": 137433,
"author": "pfrank",
"author_id": 118952,
"author_profile": "https://webapps.stackexchange.com/users/118952",
"pm_score": 0,
"selected": false,
"text": "<p>Forwarding should work for this. But you have to change the subject (click the downward arrow and then <code>E... | 2015/10/13 | [
"https://webapps.stackexchange.com/questions/85437",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/105772/"
] | I currently have a list of several recurrent events, with dates of recurrence on the same row. I hope to create a .csv file for importing into calendars, so would like to have each recurrent date on a separate row in a spreadsheet.
Not entirely sure how to phrase this, so I set up [a sample spreadsheet with what I aim... | 1. In Gmail, enable IMAP in Settings » Forwarding and POP/IMAP.
2. Install [Thunderbird](https://www.thunderbird.net/), and configure the Gmail account using IMAP.
3. In Thunderbird, right-click on email to forward, and choose Edit as New Message.
4. Address the message, and Send.
5. Repeat steps 3-4. |
85,512 | <p>I want to check if the value is given in the cell, start time and end time.</p>
<p>It works fine now with the function like this:</p>
<pre><code>=if(and(C9 > 0, B9 > 0),C9-B9, 0)
</code></pre>
<p>But instead of <code>0</code> I and to check the condition <code>not equal FALSE</code>.</p>
<pre><code>=if(and... | [
{
"answer_id": 85514,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "<p>The \"not equal\" operator in Google Sheets is <code><></code>, not <code>!=</code>. </p>\n\n<hr>\n\n<p>Alterna... | 2015/10/15 | [
"https://webapps.stackexchange.com/questions/85512",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/46785/"
] | I want to check if the value is given in the cell, start time and end time.
It works fine now with the function like this:
```
=if(and(C9 > 0, B9 > 0),C9-B9, 0)
```
But instead of `0` I and to check the condition `not equal FALSE`.
```
=if(and(C9 != FALSE, B9 != FALSE),C9-B9, 0)
```
But the `!=` operator is not ... | The "not equal" operator in Google Sheets is `<>`, not `!=`.
---
Alternatively, you could recast the formula as
```
=if(or(C9 = FALSE, B9 = FALSE), 0, C9-B9)
``` |
85,660 | <p>I have two columns. Column K has a bunch of values, Column L has some of these values. I want to filter everything that appears in Column L out of Column K. How would I do this?</p>
| [
{
"answer_id": 85741,
"author": "Ilya Lapitan",
"author_id": 86046,
"author_profile": "https://webapps.stackexchange.com/users/86046",
"pm_score": 0,
"selected": false,
"text": "<p>The possible solution to calculate intersection of Column K and Column L is:</p>\n\n<pre><code>=FILTER(UNIQ... | 2015/10/19 | [
"https://webapps.stackexchange.com/questions/85660",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/106205/"
] | I have two columns. Column K has a bunch of values, Column L has some of these values. I want to filter everything that appears in Column L out of Column K. How would I do this? | I assume you want to get the values in K that are not appearing in L ? If so (and assuming your data starts on row 2), try:
```
=filter(K2:K, isna(match(K2:K, L2:L,0)))
```
If you only want to see unique values, then try:
```
=unique(filter(K2:K, isna(match(K2:K, L2:L,0))))
``` |
85,664 | <p>I keep getting this error.</p>
<blockquote>
<p>"Service invoked too many times for one day: route. (line 3)."</p>
</blockquote>
<p>Here is the link to my sample sheet. With script attached</p>
<blockquote>
<p><a href="https://docs.google.com/spreadsheets/d/1RZWMcI1vJW551VmoqYj_Orpv5Cqvgi99Ot53J4hTMj4/edit?usp... | [
{
"answer_id": 85741,
"author": "Ilya Lapitan",
"author_id": 86046,
"author_profile": "https://webapps.stackexchange.com/users/86046",
"pm_score": 0,
"selected": false,
"text": "<p>The possible solution to calculate intersection of Column K and Column L is:</p>\n\n<pre><code>=FILTER(UNIQ... | 2015/10/19 | [
"https://webapps.stackexchange.com/questions/85664",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/105563/"
] | I keep getting this error.
>
> "Service invoked too many times for one day: route. (line 3)."
>
>
>
Here is the link to my sample sheet. With script attached
>
> <https://docs.google.com/spreadsheets/d/1RZWMcI1vJW551VmoqYj_Orpv5Cqvgi99Ot53J4hTMj4/edit?usp=sharing>
>
>
>
This is the basic setup of my functio... | I assume you want to get the values in K that are not appearing in L ? If so (and assuming your data starts on row 2), try:
```
=filter(K2:K, isna(match(K2:K, L2:L,0)))
```
If you only want to see unique values, then try:
```
=unique(filter(K2:K, isna(match(K2:K, L2:L,0))))
``` |
85,669 | <p>I have integrated a Cognito form into a section of a new page I'm creating. It works like a charm except there is something that makes the form scroll down so the first active text (or other) field roughly aligns with the bottom border of the menu. You have to scroll up in order to read the label above the fields re... | [
{
"answer_id": 86254,
"author": "Royal",
"author_id": 55172,
"author_profile": "https://webapps.stackexchange.com/users/55172",
"pm_score": 1,
"selected": false,
"text": "<p>I’m a developer with Cognito Forms. The form is scrolling the new page into view during page navigation. The probl... | 2015/10/19 | [
"https://webapps.stackexchange.com/questions/85669",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/106222/"
] | I have integrated a Cognito form into a section of a new page I'm creating. It works like a charm except there is something that makes the form scroll down so the first active text (or other) field roughly aligns with the bottom border of the menu. You have to scroll up in order to read the label above the fields respe... | I’m a developer with Cognito Forms. The form is scrolling the new page into view during page navigation. The problem is that the top of the page is position under the menu that is fixed position. Currently, our scroll into view logic does not provide a way to handle fixed position headers/menus. However, one possible w... |
85,834 | <p>I have a need to compare a range of data against a string of data. If there is a match, I would like to get the text or contents of a cell next to it. Any ideas?</p>
<p>Example: Identify name of person with SS# 123-45-6789</p>
<p><a href="https://i.stack.imgur.com/krIDy.png" rel="nofollow noreferrer"><img src="htt... | [
{
"answer_id": 85835,
"author": "Jacob Jan Tuinstra",
"author_id": 29140,
"author_profile": "https://webapps.stackexchange.com/users/29140",
"pm_score": 2,
"selected": false,
"text": "<p>You can achieve that by using the following formulas:</p>\n\n<h2>Formula</h2>\n\n<pre><code>=IFERROR(... | 2015/10/23 | [
"https://webapps.stackexchange.com/questions/85834",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/106540/"
] | I have a need to compare a range of data against a string of data. If there is a match, I would like to get the text or contents of a cell next to it. Any ideas?
Example: Identify name of person with SS# 123-45-6789
[](https://i.stack.imgur.com/krIDy.png)
Cell conten... | You can achieve that by using the following formulas:
Formula
-------
```
=IFERROR(OFFSET(A1, MATCH(C1, B1:B3, 0) - 1, 0), "nothing found")
=IFERROR(FILTER(A2:A4, B2:B4 = C2), "nothing found")
=IFERROR(QUERY(A2:B4, "SELECT A WHERE B = '" & C2 & "'"), "nothing found")
=IFERROR(ARRAYFORMULA(VLOOKUP(C2, {B2:B4, A2:A4... |
85,918 | <p>I have a <a href="https://docs.google.com/spreadsheets/d/1fPZk352D4EaZMo35QccDi_8RxXx7Yc6TzRVbLzge--Y/pubchart?oid=547359205&format=interactive" rel="nofollow noreferrer">line chart</a> based on the following data, capturing the Close Queue size every four hours: </p>
<pre><code>+---+-------------------+-----... | [
{
"answer_id": 88389,
"author": "Aurielle Perlmann",
"author_id": 109556,
"author_profile": "https://webapps.stackexchange.com/users/109556",
"pm_score": 0,
"selected": false,
"text": "<p>Pretending that the data with the date/time is in column A - you can do an if statement to reformat ... | 2015/10/26 | [
"https://webapps.stackexchange.com/questions/85918",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/-1/"
] | I have a [line chart](https://docs.google.com/spreadsheets/d/1fPZk352D4EaZMo35QccDi_8RxXx7Yc6TzRVbLzge--Y/pubchart?oid=547359205&format=interactive) based on the following data, capturing the Close Queue size every four hours:
```
+---+-------------------+-------------+
| | A | B |
+---+--... | Short answer
============
1. Set the format of timestamp values as Date only.
2. Activate the "Treat labels as text" chart option.
Instructions
============
1. On the chart drop-down menu, select Advanced Edit
2. Click on the Customization tab
3. At the left panel, scroll down until you see the section called "Axis ... |
86,081 | <p>How do I insert/link to images existing in a folder in Google Drive into a Google Sheets spreadsheet?</p>
<p>There is the image() function, I imagine using it something like this:</p>
<pre><code>image("googledrive://somefodleringoogledrivewithmypics/pic_1.png")
</code></pre>
<p>How?</p>
<p><strong>Update:</stron... | [
{
"answer_id": 86103,
"author": "Tom Woodward",
"author_id": 103367,
"author_profile": "https://webapps.stackexchange.com/users/103367",
"pm_score": 2,
"selected": false,
"text": "<ol>\n<li>You'll need to make a spreadsheet.</li>\n<li>Then go to tools>script editor. </li>\n<li>You can cu... | 2015/10/30 | [
"https://webapps.stackexchange.com/questions/86081",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/29203/"
] | How do I insert/link to images existing in a folder in Google Drive into a Google Sheets spreadsheet?
There is the image() function, I imagine using it something like this:
```
image("googledrive://somefodleringoogledrivewithmypics/pic_1.png")
```
How?
**Update:** Some people noted that by uploading pictures to Pi... | Short answer
============
While it's possible to use files stored in Google Drive as website resources at this time it's not officially supported and should not be used for websites and **spreadsheets** that have a lifespan beyond August 31, 2016.
As was mentioned by AE I in [his answer](https://webapps.stackexchange... |
86,132 | <p>I'm looking for an URL that goes directly to the first Google hit from a certain domain as in "I'm Feeling Lucky" but limited to a certain domain.</p>
<p>I'm using this formula, but it typically doesn't work.</p>
<pre><code>http://www.google.com/search?q=SEARCHTERM%20site:SITEURL&btnI
</code></pre>
<p>Edit: I... | [
{
"answer_id": 86158,
"author": "Fiksdal",
"author_id": 107080,
"author_profile": "https://webapps.stackexchange.com/users/107080",
"pm_score": 3,
"selected": false,
"text": "<p>I solved this by switching to an equivalent service by another search engine.</p>\n\n<p>While the formula give... | 2015/10/31 | [
"https://webapps.stackexchange.com/questions/86132",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/107080/"
] | I'm looking for an URL that goes directly to the first Google hit from a certain domain as in "I'm Feeling Lucky" but limited to a certain domain.
I'm using this formula, but it typically doesn't work.
```
http://www.google.com/search?q=SEARCHTERM%20site:SITEURL&btnI
```
Edit: It seems to work a lot of the time act... | Use links like `https://www.google.com/search?btnI=1&q=%s site:developer.mozilla.org`
**btnI=1** makes the difference from a normal request. |
86,308 | <p>Can Google Sheets queries aggregate strings?
I want to aggregate all locations for all years, so the following:</p>
<pre><code>year location
2013 Sudan
2014 Syria
2012 India
2014 Poland
2014 Great Britain
</code></pre>
<p>Should be transformed to:</p>
<pre><code>year locations
2012 ... | [
{
"answer_id": 86338,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "<p>No, the <a href=\"https://developers.google.com/chart/interactive/docs/querylanguage?hl=en#aggregation-functions\" re... | 2015/11/05 | [
"https://webapps.stackexchange.com/questions/86308",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/41605/"
] | Can Google Sheets queries aggregate strings?
I want to aggregate all locations for all years, so the following:
```
year location
2013 Sudan
2014 Syria
2012 India
2014 Poland
2014 Great Britain
```
Should be transformed to:
```
year locations
2012 India
2013 Sudan
2014 Syria,... | No, the [aggregation functions](https://developers.google.com/chart/interactive/docs/querylanguage?hl=en#aggregation-functions) available for `query` do not include concatenation of strings.
An alternative approach, illustrated by the following example:
```
+---+------+---------------+------+------------------------... |
86,339 | <p>I want to leave a group chat on Facebook but every time I do the members of the chat add me right back. How can I prevent them from adding me back? </p>
| [
{
"answer_id": 88566,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<p>For Facebook groups:<br>\nWhen leaving, before confirming, there is a small box </p>\n\n<pre><code>prevent other use... | 2015/11/06 | [
"https://webapps.stackexchange.com/questions/86339",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/107497/"
] | I want to leave a group chat on Facebook but every time I do the members of the chat add me right back. How can I prevent them from adding me back? | For Facebook groups:
When leaving, before confirming, there is a small box
```
prevent other users from adding you again.
```
**Check** that box.
For chat groups you cannot do that.
If it happens to be the same user every time, unfriend, or block, etc. |
86,374 | <p>At the bottom of Google Sheet web application,
there is an 'Add' button and '1000' is the default number of rows to be added.
Can I change this default number?</p>
| [
{
"answer_id": 86461,
"author": "Michelfrancis Bustillos",
"author_id": 107673,
"author_profile": "https://webapps.stackexchange.com/users/107673",
"pm_score": 2,
"selected": false,
"text": "<p>This is currently not possible, though it has been brought up on Google Forums here: <a href=\... | 2015/11/07 | [
"https://webapps.stackexchange.com/questions/86374",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/26693/"
] | At the bottom of Google Sheet web application,
there is an 'Add' button and '1000' is the default number of rows to be added.
Can I change this default number? | Here's my workaround: I have set a hourly trigger to run below script on the Spreadsheet, which runs through all individual sheets, deleting all rows after the last content row.
```
// people accidentally press the button "add 1000 rows" at the bottom of the sheet.
// Run this script every hour to clean that off the ... |
86,417 | <p>I know how to get Google Spreadsheets to automate dates down a column. Write a date, left click on the crosshair in the bottom right hand corner, drag down and let go.</p>
<p>The thing I'm hoping to do though is have, say, ten (or any given amount) rows down a column of today's date, then ten of tomorrow's date, an... | [
{
"answer_id": 86426,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<p>Assuming the first row is used for column headers, you can enter </p>\n\n<pre><code>=arrayformula(date(2015,11,8) + ... | 2015/11/08 | [
"https://webapps.stackexchange.com/questions/86417",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/107632/"
] | I know how to get Google Spreadsheets to automate dates down a column. Write a date, left click on the crosshair in the bottom right hand corner, drag down and let go.
The thing I'm hoping to do though is have, say, ten (or any given amount) rows down a column of today's date, then ten of tomorrow's date, and so on do... | Assuming the first row is used for column headers, you can enter
```
=arrayformula(date(2015,11,8) + floor((row(A2:A)-2)/10))
```
into cell A2, and get the list of dates with each repeated 10 times. This list will fill the entire first column; if more rows are added later, they will be automatically filled as well.... |
86,480 | <p>I have a Google Drive filled with Docs, Slides, and Sheets. The new Google Drive interface no longer supports choosing the file format for bulk downloads, and just gives me a bunch of useless Microsoft Office formatted files.</p>
<p>How do I download everything as PDF, other than manually opening and downloading ea... | [
{
"answer_id": 86483,
"author": "SightSpirit",
"author_id": 103934,
"author_profile": "https://webapps.stackexchange.com/users/103934",
"pm_score": 2,
"selected": false,
"text": "<p>I just spent some time searching through Google Drive apps for one that would convert Docs editor formats ... | 2015/11/10 | [
"https://webapps.stackexchange.com/questions/86480",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/107724/"
] | I have a Google Drive filled with Docs, Slides, and Sheets. The new Google Drive interface no longer supports choosing the file format for bulk downloads, and just gives me a bunch of useless Microsoft Office formatted files.
How do I download everything as PDF, other than manually opening and downloading each of hund... | I found that the [drive Google Drive client](https://github.com/odeke-em/drive#exporting-docs) can download a folder structure that contains Google Docs exported as PDF (and some other formats as well).
```
drive pull -export pdf /path/to/folder
``` |
86,496 | <p>I want to copy a single column of Trello cards to my clipboard (just the card titles).</p>
<p>If, for example, I have the following three columns:</p>
<pre><code>TODO DOING DONE
Task3 Task2 Task1
Task4
</code></pre>
<p>and I want to copy only the "TODO" column, so the output will be:</p>
<... | [
{
"answer_id": 87228,
"author": "xtoq",
"author_id": 104489,
"author_profile": "https://webapps.stackexchange.com/users/104489",
"pm_score": 2,
"selected": false,
"text": "<p>As far as I know, it's not natively possible. If you're comfortable with third-party solutions, there's one calle... | 2015/11/10 | [
"https://webapps.stackexchange.com/questions/86496",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/11486/"
] | I want to copy a single column of Trello cards to my clipboard (just the card titles).
If, for example, I have the following three columns:
```
TODO DOING DONE
Task3 Task2 Task1
Task4
```
and I want to copy only the "TODO" column, so the output will be:
```
Task3
Task4
```
Is this possible... | The Contractor app recommended by @xtoq is no longer available. If you are comfortable with using the browser console, the following JavaScript snippet from [this blog post](http://www.secretgeek.net/trello_ws) does the job:
```
var s = [];
s.push("# " + jQuery(".board-header").children()[0].innerText);
jQuery(".list:... |
86,506 | <p>I have a large web app which currently stores all user data on my own server (with the usual precautions to deal with security, backups etc). I have recently tested out an alternative - all user data would go into the Dropbox/Apps folder to which the user would provide a token to use via the <a href="https://www.dr... | [
{
"answer_id": 87228,
"author": "xtoq",
"author_id": 104489,
"author_profile": "https://webapps.stackexchange.com/users/104489",
"pm_score": 2,
"selected": false,
"text": "<p>As far as I know, it's not natively possible. If you're comfortable with third-party solutions, there's one calle... | 2015/11/10 | [
"https://webapps.stackexchange.com/questions/86506",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/107768/"
] | I have a large web app which currently stores all user data on my own server (with the usual precautions to deal with security, backups etc). I have recently tested out an alternative - all user data would go into the Dropbox/Apps folder to which the user would provide a token to use via the [Dropbox API](https://www.d... | The Contractor app recommended by @xtoq is no longer available. If you are comfortable with using the browser console, the following JavaScript snippet from [this blog post](http://www.secretgeek.net/trello_ws) does the job:
```
var s = [];
s.push("# " + jQuery(".board-header").children()[0].innerText);
jQuery(".list:... |
86,515 | <p>I have Google Form checkbox data that I am separating out into another table so that each checkbox selection generates its own line.</p>
<p>I received some help in pulling the data over, and the resulting table was sorted alphabetically. What I need is for that table to sort by timestamp with the timestamp data br... | [
{
"answer_id": 86533,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<p>You can pull over timestamps into Sorted sheet as follows: </p>\n\n<ol>\n<li><p>Insert Column A, Timestamp, in Sheet... | 2015/11/10 | [
"https://webapps.stackexchange.com/questions/86515",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/105661/"
] | I have Google Form checkbox data that I am separating out into another table so that each checkbox selection generates its own line.
I received some help in pulling the data over, and the resulting table was sorted alphabetically. What I need is for that table to sort by timestamp with the timestamp data brought over ... | In addition, if you don't mind the timestamp to be in the last column, you can change the 'sorting formula' to
```
=sort(ArrayFormula({transpose(split(regexreplace(join(";", 'Form Responses 1'!DD2:DD), "(\w+),\s(\w+),\s", "$1, $2;"),";")), VLOOKUP(TRANSPOSE(SPLIT(JOIN("/", REPT('Form Responses 1'!DI2:DI&"/", if(len('F... |
86,529 | <p>I need to include in a cell on a Google sheet the value of the <code>ticker.last</code> attribute in a JSON which is being constantly updated from a REST API located at <code>https://www.mercadobitcoin.net/api/ticker/</code></p>
<p>Is it possible?</p>
| [
{
"answer_id": 86533,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<p>You can pull over timestamps into Sorted sheet as follows: </p>\n\n<ol>\n<li><p>Insert Column A, Timestamp, in Sheet... | 2015/11/08 | [
"https://webapps.stackexchange.com/questions/86529",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/88489/"
] | I need to include in a cell on a Google sheet the value of the `ticker.last` attribute in a JSON which is being constantly updated from a REST API located at `https://www.mercadobitcoin.net/api/ticker/`
Is it possible? | In addition, if you don't mind the timestamp to be in the last column, you can change the 'sorting formula' to
```
=sort(ArrayFormula({transpose(split(regexreplace(join(";", 'Form Responses 1'!DD2:DD), "(\w+),\s(\w+),\s", "$1, $2;"),";")), VLOOKUP(TRANSPOSE(SPLIT(JOIN("/", REPT('Form Responses 1'!DI2:DI&"/", if(len('F... |
86,557 | <p>Slack uses various characters for its own markdown formatting.</p>
<p>How can I enter a message with those reserved characters escaped?</p>
<p>e.g. Is it possible to send a message exactly like this:</p>
<blockquote>
<p>*I don't want this to be bold*</p>
</blockquote>
| [
{
"answer_id": 86568,
"author": "Tom Woodward",
"author_id": 103367,
"author_profile": "https://webapps.stackexchange.com/users/103367",
"pm_score": 1,
"selected": false,
"text": "<p><a href=\"https://slack.zendesk.com/hc/en-us/articles/202288908-Formatting-your-messages\" rel=\"nofollow... | 2015/11/11 | [
"https://webapps.stackexchange.com/questions/86557",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/37884/"
] | Slack uses various characters for its own markdown formatting.
How can I enter a message with those reserved characters escaped?
e.g. Is it possible to send a message exactly like this:
>
> \*I don't want this to be bold\*
>
>
> | For the current WYSIWYG editor, hit Ctrl+Z immediately after conversion happened. For example:
```
abc *def* ghi
```
will result in
>
> abc **def** ghi
>
>
>
On the other hand,
```
abc *def*<CTRL+Z> ghi
```
will result in
>
> abc \*def\* ghi
>
>
>
This works for formatting only, not for Slack Emojis. |
86,667 | <p>I have made a simple formula, based on cells in the same row, to indicate to the user that they have entered enough information—and it works as needed.</p>
<pre><code>=IF(AND(ISTEXT(B20),ISNUMBER(C20),ISNUMBER(E20),ISTEXT(F20)),"Ok",IF(AND(ISBLANK(B20),ISBLANK(C20),ISBLANK(D20),ISBLANK(E20),ISBLANK(F20)),"","MORE I... | [
{
"answer_id": 86669,
"author": "Vikas Avnish",
"author_id": 105919,
"author_profile": "https://webapps.stackexchange.com/users/105919",
"pm_score": -1,
"selected": false,
"text": "<p>Simply copy the formula. To save space and improve processing speed, in Google Sheets, you have limited ... | 2015/11/14 | [
"https://webapps.stackexchange.com/questions/86667",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/108012/"
] | I have made a simple formula, based on cells in the same row, to indicate to the user that they have entered enough information—and it works as needed.
```
=IF(AND(ISTEXT(B20),ISNUMBER(C20),ISNUMBER(E20),ISTEXT(F20)),"Ok",IF(AND(ISBLANK(B20),ISBLANK(C20),ISBLANK(D20),ISBLANK(E20),ISBLANK(F20)),"","MORE INFO"))
```
H... | This is with the assumption my data starts at row 2 (under my headers)
```
=arrayformula(if(istext(B2:B)*n(C2:C)*n(E2:E)*istext(F2:F),"Ok",if(len(B2:B)+len(C2:C)+len(D2:D)+len(E2:E)+len(F2:F),"MORE INFO",)))
```
Credit: GimelG from Google Docs Help Forum. |
86,711 | <p>I have two columns such as:</p>
<pre><code>a 1
b 2
c
</code></pre>
<p>and I need to combine them like:</p>
<pre><code>a 1
a 2
b 1
b 2
c 1
c 2
</code></pre>
<p>Is it possible with a formula?</p>
| [
{
"answer_id": 86713,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "<p>Although this is a special case of <a href=\"https://webapps.stackexchange.com/q/84405\">In a Google Spreadsheet, sho... | 2015/11/15 | [
"https://webapps.stackexchange.com/questions/86711",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/108112/"
] | I have two columns such as:
```
a 1
b 2
c
```
and I need to combine them like:
```
a 1
a 2
b 1
b 2
c 1
c 2
```
Is it possible with a formula? | Although this is a special case of [In a Google Spreadsheet, show all combinations for a selection of columns](https://webapps.stackexchange.com/q/84405) I think it's good to have a simpler answer specifically for the case of two columns. The technical term is "Cartesian product of two sets".
I use the same method as ... |
86,751 | <p>I have a spreadsheet I'm sharing with others to collect some data. Each person is just (supposed to be) putting a single character in any of a range of cells.</p>
<p>How can I cause those cells to convert to uppercase? </p>
<p>Using <code>=UPPER()</code> in each cell would seem to be a non-starter, because it'll b... | [
{
"answer_id": 86753,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "<p>Here is a script that automatically converts input to upper case:</p>\n<pre><code>function onEdit(e) {\n if (typeof ... | 2015/11/17 | [
"https://webapps.stackexchange.com/questions/86751",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/354/"
] | I have a spreadsheet I'm sharing with others to collect some data. Each person is just (supposed to be) putting a single character in any of a range of cells.
How can I cause those cells to convert to uppercase?
Using `=UPPER()` in each cell would seem to be a non-starter, because it'll be overwritten by whatever th... | Here is a script that automatically converts input to upper case:
```
function onEdit(e) {
if (typeof e.value != 'object') {
e.range.setValue(e.value.toUpperCase());
}
}
```
From the spreadsheet, go Extensions > Apps Script. Put the above code in the code window (replacing anything pre-filled there), and sav... |
86,802 | <p>I want to populate a dropdown list based on a selection of another cell's dropdown list. </p>
<p><a href="https://drive.google.com/open?id=1623xEoNJABNoqBhT4MhynWpiSsVBjuLylt5rPW9af1o" rel="nofollow noreferrer">Here is my spreadsheet</a>.</p>
<p>E.g., if the user does not make a choice from D20 dropdown menu, ther... | [
{
"answer_id": 104840,
"author": "freginold",
"author_id": 142456,
"author_profile": "https://webapps.stackexchange.com/users/142456",
"pm_score": 2,
"selected": false,
"text": "<p>Hopefully by now you've found an answer, but for anyone else with the same question, it won't show in your ... | 2015/11/18 | [
"https://webapps.stackexchange.com/questions/86802",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/108012/"
] | I want to populate a dropdown list based on a selection of another cell's dropdown list.
[Here is my spreadsheet](https://drive.google.com/open?id=1623xEoNJABNoqBhT4MhynWpiSsVBjuLylt5rPW9af1o).
E.g., if the user does not make a choice from D20 dropdown menu, therefore F20 dropdown is Blank but has the option of only... | Hopefully by now you've found an answer, but for anyone else with the same question, it won't show in your "Repositories" list, because that's only the repositories where you are an author/owner. However, on the left side of [the main GitHub page](https://github.com/) (when you're logged in) you'll see a sidebar titled... |
86,836 | <p>What syntax do I use when adding up the number of <strong>correct answers</strong> that have boxes checked? </p>
<p>My question is;<a href="https://i.stack.imgur.com/Kwxo9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Kwxo9.png" alt="enter image description here"></a></p>
<p>In this example the correct... | [
{
"answer_id": 86968,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<p>The responses are recorded in the comma-space separated format, e.g., <code>Calico, Silk</code>. Suppose that the re... | 2015/11/19 | [
"https://webapps.stackexchange.com/questions/86836",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/108324/"
] | What syntax do I use when adding up the number of **correct answers** that have boxes checked?
My question is;[](https://i.stack.imgur.com/Kwxo9.png)
In this example the correct answers are Cotton and Calico.
I award the students a total of 2 marks ... | Two more to try:
```
=SUM(ArrayFormula(--regexmatch(split(D2,","), "Cotton|Calico")))
```
or
```
=SUM(ArrayFormula(countif(D2, {"*Cotton*", "*Calico*"})))
``` |
86,846 | <p>I've a folder in my Google Drive and would like to get the file id of all the files against their file name in a spreadsheet.</p>
<p>Currently I have to open all the files in the folder individually and copy past the "<strong>File-Id</strong>" from the address bar to this spreadsheet (MasterSheet). In the <strong>M... | [
{
"answer_id": 86881,
"author": "Arvind",
"author_id": 108400,
"author_profile": "https://webapps.stackexchange.com/users/108400",
"pm_score": 4,
"selected": true,
"text": "<p>I modified <a href=\"https://webapps.stackexchange.com/a/86103/88163\">Tom Woodward's script</a> to suite my ne... | 2015/11/19 | [
"https://webapps.stackexchange.com/questions/86846",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/108400/"
] | I've a folder in my Google Drive and would like to get the file id of all the files against their file name in a spreadsheet.
Currently I have to open all the files in the folder individually and copy past the "**File-Id**" from the address bar to this spreadsheet (MasterSheet). In the **MasterSheet** I've set some im... | I modified [Tom Woodward's script](https://webapps.stackexchange.com/a/86103/88163) to suite my need. Here it is:
```
function listFilesInFolder(folderName) {
var sheet = SpreadsheetApp.getActiveSheet();
sheet.appendRow(["Name", "File-Id"]);
//change the folder ID below to reflect your folder's ID (look in ... |
86,897 | <p>I have numbers in range D7:D and there are times when some cells are empty. I want the average of the last 7 numbers but to skip blanks. So if in the last 7 there's only 3 that are full, I want it to go back further and find 7 total and average them out.</p>
| [
{
"answer_id": 86900,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "<p>Here is one approach: </p>\n\n<pre><code>=average(indirect(\"D\" & iferror(large(filter(row(D7:D), len(D7:D)), 7)... | 2015/11/20 | [
"https://webapps.stackexchange.com/questions/86897",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/108494/"
] | I have numbers in range D7:D and there are times when some cells are empty. I want the average of the last 7 numbers but to skip blanks. So if in the last 7 there's only 3 that are full, I want it to go back further and find 7 total and average them out. | Here is one approach:
```
=average(indirect("D" & iferror(large(filter(row(D7:D), len(D7:D)), 7), row(D7)) & ":D"))
```
Explanation:
* `filter(row(D7:D), len(D7:D))` returns an array that consists of the row numbers of the nonempty entries in the given range.
* `large(..., 7)` picks the 7th largest number from thi... |
87,006 | <p>I've been looking for a good way to automate my Google Docs and Sheets on Drive, buy haven't found specific answers or even general ones I can modify to work for my specific requirements. I'm doing things that tie several sheets together and track variables that update and change constantly while keeping other sheet... | [
{
"answer_id": 87008,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<p>I'll answer in greater generality, not necessarily tied to your particular background. </p>\n\n<p>Step 1: Learn the ... | 2015/11/24 | [
"https://webapps.stackexchange.com/questions/87006",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/104447/"
] | I've been looking for a good way to automate my Google Docs and Sheets on Drive, buy haven't found specific answers or even general ones I can modify to work for my specific requirements. I'm doing things that tie several sheets together and track variables that update and change constantly while keeping other sheets t... | I'll answer in greater generality, not necessarily tied to your particular background.
Step 1: Learn the [fundamentals of JavaScript](https://www.codecademy.com/learn/javascript).
Step 2: Start using or modifying small scripts interacting with Google Sheets, keeping the [official documentation](https://developers.g... |
87,025 | <p>For a field I have conditional formatting with custom formula: <code>=today()>C8+14</code> and <code>=today()>C8+30</code> with different styling, basically I want to have a visual styling to highlight older and oldest stuff, two weeks and month. This works. Column <code>C</code> have a date, row can be any ro... | [
{
"answer_id": 87038,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "<p>Generally: the way to refer to \"this\" cell is to enter notation for the upper-left corner of the range being forma... | 2015/11/24 | [
"https://webapps.stackexchange.com/questions/87025",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/108723/"
] | For a field I have conditional formatting with custom formula: `=today()>C8+14` and `=today()>C8+30` with different styling, basically I want to have a visual styling to highlight older and oldest stuff, two weeks and month. This works. Column `C` have a date, row can be any row *`N`*, so `C$`*`N`* does not help.
Howe... | Generally: the way to refer to "this" cell is to enter notation for the upper-left corner of the range being formatted. For example, if the range is C1:C, then C1 means "this cell".
For example, formatting C1:C with custom formula
```
=C1 < today() - 14
```
will format all cells in C with dates two weeks in the p... |
87,051 | <p>I'm trying to write a script that will calculate based on user input from a Google Form and then send a customized email based on the input provided.</p>
<p>I've written an apps script bound to the response spreadsheet that sends the form data in an html email back to the user. </p>
<p>I have all my calculations ... | [
{
"answer_id": 87056,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<p>Wouldn't a more simple way of doing this be done using functions in the actual sheet?</p>\n\n<pre><code>Up: =MROUND(... | 2015/11/25 | [
"https://webapps.stackexchange.com/questions/87051",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/108794/"
] | I'm trying to write a script that will calculate based on user input from a Google Form and then send a customized email based on the input provided.
I've written an apps script bound to the response spreadsheet that sends the form data in an html email back to the user.
I have all my calculations working in the res... | Wouldn't a more simple way of doing this be done using functions in the actual sheet?
```
Up: =MROUND(A1+0.25;0.5)
Down: =MROUND(A1-0.25;0.5)
```
I would assume that having another column added to the spreadsheet that takes the Google Forms input and performs the rounding function on it, then use Apps Script to emai... |
87,138 | <p>In <a href="https://docs.google.com/spreadsheets/d/1c3A4bw2e-IC9a8KZtynFECPhyW1-Syv_xMhBTudU1o8/edit#gid=1836993182&vpid=A1" rel="nofollow noreferrer">my spreadsheet</a> the chart for Negative Feedback weekly pulls data from the <code>Query</code> sheet, but the logic doesn't work to separates negative feedback ... | [
{
"answer_id": 87151,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "<p>You are hitting some strange behavior of Sheets, quite possibly a bug. I will first describe a way to reproduce it, a... | 2015/11/28 | [
"https://webapps.stackexchange.com/questions/87138",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/109007/"
] | In [my spreadsheet](https://docs.google.com/spreadsheets/d/1c3A4bw2e-IC9a8KZtynFECPhyW1-Syv_xMhBTudU1o8/edit#gid=1836993182&vpid=A1) the chart for Negative Feedback weekly pulls data from the `Query` sheet, but the logic doesn't work to separates negative feedback from positive feedback. The logic works fine on the non... | You are hitting some strange behavior of Sheets, quite possibly a bug. I will first describe a way to reproduce it, and then a way to avoid it.
### To reproduce:
Put some text in cells A1 and A3, leaving A2 blank. In cell B1, enter `=query(A1:A3, "select *")`. The content of cells B1:B3 will now *appear* to be identi... |
87,202 | <p>I have a Google spreadsheet with hundreds of employee names for a schedule. Each cell has multiple names within that cell that look like this:</p>
<pre><code>First Last
First Last
First Last
First Last
First Last
</code></pre>
<p>Many of the names are color coded red while the others remain black. I'm using a scr... | [
{
"answer_id": 87294,
"author": "MaryC.fromNZ",
"author_id": 2314,
"author_profile": "https://webapps.stackexchange.com/users/2314",
"pm_score": 2,
"selected": false,
"text": "<p>I'm pretty sure that it is possible, and that I've done it. Will check the details of how I did it later on... | 2015/12/01 | [
"https://webapps.stackexchange.com/questions/87202",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/109160/"
] | I have a Google spreadsheet with hundreds of employee names for a schedule. Each cell has multiple names within that cell that look like this:
```
First Last
First Last
First Last
First Last
First Last
```
Many of the names are color coded red while the others remain black. I'm using a script to remove the extra ne... | I've found the solution, it was via mobile, but it's a solution.
AdSense
If you don't want to use the AdSense account currently connected to your Google Account, try one of the following:
* Sign in with a different Google Account connected to the AdSense
account you'd like to use with AdMob.
* Remove yourself from th... |
87,272 | <p>I want to bring in data from a separate sheet and filter it.</p>
<p>I can get IMPORTRANGE to work like this:</p>
<pre><code>=IMPORTRANGE("URL","A:J)
</code></pre>
<p>But that doesn't filter. I can only get FILTER to work in the same sheet like this:</p>
<pre><code>=FILTER(Sheet1!A:J, C:C="Yes")
</code></pre>
<p... | [
{
"answer_id": 87276,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 6,
"selected": true,
"text": "<p>Use <a href=\"https://support.google.com/docs/answer/3093343?hl=en\" rel=\"noreferrer\"><code>query</code></a> instea... | 2015/12/02 | [
"https://webapps.stackexchange.com/questions/87272",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/109310/"
] | I want to bring in data from a separate sheet and filter it.
I can get IMPORTRANGE to work like this:
```
=IMPORTRANGE("URL","A:J)
```
But that doesn't filter. I can only get FILTER to work in the same sheet like this:
```
=FILTER(Sheet1!A:J, C:C="Yes")
```
Is there anyway to bring these two functions together a... | Use [`query`](https://support.google.com/docs/answer/3093343?hl=en) instead of `filter` for this:
```
=query(importrange("URL","A:J"), "select * where Col3 = 'Yes'")
```
The command `query` can refer to the columns of the array that it receives in an abstract way: Col1, Col2, and so forth, without being tied to thei... |
87,297 | <p>We share event photos with public through Google Plus photos. We <strike>can</strike> were able to directly give a link to an album, or to a list of available albums like this:</p>
<pre><code>https://plus.google.com/photos/+(MyPage)/albums
</code></pre>
<p>But this link doesn't work anymore—it displays a link to n... | [
{
"answer_id": 87910,
"author": "declyne",
"author_id": 72183,
"author_profile": "https://webapps.stackexchange.com/users/72183",
"pm_score": 1,
"selected": false,
"text": "<p>When you go through Google Photos (photos.google.com) you are able to create albums and share them with a public... | 2015/12/03 | [
"https://webapps.stackexchange.com/questions/87297",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/109356/"
] | We share event photos with public through Google Plus photos. We can were able to directly give a link to an album, or to a list of available albums like this:
```
https://plus.google.com/photos/+(MyPage)/albums
```
But this link doesn't work anymore—it displays a link to new Google Photos where you need to log in.
... | Since Google Plus is shutting down in April 2019, I was looking for a replacement to share multiple shared albums via one URL (one page). And the solution I found is this:
1. create a new site using <https://sites.google.com>
2. from the `Insert` pane, click `Embed`
3. in Google Photos,
* open your shared album,
* c... |
87,355 | <p>I have a spreadsheet similar to:</p>
<pre>
A B C
1 "text a1" "text b1" "text c1"
2 "text a2" "text b2" "text c2"
3 "text a3" "text b3" "text c3"
4 "text a4" "text b4" "text c4"
</pre>
<p>...and I would like to generate a word-count across all rows and columns. ... | [
{
"answer_id": 87356,
"author": "Jordan",
"author_id": 109461,
"author_profile": "https://webapps.stackexchange.com/users/109461",
"pm_score": 0,
"selected": false,
"text": "<p>After experimenting a bit, this seems like a fine/sneaky approach:</p>\n\n<ol>\n<li>Concatenate all columns tog... | 2015/12/04 | [
"https://webapps.stackexchange.com/questions/87355",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/109461/"
] | I have a spreadsheet similar to:
```
A B C
1 "text a1" "text b1" "text c1"
2 "text a2" "text b2" "text c2"
3 "text a3" "text b3" "text c3"
4 "text a4" "text b4" "text c4"
```
...and I would like to generate a word-count across all rows and columns. How can I do ... | First one has to define "a word". I'll use the definition of a word as "a maximal substring of non-whitespace characters", consistent with the linked post.
One can count words in a range by using `regexreplace` twice:
1. Replace every word with a single non-whitespace character, such as "a".
2. Remove all whitespace... |
87,415 | <p>I have a spreadsheet that collects information from two different forms. Each form feeds a different sheet in the spreadsheet. There are 3 other sheets that the info from either of the first two forms will be assigned to. I would like to have a couple things happen but it's really the same function for it all.</p>
... | [
{
"answer_id": 87416,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<p>You need onFormSubmit, not onEdit. Open the <a href=\"https://developers.google.com/apps-script/reference/spreadshe... | 2015/12/07 | [
"https://webapps.stackexchange.com/questions/87415",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/109607/"
] | I have a spreadsheet that collects information from two different forms. Each form feeds a different sheet in the spreadsheet. There are 3 other sheets that the info from either of the first two forms will be assigned to. I would like to have a couple things happen but it's really the same function for it all.
1. I ne... | This is as far as I got till my boss got mad that I was taking it down now and again. Time for V2, thanks for the help!
```
var ss = SpreadsheetApp.getActiveSpreadsheet();
var s = ss.getActiveSheet();
var r = s.getActiveRange();
var c = s.getActiveCell();
var aRow = r.getRow();
var aCol = r.getColumn();
va... |
87,492 | <h2>QUESTION:</h2>
<p>How do I create a running balance that has the following criteria:</p>
<ol>
<li>It uses an array formula</li>
<li>the rows don't need to be sorted by date, but running total only returns balance of:
<ul>
<li>Rows with the same or earlier dates</li>
<li>Rows with the same exact account name</li>... | [
{
"answer_id": 87596,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "<p>If you did not insist on array-based formula, then </p>\n\n<pre><code>sumifs(C:C, A:A, A2, B:B, \"<=\"&B2)\n</... | 2015/12/09 | [
"https://webapps.stackexchange.com/questions/87492",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/57382/"
] | QUESTION:
---------
How do I create a running balance that has the following criteria:
1. It uses an array formula
2. the rows don't need to be sorted by date, but running total only returns balance of:
* Rows with the same or earlier dates
* Rows with the same exact account name
3. Balance accrues by Date, by Name... | If you did not insist on array-based formula, then
```
sumifs(C:C, A:A, A2, B:B, "<="&B2)
```
entered in D2 and copied around the D column, would do the job.
I don't think that an arrayformula-based solution exists, because arrayformula runs through an array once, performing some element-wise operations. You want... |
87,546 | <p>I received one actual Google message and at least three spam emails today which displayed an icon of some sort in the subject title. I cannot find an option to turn off this visual noise; some of the icons are even animated!</p>
<p>Heading only: </p>
<blockquote>
<p><a href="https://i.stack.imgur.com/2ezAa.png" ... | [
{
"answer_id": 87902,
"author": "chitnan",
"author_id": 110687,
"author_profile": "https://webapps.stackexchange.com/users/110687",
"pm_score": -1,
"selected": false,
"text": "<p>You can try disabling Gmail labs which offers the experimental stuff from the settings, it may work</p>\n"
... | 2015/12/10 | [
"https://webapps.stackexchange.com/questions/87546",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/8469/"
] | I received one actual Google message and at least three spam emails today which displayed an icon of some sort in the subject title. I cannot find an option to turn off this visual noise; some of the icons are even animated!
Heading only:
>
> [](https://i.stack.im... | *Cross-posted to [How can I turn off or hide animated emoji icons in subject lines in Gmail?](https://webapps.stackexchange.com/questions/87672/how-can-i-turn-off-or-hide-animated-emoji-icons-in-subject-lines-in-gmail/)*
Short Answer
============
The [Gmail web app](http://mail.google.com) doesn't include an option t... |
87,556 | <p>I'd like a formula that highlights all duplicate cells, even if they are in different columns. </p>
<p>In <a href="https://docs.google.com/spreadsheets/d/1p2pb3Gut0UmHM_Arb7IheEu19CnUhBH_EdbXQRKCCxE/edit#gid=0" rel="nofollow">my example spreadsheet</a> <code>A1</code> is equal to <code>D15</code>, the formula shou... | [
{
"answer_id": 87902,
"author": "chitnan",
"author_id": 110687,
"author_profile": "https://webapps.stackexchange.com/users/110687",
"pm_score": -1,
"selected": false,
"text": "<p>You can try disabling Gmail labs which offers the experimental stuff from the settings, it may work</p>\n"
... | 2015/12/11 | [
"https://webapps.stackexchange.com/questions/87556",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/109914/"
] | I'd like a formula that highlights all duplicate cells, even if they are in different columns.
In [my example spreadsheet](https://docs.google.com/spreadsheets/d/1p2pb3Gut0UmHM_Arb7IheEu19CnUhBH_EdbXQRKCCxE/edit#gid=0) `A1` is equal to `D15`, the formula should highlight both, and so on with all worksheet duplicates,... | *Cross-posted to [How can I turn off or hide animated emoji icons in subject lines in Gmail?](https://webapps.stackexchange.com/questions/87672/how-can-i-turn-off-or-hide-animated-emoji-icons-in-subject-lines-in-gmail/)*
Short Answer
============
The [Gmail web app](http://mail.google.com) doesn't include an option t... |
87,620 | <p>Is there any way I could access Google Spreadsheet revision history through the API?</p>
<p>The reason for that is I have a lot of sheets and simply relying on build-in revision history does not suffice to point me to the sheet where changes were made. I need to check <em>all</em> the sheets to figure out what chan... | [
{
"answer_id": 87641,
"author": "matcheek",
"author_id": 5829,
"author_profile": "https://webapps.stackexchange.com/users/5829",
"pm_score": 2,
"selected": false,
"text": "<p>I ended up using logging from Google App Script to file.</p>\n\n<pre><code>function onEdit(event) {\n\n var obse... | 2015/12/13 | [
"https://webapps.stackexchange.com/questions/87620",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/5829/"
] | Is there any way I could access Google Spreadsheet revision history through the API?
The reason for that is I have a lot of sheets and simply relying on build-in revision history does not suffice to point me to the sheet where changes were made. I need to check *all* the sheets to figure out what change was made - hig... | I ended up using logging from Google App Script to file.
```
function onEdit(event) {
var observableSheets = ["Sheet1", "Sheet2", "Sheet3"];
var ignoredUsers = ["ignored_user@gmail.com", "ignored_user2@gmail.com"];
var current = new Date();
Logger.log("%s - %s", "Change Logger", new Date());
var s = Sprea... |
87,675 | <p>At my current company, all employees have *.com and *.de email addresses. The problem now is that if I search for emails from a certain contact I have to choose between emails from either one of the two. Is there a way to be able to search for both of them at once?</p>
| [
{
"answer_id": 87679,
"author": "Alex",
"author_id": 1512,
"author_profile": "https://webapps.stackexchange.com/users/1512",
"pm_score": 2,
"selected": false,
"text": "<p>Yes, try this:</p>\n\n<pre><code>from:(johndoe@example.com OR johndoe@example.de)\n</code></pre>\n\n<p>Please note th... | 2015/12/15 | [
"https://webapps.stackexchange.com/questions/87675",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/110178/"
] | At my current company, all employees have \*.com and \*.de email addresses. The problem now is that if I search for emails from a certain contact I have to choose between emails from either one of the two. Is there a way to be able to search for both of them at once? | You could write directly the search terms as was suggested in the Alex answer but also Gmail could write if for you.
>
> from:(johndoe@example.com OR johndoe@example.de)
>
>
>
OR
```
from:(johndoe@example.com | johndoe@example.de)
```
In Gmail, hover over the email in a message received by the contact that you... |
87,710 | <p>I'm using Google Spreadsheet to make some calculations.</p>
<p>At the bottom of my table I need SUM, AVG and some others and everything is fine.</p>
<p>But I made a long cell with all the text, like this:</p>
<pre><code>="Hi at all, this is my report: "&SUM(B:B)&" are the sum of my fingers, "&AVG(C:C)... | [
{
"answer_id": 87725,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "<p>Partial formatting of cell content is a recent addition to Google Sheets, and it not really integrated with the rest... | 2015/12/16 | [
"https://webapps.stackexchange.com/questions/87710",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/-1/"
] | I'm using Google Spreadsheet to make some calculations.
At the bottom of my table I need SUM, AVG and some others and everything is fine.
But I made a long cell with all the text, like this:
```
="Hi at all, this is my report: "&SUM(B:B)&" are the sum of my fingers, "&AVG(C:C)&" is the avg of my sons."
```
and so ... | Partial formatting of cell content is a recent addition to Google Sheets, and it not really integrated with the rest of spreadsheet logic. The only thing you can format in this way is a string entered directly into a cell, as `some text here`. Using any kind of formula, even the simplest `="some text here"`, is incompa... |
87,743 | <p>Gmail has some restrictions about which files can go on a zipped attachment (<a href="https://support.google.com/mail/answer/6590" rel="nofollow noreferrer">https://support.google.com/mail/answer/6590</a>). I want to attach a small zip file (146.7 kB), which only contains the following extensions: <code>php</code>, ... | [
{
"answer_id": 114403,
"author": "SDsolar",
"author_id": 154128,
"author_profile": "https://webapps.stackexchange.com/users/154128",
"pm_score": 4,
"selected": true,
"text": "<p><strong>Answer to why: Most likely it contains an executable file.</strong> </p>\n\n<p>There are many blocke... | 2015/12/14 | [
"https://webapps.stackexchange.com/questions/87743",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/145766/"
] | Gmail has some restrictions about which files can go on a zipped attachment (<https://support.google.com/mail/answer/6590>). I want to attach a small zip file (146.7 kB), which only contains the following extensions: `php`, `css`, `js`, `png`, `jpg`, plus some text files without extension. There's no zip file inside th... | **Answer to why: Most likely it contains an executable file.**
There are many blocked filetypes.
You showed the correct link as to which types are blocked.
[Why messages get blocked](https://support.google.com/mail/answer/6590) (Support.Google.com)
Excerpt:
>
> **File types you can't include as attachments**
>
... |
87,764 | <p>How do I copy a formula in Google Sheets that has the address of another sheet in the formula?</p>
<p>Now I have to edit the formula for every cell because when I copy it, it does not stay relative. And when I state "another sheet" I mean doc with a different name (address) not just another page within the same she... | [
{
"answer_id": 87780,
"author": "Aurielle Perlmann",
"author_id": 109556,
"author_profile": "https://webapps.stackexchange.com/users/109556",
"pm_score": 0,
"selected": false,
"text": "<p>IF You want to point to only that one cell You need to make your cell references inside the formula ... | 2015/12/17 | [
"https://webapps.stackexchange.com/questions/87764",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/110382/"
] | How do I copy a formula in Google Sheets that has the address of another sheet in the formula?
Now I have to edit the formula for every cell because when I copy it, it does not stay relative. And when I state "another sheet" I mean doc with a different name (address) not just another page within the same sheet. | In principle, you could do things like
```
=IMPORTRANGE("1k4o8odd...","Dashboard!S"&row())
```
forming the range string for import based on the row of the current cell.
But I do not actually recommend this. You should not use `importrange` as an individual cell reference; it's a serious drag on performance. As th... |
87,799 | <p>Setting up a conditional formatting based on current cell or another cell is easy. But how do you mix them together? Let's say I have the following table:</p>
<pre><code>| id | red | yellow | green |
|--------------------------------------|-----|--------|-------|
| e6282843-efc0-44... | [
{
"answer_id": 87807,
"author": "Aurielle Perlmann",
"author_id": 109556,
"author_profile": "https://webapps.stackexchange.com/users/109556",
"pm_score": 1,
"selected": false,
"text": "<p>Pretending that your data starts with id in column A, then B through D, put the conditional formatti... | 2015/12/18 | [
"https://webapps.stackexchange.com/questions/87799",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/110470/"
] | Setting up a conditional formatting based on current cell or another cell is easy. But how do you mix them together? Let's say I have the following table:
```
| id | red | yellow | green |
|--------------------------------------|-----|--------|-------|
| e6282843-efc0-44f6-8989-028153... | Pretending that your data starts with id in column A, then B through D, put the conditional formatting range to: 'C3:E' and then choose your argument as custom formula with this:
```
=And(or(isblank(B:B),isblank(C:C),isblank(D:D)),istext(A:A))
``` |
87,851 | <p>I am trying to convert calendar dates to fiscal dates. I've been successfully able to do all that. My problem is trying to write the fiscal date values back into the spreadsheet. Here is the code:</p>
<pre><code>var dates = [];
var fyear = [];
var fiscalDates = [];
for (var x=1; x < getLastRows;x++) {
dates[... | [
{
"answer_id": 87875,
"author": "Waqar Ahmad",
"author_id": 20389,
"author_profile": "https://webapps.stackexchange.com/users/20389",
"pm_score": 0,
"selected": false,
"text": "<p>The error you are getting because the selected range where you are trying to write the dates are not of matc... | 2015/12/21 | [
"https://webapps.stackexchange.com/questions/87851",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/109602/"
] | I am trying to convert calendar dates to fiscal dates. I've been successfully able to do all that. My problem is trying to write the fiscal date values back into the spreadsheet. Here is the code:
```
var dates = [];
var fyear = [];
var fiscalDates = [];
for (var x=1; x < getLastRows;x++) {
dates[x] = getFiscalVal... | The particular issue was sorted out in comments, but to have a generally useful answer here I include a helper function for checking whether an array is rectangular. If `.setValues(something)` throws an error, put `checkArray(something)` before that line. The function checks whether the argument is a double array in wh... |
87,854 | <p>How do I get data from one Google spreadsheet <code>A</code> into spreadsheet <code>B</code> so<br>
when Spreadsheet <code>A</code> is modified, then Spreadsheet <code>B</code> also changes automatically?</p>
<p>A formula using QUERY() and IMPORTRANGE() functions was tried, but it didn't return the expected results... | [
{
"answer_id": 87864,
"author": "Vidar S. Ramdal",
"author_id": 21583,
"author_profile": "https://webapps.stackexchange.com/users/21583",
"pm_score": 3,
"selected": true,
"text": "<p>Use the ImportRange function (<a href=\"https://support.google.com/docs/answer/3093340?hl=en\" rel=\"nofo... | 2015/12/21 | [
"https://webapps.stackexchange.com/questions/87854",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/110593/"
] | How do I get data from one Google spreadsheet `A` into spreadsheet `B` so
when Spreadsheet `A` is modified, then Spreadsheet `B` also changes automatically?
A formula using QUERY() and IMPORTRANGE() functions was tried, but it didn't return the expected results. For example, I have two spreadsheets Documents DocA a... | Use the ImportRange function ([documentation](https://support.google.com/docs/answer/3093340?hl=en)):
```
=IMPORTRANGE("spreadsheet key"; "Range")
```
See these example spreadsheets ([A](https://docs.google.com/spreadsheets/d/1p3kPfCFdfgjf7mGWNMdW4jC_NhtNuJtzVhTTJtHkQB4/edit?usp=sharing) and [B](https://docs.google.... |
87,895 | <p>I have a formula that I use to dynamically get the column letter for a 1-Dimensional array that are the column headers of a sheet. In order to use QUERY() with column names instead of letters.</p>
<p><code>SUBSTITUTE(ADDRESS(1,MATCH("Weight", Headers, 0),4), "1", "")</code></p>
<p>The syntax takes up a fair bit of... | [
{
"answer_id": 87913,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "<h3>Without Apps Script</h3>\n<p>One cannot make a new function without Apps Script. The only way to streamline the proc... | 2015/12/22 | [
"https://webapps.stackexchange.com/questions/87895",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/104515/"
] | I have a formula that I use to dynamically get the column letter for a 1-Dimensional array that are the column headers of a sheet. In order to use QUERY() with column names instead of letters.
`SUBSTITUTE(ADDRESS(1,MATCH("Weight", Headers, 0),4), "1", "")`
The syntax takes up a fair bit of space and can be difficult ... | ### Without Apps Script
One cannot make a new function without Apps Script. The only way to streamline the process is to put more cells somewhere and reference those.
For example: under each header such as 'Weight', enter the command
```
=regexextract(address(1, column()), "[A-Z]+")
```
This will put the column le... |
87,904 | <p>How can I repost or get an post mistakenly removed?</p>
| [
{
"answer_id": 87913,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "<h3>Without Apps Script</h3>\n<p>One cannot make a new function without Apps Script. The only way to streamline the proc... | 2015/12/22 | [
"https://webapps.stackexchange.com/questions/87904",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/110691/"
] | How can I repost or get an post mistakenly removed? | ### Without Apps Script
One cannot make a new function without Apps Script. The only way to streamline the process is to put more cells somewhere and reference those.
For example: under each header such as 'Weight', enter the command
```
=regexextract(address(1, column()), "[A-Z]+")
```
This will put the column le... |
88,032 | <p>After being accessed to the research paper I need via <a href="http://sci-hub.io" rel="nofollow noreferrer">Sci-hub</a>, there are multiple Russian boxes show in the screen. How can I eliminate them? I have tried to disable JavaScript, but the PDF file cannot load. </p>
<p><img src="https://i.stack.imgur.com/rw6qQ.... | [
{
"answer_id": 88033,
"author": "VipinKundal",
"author_id": 110983,
"author_profile": "https://webapps.stackexchange.com/users/110983",
"pm_score": 1,
"selected": false,
"text": "<p>Simple\nJust like a check this <a href=\"http://www.sciencedirect.com.sci-hub.io/science/article/pii/00380... | 2015/12/27 | [
"https://webapps.stackexchange.com/questions/88032",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/63572/"
] | After being accessed to the research paper I need via [Sci-hub](http://sci-hub.io), there are multiple Russian boxes show in the screen. How can I eliminate them? I have tried to disable JavaScript, but the PDF file cannot load.
 | I'm all for sci-hub and I don't really mind extra boxes asking e.g. for donations, but I really don't see the point of annoying boxes that don't adapt to non-Russian speakers (and also top bars that don't scroll away.
To programmatically do away with those boxes, you can use the following userscript. I use it on Tampe... |
88,156 | <p>I think I might be over-thinking, but since I have no experience with any kind of spreadsheet, I just don't know where else to turn.</p>
<p>What I'm trying to do: </p>
<p><img src="https://puu.sh/mdYCG/abe71f156c.png" alt="screenshot"></p>
<p>I want a drop-down list and each object in it should have a value, but ... | [
{
"answer_id": 88166,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<p>You want to look up the ore-per-fuel ratio for the chosen fuel type. This is usually done with <a href=\"https://sup... | 2015/12/30 | [
"https://webapps.stackexchange.com/questions/88156",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/111205/"
] | I think I might be over-thinking, but since I have no experience with any kind of spreadsheet, I just don't know where else to turn.
What I'm trying to do:

I want a drop-down list and each object in it should have a value, but how do I assign values to them? For ex... | You want to look up the ore-per-fuel ratio for the chosen fuel type. This is usually done with [`vlookup`](https://support.google.com/docs/answer/3093318?hl=en). Specifically, the formula
```
=vlookup(C8, A2:C5, 3, False)
```
looks up the content of C8 in the cells A2:A5 and returns the matching value from 3rd colu... |
88,161 | <p>When I use this formula to import data</p>
<pre><code>=iferror(INDEX(IMPORTHTML("http://www.thestreet.com/quote/GE/details/company-profile.html","table",3),8,1))
</code></pre>
<p>The result is <code>Sector: Industrial Goods</code>. I'd like to use the LEFT function to remove the <code>Sector:</code> text and show ... | [
{
"answer_id": 88166,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<p>You want to look up the ore-per-fuel ratio for the chosen fuel type. This is usually done with <a href=\"https://sup... | 2015/12/31 | [
"https://webapps.stackexchange.com/questions/88161",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/111213/"
] | When I use this formula to import data
```
=iferror(INDEX(IMPORTHTML("http://www.thestreet.com/quote/GE/details/company-profile.html","table",3),8,1))
```
The result is `Sector: Industrial Goods`. I'd like to use the LEFT function to remove the `Sector:` text and show only `Industrial Goods`. I can't seem to get the... | You want to look up the ore-per-fuel ratio for the chosen fuel type. This is usually done with [`vlookup`](https://support.google.com/docs/answer/3093318?hl=en). Specifically, the formula
```
=vlookup(C8, A2:C5, 3, False)
```
looks up the content of C8 in the cells A2:A5 and returns the matching value from 3rd colu... |
88,168 | <p>Is there a way to have a Google Form list-type question pass different values on the backend (e.g., to its linked Google Spreadsheet) than what are displayed?</p>
<p>For example, under Provinces at </p>
<p><a href="https://docs.google.com/forms/d/1r-Lab6FPRSWP69ihPEZ0SPLJoQzsf3C1S1XjLDT8Zuc/viewform" rel="nofollow... | [
{
"answer_id": 88166,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<p>You want to look up the ore-per-fuel ratio for the chosen fuel type. This is usually done with <a href=\"https://sup... | 2015/12/31 | [
"https://webapps.stackexchange.com/questions/88168",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/15698/"
] | Is there a way to have a Google Form list-type question pass different values on the backend (e.g., to its linked Google Spreadsheet) than what are displayed?
For example, under Provinces at
<https://docs.google.com/forms/d/1r-Lab6FPRSWP69ihPEZ0SPLJoQzsf3C1S1XjLDT8Zuc/viewform>
It would be great if the HTML `<selec... | You want to look up the ore-per-fuel ratio for the chosen fuel type. This is usually done with [`vlookup`](https://support.google.com/docs/answer/3093318?hl=en). Specifically, the formula
```
=vlookup(C8, A2:C5, 3, False)
```
looks up the content of C8 in the cells A2:A5 and returns the matching value from 3rd colu... |
88,178 | <p>I am trying to create a script where the user gets an email (column 1) with the body being column 2. However, after that, I want to replace the "@" in the email with a "#" so that they do not get the email again. </p>
<p>I know that I could have the script use the last active row, however, I cannot do that because ... | [
{
"answer_id": 88193,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 2,
"selected": false,
"text": "<h1>Answer</h1>\n<p>Google Sheets doesn't include a direct way to handle sheet-scoped named ranges.</p>\n<h1>Alternat... | 2015/12/31 | [
"https://webapps.stackexchange.com/questions/88178",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/107063/"
] | I am trying to create a script where the user gets an email (column 1) with the body being column 2. However, after that, I want to replace the "@" in the email with a "#" so that they do not get the email again.
I know that I could have the script use the last active row, however, I cannot do that because I have for... | Google Sheets does indeed have Sheet-level named ranges internally, and they are almost fully functional. :-)
The challenge is that as of 16/2/16 they can only be created by Copying a Sheet with an existing NamedRange and then Google Sheets create the parallel sheet-level named Ranges (in a similar way that excel doe... |
88,211 | <p>Suppose you have a spreadsheet similar to:</p>
<pre>
A
1 "text a1"
2 "text a2"
3 "text a3"
4 "text a4"
</pre>
<p>...and you'd like to create a new column containing each item followed by two blank rows, such as:</p>
<pre>
A B C
1 "text a1" "text a1"
2 "text... | [
{
"answer_id": 88212,
"author": "Jordan",
"author_id": 109461,
"author_profile": "https://webapps.stackexchange.com/users/109461",
"pm_score": 3,
"selected": false,
"text": "<p>After playing around a bit, I landed on the following:</p>\n\n<ol>\n<li>Appending each row with a string contai... | 2016/01/02 | [
"https://webapps.stackexchange.com/questions/88211",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/109461/"
] | Suppose you have a spreadsheet similar to:
```
A
1 "text a1"
2 "text a2"
3 "text a3"
4 "text a4"
```
...and you'd like to create a new column containing each item followed by two blank rows, such as:
```
A B C
1 "text a1" "text a1"
2 "text a2"
3 "text a3"... | After playing around a bit, I landed on the following:
1. Appending each row with a string containing a delimiter with `JOIN()`, then
2. Splitting them with `SPLIT()` and
3. Converting the resulting array into a column with `TRANSPOSE()`
Like this:
```
=TRANSPOSE(SPLIT(ArrayFormula(JOIN(" , , ,",FILTER(A:A, A:A <> "... |
88,269 | <p>How does one perform a search such that it matches multiple distinct senders in the sense that one may match emails from different senders. I.e. if you have received emails from the senders</p>
<pre><code>alice@foo.com
</code></pre>
<p>and </p>
<pre><code>bob@bar.com
</code></pre>
<p>what query would yield all e... | [
{
"answer_id": 88270,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<p>The solution is simple, using the ubiquitous \"or\" token <code>||</code>, we get</p>\n\n<pre><code>alice || bob\n</... | 2015/12/31 | [
"https://webapps.stackexchange.com/questions/88269",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/-1/"
] | How does one perform a search such that it matches multiple distinct senders in the sense that one may match emails from different senders. I.e. if you have received emails from the senders
```
alice@foo.com
```
and
```
bob@bar.com
```
what query would yield all emails from both `alice` and `bob`, regardless of ... | You can use the following filter in your search bar:
```
from:(alice@foo.com OR bob@bar.com)
```
This way allows even more complicated queries with several levels of parenthesis using the logical `and` and `or` operators. The same would work with destination addresses, replacing the keyword `from` with `to`. |
88,328 | <p>I am trying to sequence dates for the beginning of the week. It should read:</p>
<pre><code>21-12-2015
28-12-2015
04-01-2016
</code></pre>
<p>and so on. My problem is that when I highlight the first two dates and drag; I get </p>
<pre><code>21-12-2015
28-12-2015
21-12-2016
28-12-2016
</code></pre>
<p>and so ... | [
{
"answer_id": 88331,
"author": "ale",
"author_id": 354,
"author_profile": "https://webapps.stackexchange.com/users/354",
"pm_score": 2,
"selected": false,
"text": "<p>It worked for me.</p>\n\n<p>First, I just put in some dates. (Since I'm in the U.S., I used the usual date format of m/d... | 2016/01/05 | [
"https://webapps.stackexchange.com/questions/88328",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/111571/"
] | I am trying to sequence dates for the beginning of the week. It should read:
```
21-12-2015
28-12-2015
04-01-2016
```
and so on. My problem is that when I highlight the first two dates and drag; I get
```
21-12-2015
28-12-2015
21-12-2016
28-12-2016
```
and so on.
How do I fix this? | It worked for me.
First, I just put in some dates. (Since I'm in the U.S., I used the usual date format of m/d/yyyy):
[](https://i.stack.imgur.com/3BTBn.png)
Then, I created a custom date format to be dd-mm-yyyy:
[</code> within a cell. Because I am using ... | [
{
"answer_id": 88385,
"author": "Community",
"author_id": -1,
"author_profile": "https://webapps.stackexchange.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "<p>As JPV pointed out, the line </p>\n\n<pre><code>var jsonData = ImportJSON(apiUrl);\n</code></pre>\n\n<p>is not valid ... | 2016/01/06 | [
"https://webapps.stackexchange.com/questions/88362",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/111619/"
] | I am using Apps Script in Google Sheets to import JSON from Google Analytics. I have previously used the [ImportJSON function](http://blog.fastfedora.com/projects/import-json) to easily get the JSON from an open API just using `=ImportJSON(url)` within a cell. Because I am using Apps Script to authorise the Analytics A... | As JPV pointed out, the line
```
var jsonData = ImportJSON(apiUrl);
```
is not valid in Apps Script (unless you have defined `ImportJSON` function somewhere). To fetch something from an external URL in Apps Script, one uses [`UrlFetchApp`](https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app)... |
88,394 | <p>In Google Spreadsheets, without using Apps Script etc., is it possible to achieve the following with a single formula, such as <code>arrayformula</code> (or maybe <code>mmult</code> or something strange, but no fill-down) at the top of Column B?:</p>
<p>scenario:</p>
<p>Column A:
cells are empty or non-empty</p>
... | [
{
"answer_id": 88400,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 4,
"selected": false,
"text": "<h1>Short answer</h1>\n\n<pre><code>=ArrayFormula(vlookup(ROW(1:10),{IF(LEN(A1:A10)>0,ROW(1:10),\"\"),A1:A10},2))\... | 2016/01/07 | [
"https://webapps.stackexchange.com/questions/88394",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/111710/"
] | In Google Spreadsheets, without using Apps Script etc., is it possible to achieve the following with a single formula, such as `arrayformula` (or maybe `mmult` or something strange, but no fill-down) at the top of Column B?:
scenario:
Column A:
cells are empty or non-empty
goal:
Column B:
contains the last non-empt... | Answering my own question many years later; the previous answers are very good, but now it's best to do this:
```
=SCAN(
"", A1:A10,
LAMBDA(acc,x,
IF(x="", acc, x)
)
)
```
`SCAN` iterates through a 1-dimensional array, at each step keeping track of the previous result as returned by the lambda (or exceptio... |
88,407 | <p>I have a spreadsheet with these data (all of these dates and amounts are <strong>arbitrary</strong>):</p>
<pre><code> A B
12/1/2015 700
1/7/2016 100
1/13/2016 200
2/5/2016 300
3/19/2016 500
</code></pre>
<p>and another column with the first date of each month. I'm trying to sum the data by mo... | [
{
"answer_id": 88422,
"author": "pras92",
"author_id": 111047,
"author_profile": "https://webapps.stackexchange.com/users/111047",
"pm_score": 2,
"selected": false,
"text": "<p>New notifications will not be sent to your friends about the changes you make in privacy settings.</p>\n"
},
... | 2016/01/07 | [
"https://webapps.stackexchange.com/questions/88407",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/79753/"
] | I have a spreadsheet with these data (all of these dates and amounts are **arbitrary**):
```
A B
12/1/2015 700
1/7/2016 100
1/13/2016 200
2/5/2016 300
3/19/2016 500
```
and another column with the first date of each month. I'm trying to sum the data by month/year to get something like this:
`... | New notifications will not be sent to your friends about the changes you make in privacy settings. |