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 |
|---|---|---|---|---|---|---|
144,147 | <p>Column <code>A</code> of my Google Spreadsheet contains dates, columns <code>B</code> to <code>G</code> contain numeric values, line 1 contains the header names. Due to automatic updates the line count varies, but the column count is static.</p>
<p><a href="https://i.stack.imgur.com/LRQ6q.png" rel="nofollow noreferr... | [
{
"answer_id": 144157,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 2,
"selected": true,
"text": "<p>Please use the following formula</p>\n<pre><code>={ArrayFormula(SPLIT( A2:A8&"@"&$B$1&a... | 2020/07/24 | [
"https://webapps.stackexchange.com/questions/144147",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/251107/"
] | Column `A` of my Google Spreadsheet contains dates, columns `B` to `G` contain numeric values, line 1 contains the header names. Due to automatic updates the line count varies, but the column count is static.
[](https://i.stack.imgur.com/LRQ6q.png)
I... | Please use the following formula
```
={ArrayFormula(SPLIT( A2:A8&"@"&$B$1&"@@@"&B2:B8,"@",1,0));
ArrayFormula(SPLIT( A2:A8&"@"&$C$1&"@@@"&C2:C8,"@",1,0));
ArrayFormula(SPLIT( A2:A8&"@"&$D$1&"@@@"&D2:D8,"@",1,0));
ArrayFormula(SPLIT( A2:A8&"@"&$E$1&"@@@"&E2:E8,"@",1,0));
ArrayFormula(SPLIT( A2:A8&"@"&$F$1&"@@@... |
144,170 | <p>I found this comment from over 6 years ago. It has a hyperlink to a YouTube video, not a link, but a hyperlink. How was/is this done?</p>
<p><a href="https://www.youtube.com/watch?v=bbDHfUc_fMI&lc=UggS2CQUfc2M4XgCoAEC" rel="nofollow noreferrer">https://www.youtube.com/watch?v=bbDHfUc_fMI&lc=UggS2CQUfc2M4XgCo... | [
{
"answer_id": 144157,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 2,
"selected": true,
"text": "<p>Please use the following formula</p>\n<pre><code>={ArrayFormula(SPLIT( A2:A8&"@"&$B$1&a... | 2020/07/25 | [
"https://webapps.stackexchange.com/questions/144170",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/251150/"
] | I found this comment from over 6 years ago. It has a hyperlink to a YouTube video, not a link, but a hyperlink. How was/is this done?
<https://www.youtube.com/watch?v=bbDHfUc_fMI&lc=UggS2CQUfc2M4XgCoAEC> | Please use the following formula
```
={ArrayFormula(SPLIT( A2:A8&"@"&$B$1&"@@@"&B2:B8,"@",1,0));
ArrayFormula(SPLIT( A2:A8&"@"&$C$1&"@@@"&C2:C8,"@",1,0));
ArrayFormula(SPLIT( A2:A8&"@"&$D$1&"@@@"&D2:D8,"@",1,0));
ArrayFormula(SPLIT( A2:A8&"@"&$E$1&"@@@"&E2:E8,"@",1,0));
ArrayFormula(SPLIT( A2:A8&"@"&$F$1&"@@@... |
145,326 | <p>I have Google's G Suite newly hooked up to a domain I'll call example.com</p>
<p>I have a Google Sites (a new-Google-Sites site) at an address like this:
<code>https://sites.google.com/example.com/example</code></p>
<p>I have the domain example.com held at Google Domains</p>
<p>I followed the directions <a href="htt... | [
{
"answer_id": 145342,
"author": "scharfmn",
"author_id": 94197,
"author_profile": "https://webapps.stackexchange.com/users/94197",
"pm_score": 2,
"selected": true,
"text": "<p><a href=\"https://www.tachyonstemplates.com/2018/google-domains-forward-root/\" rel=\"nofollow noreferrer\">Thi... | 2020/07/31 | [
"https://webapps.stackexchange.com/questions/145326",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/94197/"
] | I have Google's G Suite newly hooked up to a domain I'll call example.com
I have a Google Sites (a new-Google-Sites site) at an address like this:
`https://sites.google.com/example.com/example`
I have the domain example.com held at Google Domains
I followed the directions [here](https://support.google.com/a/answer/7... | [This answer](https://www.tachyonstemplates.com/2018/google-domains-forward-root/) from @blairanderson solved it:
[](https://i.stack.imgur.com/eqBDj.png) |
145,420 | <p>Say I have a sheet like this:</p>
<pre>
A B
1 32 22
2 25 44
3 10 58
4 14
5 87
6 32
7 5
8 97
9 73
</pre>
<p>The sheet in reality has hundreds of rows. I need a formula that averages the first 3 cells of column A, and then if I copy this formula to the next row it would average A4:A6, a... | [
{
"answer_id": 145407,
"author": "Federico Baù",
"author_id": 251221,
"author_profile": "https://webapps.stackexchange.com/users/251221",
"pm_score": 0,
"selected": false,
"text": "<p>The pre built Privileges are <a href=\"https://support.google.com/a/answer/2405986?hl=en&ref_topic=9... | 2020/08/05 | [
"https://webapps.stackexchange.com/questions/145420",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/252764/"
] | Say I have a sheet like this:
```
A B
1 32 22
2 25 44
3 10 58
4 14
5 87
6 32
7 5
8 97
9 73
```
The sheet in reality has hundreds of rows. I need a formula that averages the first 3 cells of column A, and then if I copy this formula to the next row it would average A4:A6, and then the... | I suggest a different tact with the same result:
Create a new super-admin account with a very strong password and secured with a UbiKey. Give the CEO the credentials and Ubikey and make it very clear it's for Break Glass situations, the kind of thing they should keep split between 2 safes.
This was you can keep the C... |
145,541 | <p>I would to get the sum of the duration of the column B</p>
<pre><code>+---+----------+
| A | 14:45:00 |
+---+----------+
| A | #Value! |
+---+----------+
| A | 13:34:50 |
+---+----------+
| B | 23:41:00 |
+---+----------+
| B | 43:46:00 |
+---+----------+
</code></pre>
<p>I'm using these functions :</p>
<p><code>=S... | [
{
"answer_id": 145548,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 0,
"selected": false,
"text": "<p>Please use the following formula instead:</p>\n<p><b><pre><code>=SUM(QUERY(A1:B5,"where A='A'"... | 2020/08/11 | [
"https://webapps.stackexchange.com/questions/145541",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/226027/"
] | I would to get the sum of the duration of the column B
```
+---+----------+
| A | 14:45:00 |
+---+----------+
| A | #Value! |
+---+----------+
| A | 13:34:50 |
+---+----------+
| B | 23:41:00 |
+---+----------+
| B | 43:46:00 |
+---+----------+
```
I'm using these functions :
`=SUMIF( A1:A5 ; "B" ;B1:B5 )` this on... | There are two criteria:
* Must have `A` in **column A**
* **Column B** must have a value.
So, use `SUMIFS`
Formula:
`=SUMIFS(B1:B5,A1:A5,"A",B1:B5,">0")`
Here is the screenshot of where I used the formula:
[](https://i.stack.imgur.com/9boTy.png)
Also, make sure f... |
145,664 | <p>I want to transpose column criteria B C D E and column A repeat in every criteria.
I don't know the query. please help me.
This the link google sheets sample i made, my original data was thousand.
thank you</p>
<p>1wGH-MGpuDE_vwRVuiWuNywRMIvPdF7OaFeLxpgR5wK0</p>
| [
{
"answer_id": 145670,
"author": "Erik Tyler",
"author_id": 197265,
"author_profile": "https://webapps.stackexchange.com/users/197265",
"pm_score": 2,
"selected": true,
"text": "<p>I placed the following formula into a new sheet ("Erik Help"), cell A9:</p>\n<pre><code>=ArrayFor... | 2020/08/18 | [
"https://webapps.stackexchange.com/questions/145664",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/253106/"
] | I want to transpose column criteria B C D E and column A repeat in every criteria.
I don't know the query. please help me.
This the link google sheets sample i made, my original data was thousand.
thank you
1wGH-MGpuDE\_vwRVuiWuNywRMIvPdF7OaFeLxpgR5wK0 | I placed the following formula into a new sheet ("Erik Help"), cell A9:
```
=ArrayFormula(SPLIT(FLATTEN(A2:A3&"\"&B1:E1&"\"&B2:E3),"\",1,0))
```
NOTE: FLATTEN is not yet an official Google Sheets function. I recommend you do the following, once the formula creates the new layout:
1.) Select the entire new data rang... |
145,995 | <p>As the title would read, I am looking for a method to import data from a retail site to my current spreadsheet to have the prices update in real time. Unfortunately I am not educated in this so I am attempting to learn.</p>
<p>In my internet search I was able to come up with this:</p>
<pre><code>=QUERY(IMPORTHTML(&q... | [
{
"answer_id": 145996,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 1,
"selected": false,
"text": "<p>You can <strong>wrap your current formula with the <a href=\"https://support.google.com/docs/answer/3098... | 2020/08/31 | [
"https://webapps.stackexchange.com/questions/145995",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/254108/"
] | As the title would read, I am looking for a method to import data from a retail site to my current spreadsheet to have the prices update in real time. Unfortunately I am not educated in this so I am attempting to learn.
In my internet search I was able to come up with this:
```
=QUERY(IMPORTHTML("https://shop.tcgplay... | You can **wrap your current formula with the [INDEX](https://support.google.com/docs/answer/3098242) function**:
```
=INDEX(QUERY(IMPORTHTML("https://shop.tcgplayer.com/magic/darksteel/echoing-truth?xid=pid0b5fc15-f2ac-4f33-ae86-a3ed6d38bb44","table",2),"select Col2"),1)
```
Using `=INDEX(...,1)` you get the first r... |
146,012 | <p>My first thought was to</p>
<ol>
<li>add a duplicate cell and show the formula as general number.</li>
<li>add another cell that adds 20 years worth of days.</li>
<li>change the third cell formula back to date.</li>
</ol>
<p>But I feel like there's way to directly modify the first cell(the original and the wrong).</... | [
{
"answer_id": 146016,
"author": "Glorfindel",
"author_id": 136642,
"author_profile": "https://webapps.stackexchange.com/users/136642",
"pm_score": 0,
"selected": false,
"text": "<p>IIRC, this does work in Excel with a special paste function. Sadly, Google Sheets does not have it, so a s... | 2020/09/02 | [
"https://webapps.stackexchange.com/questions/146012",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/254167/"
] | My first thought was to
1. add a duplicate cell and show the formula as general number.
2. add another cell that adds 20 years worth of days.
3. change the third cell formula back to date.
But I feel like there's way to directly modify the first cell(the original and the wrong).
How do I do this? | Try using the [`EDATE()`](https://support.google.com/docs/answer/3092974?hl=en-GB) formula. Since it adds months you'll need 240. Something like this:
```
=ARRAYFORMULA(EDATE(A2:A2000,240))
```
Then paste values.
Alternatively, you could use this formula:
```
=ARRAYFORMULA(DATE(YEAR(A2:A2000)+20,MONTH(A2:A2000),D... |
146,072 | <p>I would like to write a function that checks what day of the week today is, and whenever it is Friday 9:30 pm it should populate the cell with the date of the coming Monday.<br />
So since today is Friday September 4th it should populate the cell with 9/7/2020, this should remain the content of the cell until next F... | [
{
"answer_id": 146016,
"author": "Glorfindel",
"author_id": 136642,
"author_profile": "https://webapps.stackexchange.com/users/136642",
"pm_score": 0,
"selected": false,
"text": "<p>IIRC, this does work in Excel with a special paste function. Sadly, Google Sheets does not have it, so a s... | 2020/09/05 | [
"https://webapps.stackexchange.com/questions/146072",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/254322/"
] | I would like to write a function that checks what day of the week today is, and whenever it is Friday 9:30 pm it should populate the cell with the date of the coming Monday.
So since today is Friday September 4th it should populate the cell with 9/7/2020, this should remain the content of the cell until next Friday ... | Try using the [`EDATE()`](https://support.google.com/docs/answer/3092974?hl=en-GB) formula. Since it adds months you'll need 240. Something like this:
```
=ARRAYFORMULA(EDATE(A2:A2000,240))
```
Then paste values.
Alternatively, you could use this formula:
```
=ARRAYFORMULA(DATE(YEAR(A2:A2000)+20,MONTH(A2:A2000),D... |
146,178 | <p>You can look up file sizes on Google drive but it does not show the size of the whole folder.</p>
<p>I've been looking for ways to get the size of a folder on Google Drive but couldn't find any.</p>
<p>Is there any way to see how much space a folder has taken on Google Drive?</p>
| [
{
"answer_id": 146180,
"author": "Aditya",
"author_id": 254615,
"author_profile": "https://webapps.stackexchange.com/users/254615",
"pm_score": 4,
"selected": false,
"text": "<p>One approach to this is using <a href=\"https://colab.research.google.com/\" rel=\"noreferrer\">Google Colab</... | 2020/09/10 | [
"https://webapps.stackexchange.com/questions/146178",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/254615/"
] | You can look up file sizes on Google drive but it does not show the size of the whole folder.
I've been looking for ways to get the size of a folder on Google Drive but couldn't find any.
Is there any way to see how much space a folder has taken on Google Drive? | One approach to this is using [Google Colab](https://colab.research.google.com/).
Step 1: Visit [Google Colab](https://colab.research.google.com/) and create a new python 3 notebook.
Step 2: Mount drive by running this code in a cell:
```
from google.colab import drive
drive._mount('/content/drive')
```
This will ... |
146,516 | <p>I have a confusing problem. I'm using GAS to shift several cells down by one. Worked fine for a while, then I started getting this error message:</p>
<p><code>Exception: Service Spreadsheets failed while accessing document with id xxxxxxxxxx</code></p>
<p>Of course including some long ID associated with my spreads... | [
{
"answer_id": 146568,
"author": "JVC",
"author_id": 131801,
"author_profile": "https://webapps.stackexchange.com/users/131801",
"pm_score": 3,
"selected": true,
"text": "<p>This was a REALLY confusing issue to solve, as the errors reported by the debugger did not point to the true culpr... | 2020/09/28 | [
"https://webapps.stackexchange.com/questions/146516",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/131801/"
] | I have a confusing problem. I'm using GAS to shift several cells down by one. Worked fine for a while, then I started getting this error message:
`Exception: Service Spreadsheets failed while accessing document with id xxxxxxxxxx`
Of course including some long ID associated with my spreadsheet.
But then the issue we... | This was a REALLY confusing issue to solve, as the errors reported by the debugger did not point to the true culprit.
In another cell elsewhere on the sheet, I had this formula:
`=SUMPRODUCT(LEN($A$5:$A)>0)`
But since my inserted cells started with A5, this was causing the error to be thrown when I would attempt the... |
146,606 | <p>My formula contains an <a href="https://validator.w3.org/feed/docs/rss2.html" rel="nofollow noreferrer">RFC822</a> pubDate, e.g. as pulled from Google's <a href="http://feeds.feedburner.com/blogspot/MKuf" rel="nofollow noreferrer">RSS2 Feed</a>.</p>
<pre><code>=DATEVALUE("Thu, 01 Oct 2020 10:00:00 +0000")
... | [
{
"answer_id": 146608,
"author": "spcsLrg",
"author_id": 228827,
"author_profile": "https://webapps.stackexchange.com/users/228827",
"pm_score": 2,
"selected": true,
"text": "<p>I did it by using a REGEXREPLACE.</p>\n<p>Example: A1 contains <code>Thu, 01 Oct 2020 10:00:00 +0000</code></p... | 2020/10/01 | [
"https://webapps.stackexchange.com/questions/146606",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/228827/"
] | My formula contains an [RFC822](https://validator.w3.org/feed/docs/rss2.html) pubDate, e.g. as pulled from Google's [RSS2 Feed](http://feeds.feedburner.com/blogspot/MKuf).
```
=DATEVALUE("Thu, 01 Oct 2020 10:00:00 +0000")
```
but it results in
```
Error
DATEVALUE parameter 'Thu, 01 Oct 2020 10:00:00 +0000' cannot b... | I did it by using a REGEXREPLACE.
Example: A1 contains `Thu, 01 Oct 2020 10:00:00 +0000`
In B1:
```
=DATEVALUE(TRIM(REGEXREPLACE(A1,"^(Sun|Mon|Tue|Wed|Thu|Fri|Sat)\,(.*)\s+\+?[0-9]{4}.*$","$2")))
```
B1 now shows `44104`. |
146,609 | <p>Given a function that returns an array, is it possible to "spread" the return values as the arguments to another function?</p>
<p>For example, I'd like to pass the result of <code>SPLIT("example.com,My Site", ",")</code> to the <code>HYPERLINK(url, [link_label])</code> function and have... | [
{
"answer_id": 146608,
"author": "spcsLrg",
"author_id": 228827,
"author_profile": "https://webapps.stackexchange.com/users/228827",
"pm_score": 2,
"selected": true,
"text": "<p>I did it by using a REGEXREPLACE.</p>\n<p>Example: A1 contains <code>Thu, 01 Oct 2020 10:00:00 +0000</code></p... | 2020/10/01 | [
"https://webapps.stackexchange.com/questions/146609",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/255598/"
] | Given a function that returns an array, is it possible to "spread" the return values as the arguments to another function?
For example, I'd like to pass the result of `SPLIT("example.com,My Site", ",")` to the `HYPERLINK(url, [link_label])` function and have it treat `"My Site"` as the `link_label` parameter.
I've tr... | I did it by using a REGEXREPLACE.
Example: A1 contains `Thu, 01 Oct 2020 10:00:00 +0000`
In B1:
```
=DATEVALUE(TRIM(REGEXREPLACE(A1,"^(Sun|Mon|Tue|Wed|Thu|Fri|Sat)\,(.*)\s+\+?[0-9]{4}.*$","$2")))
```
B1 now shows `44104`. |
146,690 | <p>I'm a student, and currently trying to organize all of my documents and slideshows into folders for easy access.<br />
Although, some of these documents and slides I cant move, the option is just greyed out.</p>
<p>It might be worth noting that these documents and slides have been submitted into classroom, but I don... | [
{
"answer_id": 146608,
"author": "spcsLrg",
"author_id": 228827,
"author_profile": "https://webapps.stackexchange.com/users/228827",
"pm_score": 2,
"selected": true,
"text": "<p>I did it by using a REGEXREPLACE.</p>\n<p>Example: A1 contains <code>Thu, 01 Oct 2020 10:00:00 +0000</code></p... | 2020/10/05 | [
"https://webapps.stackexchange.com/questions/146690",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/255862/"
] | I'm a student, and currently trying to organize all of my documents and slideshows into folders for easy access.
Although, some of these documents and slides I cant move, the option is just greyed out.
It might be worth noting that these documents and slides have been submitted into classroom, but I don't think thi... | I did it by using a REGEXREPLACE.
Example: A1 contains `Thu, 01 Oct 2020 10:00:00 +0000`
In B1:
```
=DATEVALUE(TRIM(REGEXREPLACE(A1,"^(Sun|Mon|Tue|Wed|Thu|Fri|Sat)\,(.*)\s+\+?[0-9]{4}.*$","$2")))
```
B1 now shows `44104`. |
146,698 | <p>I use Facebook Marketplace alongside Craigslist as a source for buying <strong>LOCAL</strong> items in person.</p>
<p>The <strong>Today's Picks for You</strong> feature is sometimes good for surfacing items I might be interested it.</p>
<p><a href="https://i.stack.imgur.com/oLkh0.jpg" rel="nofollow noreferrer"><img ... | [
{
"answer_id": 146608,
"author": "spcsLrg",
"author_id": 228827,
"author_profile": "https://webapps.stackexchange.com/users/228827",
"pm_score": 2,
"selected": true,
"text": "<p>I did it by using a REGEXREPLACE.</p>\n<p>Example: A1 contains <code>Thu, 01 Oct 2020 10:00:00 +0000</code></p... | 2020/10/06 | [
"https://webapps.stackexchange.com/questions/146698",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/194684/"
] | I use Facebook Marketplace alongside Craigslist as a source for buying **LOCAL** items in person.
The **Today's Picks for You** feature is sometimes good for surfacing items I might be interested it.
[](https://i.stack.imgur.com/oLkh0.jpg)
However, recently m... | I did it by using a REGEXREPLACE.
Example: A1 contains `Thu, 01 Oct 2020 10:00:00 +0000`
In B1:
```
=DATEVALUE(TRIM(REGEXREPLACE(A1,"^(Sun|Mon|Tue|Wed|Thu|Fri|Sat)\,(.*)\s+\+?[0-9]{4}.*$","$2")))
```
B1 now shows `44104`. |
146,705 | <p>So, I want to continuously divide something. I have a number, and I want to divide it into a new number, and then divide that new number, and so on. How do I make a google spreadsheet do this?</p>
| [
{
"answer_id": 146608,
"author": "spcsLrg",
"author_id": 228827,
"author_profile": "https://webapps.stackexchange.com/users/228827",
"pm_score": 2,
"selected": true,
"text": "<p>I did it by using a REGEXREPLACE.</p>\n<p>Example: A1 contains <code>Thu, 01 Oct 2020 10:00:00 +0000</code></p... | 2020/10/06 | [
"https://webapps.stackexchange.com/questions/146705",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/255901/"
] | So, I want to continuously divide something. I have a number, and I want to divide it into a new number, and then divide that new number, and so on. How do I make a google spreadsheet do this? | I did it by using a REGEXREPLACE.
Example: A1 contains `Thu, 01 Oct 2020 10:00:00 +0000`
In B1:
```
=DATEVALUE(TRIM(REGEXREPLACE(A1,"^(Sun|Mon|Tue|Wed|Thu|Fri|Sat)\,(.*)\s+\+?[0-9]{4}.*$","$2")))
```
B1 now shows `44104`. |
146,829 | <p>I have a formula which looks like this:</p>
<pre><code>=ARRAYFORMULA(IF(A4:A = "", , IF(AND(ISNUMBER(I4), ISNUMBER(J4), ISNUMBER(K4), ISNUMBER(L4)), SUM(I4:L4), "???")))
</code></pre>
<p>The idea is that for each row in the sheet, those four cells are added if and only if they are all valid numbe... | [
{
"answer_id": 146830,
"author": "Karlovsky120",
"author_id": 198237,
"author_profile": "https://webapps.stackexchange.com/users/198237",
"pm_score": 1,
"selected": false,
"text": "<p>I ended up using the following formula, under assumption that trying to <code>SUM</code> a non-number re... | 2020/10/12 | [
"https://webapps.stackexchange.com/questions/146829",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/198237/"
] | I have a formula which looks like this:
```
=ARRAYFORMULA(IF(A4:A = "", , IF(AND(ISNUMBER(I4), ISNUMBER(J4), ISNUMBER(K4), ISNUMBER(L4)), SUM(I4:L4), "???")))
```
The idea is that for each row in the sheet, those four cells are added if and only if they are all valid number, otherwise `???` is displayed.
What happe... | I ended up using the following formula, under assumption that trying to `SUM` a non-number returns an error, which seems to be correct when given `???`:
```
=ARRAYFORMULA(IF(A4:A = "", , IFERROR(I4:I+J4:J+K4:K+L4:L, "???")))
``` |
147,856 | <p>Very inexperienced google sheets user here. I have a sheet with employee data. One row and many columns of data for each employee. Some employees appear more than once (i.e. in multiple rows)</p>
<p>I need a sheet with a list of employee names and phone numbers. I am using the following formula to find, remove dupli... | [
{
"answer_id": 147850,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 0,
"selected": false,
"text": "<p>The setting to allow editors to share files applies to all editors. It's not possible to allow to do this to only... | 2020/10/13 | [
"https://webapps.stackexchange.com/questions/147856",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/245891/"
] | Very inexperienced google sheets user here. I have a sheet with employee data. One row and many columns of data for each employee. Some employees appear more than once (i.e. in multiple rows)
I need a sheet with a list of employee names and phone numbers. I am using the following formula to find, remove duplicates, an... | >
> Can I grant permission to some of them, for them to be able to share with others?
>
>
>
Yes you can.
**Case A**
*(You have already granted with rights)*
In this case what **they should** do is:
Pick the files they want to share and right-click on them.
From the pop-up choose `Share` and in the new p... |
147,930 | <p>Gmail has a search bar where you can filter emails. For example, to see emails from December 2019:</p>
<pre><code>before:2020/01/01 after:2019/11/30
</code></pre>
<p>Or to see emails before the start of 2020 which are starred:</p>
<pre><code>before:2020/01/01 is:starred
</code></pre>
<p>But how do you ask for "... | [
{
"answer_id": 147850,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 0,
"selected": false,
"text": "<p>The setting to allow editors to share files applies to all editors. It's not possible to allow to do this to only... | 2020/10/16 | [
"https://webapps.stackexchange.com/questions/147930",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/114691/"
] | Gmail has a search bar where you can filter emails. For example, to see emails from December 2019:
```
before:2020/01/01 after:2019/11/30
```
Or to see emails before the start of 2020 which are starred:
```
before:2020/01/01 is:starred
```
But how do you ask for "Emails before the start of 2020 and which are NOT... | >
> Can I grant permission to some of them, for them to be able to share with others?
>
>
>
Yes you can.
**Case A**
*(You have already granted with rights)*
In this case what **they should** do is:
Pick the files they want to share and right-click on them.
From the pop-up choose `Share` and in the new p... |
148,001 | <p><br/><br/>
Is it possible for:
<br/></p>
<ul>
<li>a set of checkboxes to recognise lists <em>(grouped in one cell)</em> on entry <em>(via formula)</em></li>
<li>to then have the same checkboxes copy the list to another cell as it returns "TRUE"</li>
</ul>
<p>Currently the below is entered in Scripts thoug... | [
{
"answer_id": 147850,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 0,
"selected": false,
"text": "<p>The setting to allow editors to share files applies to all editors. It's not possible to allow to do this to only... | 2020/10/21 | [
"https://webapps.stackexchange.com/questions/148001",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/251180/"
] | Is it possible for:
* a set of checkboxes to recognise lists *(grouped in one cell)* on entry *(via formula)*
* to then have the same checkboxes copy the list to another cell as it returns "TRUE"
Currently the below is entered in Scripts though only does the latter.
I am hoping to find a solution that allows the c... | >
> Can I grant permission to some of them, for them to be able to share with others?
>
>
>
Yes you can.
**Case A**
*(You have already granted with rights)*
In this case what **they should** do is:
Pick the files they want to share and right-click on them.
From the pop-up choose `Share` and in the new p... |
148,066 | <p>To archive a webpage in the Internet Archive's Wayback Machine, I usually do:</p>
<pre><code>wget --spider 'https://web.archive.org/save/https://example.com'
</code></pre>
<p>Is there a similar method that I can use to archive web pages to <a href="https://archive.today" rel="nofollow noreferrer">archive.today</a>?<... | [
{
"answer_id": 148069,
"author": "Glorfindel",
"author_id": 136642,
"author_profile": "https://webapps.stackexchange.com/users/136642",
"pm_score": 0,
"selected": false,
"text": "<p>I've analyzed the request of manually saving a file (Firefox' developer tools have a handy 'Copy as cURL' ... | 2020/10/24 | [
"https://webapps.stackexchange.com/questions/148066",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/218839/"
] | To archive a webpage in the Internet Archive's Wayback Machine, I usually do:
```
wget --spider 'https://web.archive.org/save/https://example.com'
```
Is there a similar method that I can use to archive web pages to [archive.today](https://archive.today)? | I've analyzed the request of manually saving a file (Firefox' developer tools have a handy 'Copy as cURL' function for this - see the bottom of the post for the actual request). It includes a lot of fluff (user agent, cookies, origin, etc.) which can be omitted, and escaping the slashes in the URL also isn't necessary.... |
148,076 | <p>I'm updating a Google Sheet. In that Google Sheet, I need to display a student's grade based on specific cut offs. I <em>thought</em> a <a href="https://support.google.com/docs/answer/7013690?hl=en" rel="nofollow noreferrer">SWITCH statement</a> would be the correct approach. However, based on that documentation, i... | [
{
"answer_id": 148084,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 2,
"selected": false,
"text": "<p>What you should actually use is the <a href=\"https://support.google.com/docs/answer/7014145\" rel=\"nof... | 2020/10/24 | [
"https://webapps.stackexchange.com/questions/148076",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/-1/"
] | I'm updating a Google Sheet. In that Google Sheet, I need to display a student's grade based on specific cut offs. I *thought* a [SWITCH statement](https://support.google.com/docs/answer/7013690?hl=en) would be the correct approach. However, based on that documentation, it looks like the case statements are mappings in... | What you should actually use is the [IFS](https://support.google.com/docs/answer/7014145) function instead
```
=IF(LEN(A2),IFS(A2<=60, "F", A2<=70, "D", A2<=80, "C", A2<=90, "B", A2<=100, "A"),"Unknown")
```
Using the extra function [ArrayFormula](https://support.google.com/docs/answer/3093275?hl=en-GB) we apply the... |
148,110 | <p>For example, when I paste:</p>
<pre><code>+XYZ
</code></pre>
<p>in Google Sheets, it autoformats it:</p>
<p><a href="https://i.stack.imgur.com/pr1S3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pr1S3.png" alt="enter image description here" /></a></p>
<p>I've tried different things (<code>Format... | [
{
"answer_id": 148113,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 3,
"selected": true,
"text": "<p><strong>Unfortunately you cannot force Google Sheets to stop auto-formatting as number.</strong></p>\n<h2... | 2020/10/26 | [
"https://webapps.stackexchange.com/questions/148110",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/78547/"
] | For example, when I paste:
```
+XYZ
```
in Google Sheets, it autoformats it:
[](https://i.stack.imgur.com/pr1S3.png)
I've tried different things (`Format>Plain Text`) but it doesnt work. I just want to get what I paste there as plain text. (i dont... | **Unfortunately you cannot force Google Sheets to stop auto-formatting as number.**
As an alternative
-----------------
Use a different program to add en masse, a single quote `'` to every piece of data you want to paste in sheets.
*For example:*
*You can use a free online tool (like <https://pinetools.com/add-text... |
148,136 | <p>I need to filter a data table by date values. Unfortunately the date cells are merged like so:</p>
<p><a href="https://i.stack.imgur.com/QQJTP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QQJTP.png" alt="enter image description here" /></a></p>
<p>So if I would write</p>
<pre><code>=FILTER(B1:B... | [
{
"answer_id": 148113,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 3,
"selected": true,
"text": "<p><strong>Unfortunately you cannot force Google Sheets to stop auto-formatting as number.</strong></p>\n<h2... | 2020/10/27 | [
"https://webapps.stackexchange.com/questions/148136",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/246911/"
] | I need to filter a data table by date values. Unfortunately the date cells are merged like so:
[](https://i.stack.imgur.com/QQJTP.png)
So if I would write
```
=FILTER(B1:B; A1 >= DATE(2020, 4, 1))
```
I only get every other value in Column B. I gu... | **Unfortunately you cannot force Google Sheets to stop auto-formatting as number.**
As an alternative
-----------------
Use a different program to add en masse, a single quote `'` to every piece of data you want to paste in sheets.
*For example:*
*You can use a free online tool (like <https://pinetools.com/add-text... |
148,151 | <p>I have a list of 1,000+ unique URLs for people to download a custom iPhone app that's on Apple Business Manager. Google Sheets allows everyone with the URL of the sheet to see the list, and they can add an X in the second column when they've claimed the code. Except for one major flaw: it does not allow people to ed... | [
{
"answer_id": 148113,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 3,
"selected": true,
"text": "<p><strong>Unfortunately you cannot force Google Sheets to stop auto-formatting as number.</strong></p>\n<h2... | 2020/10/27 | [
"https://webapps.stackexchange.com/questions/148151",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/256958/"
] | I have a list of 1,000+ unique URLs for people to download a custom iPhone app that's on Apple Business Manager. Google Sheets allows everyone with the URL of the sheet to see the list, and they can add an X in the second column when they've claimed the code. Except for one major flaw: it does not allow people to edit ... | **Unfortunately you cannot force Google Sheets to stop auto-formatting as number.**
As an alternative
-----------------
Use a different program to add en masse, a single quote `'` to every piece of data you want to paste in sheets.
*For example:*
*You can use a free online tool (like <https://pinetools.com/add-text... |
148,229 | <p>Let's say I have those values in the column:</p>
<pre><code>w 1
w 2
w 3
</code></pre>
<p>I want to convert those values to</p>
<pre><code>1
2
3
</code></pre>
<p>in another column.</p>
<p>So basically I need to convert the value "w x" to "x".<br />
How do I do that?</p>
<p>Another example:
Let... | [
{
"answer_id": 148230,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 2,
"selected": true,
"text": "<p>There are different ways to handle the issue.<br />\nI find the following the easiest ones.</p>\n<p>For a... | 2020/10/31 | [
"https://webapps.stackexchange.com/questions/148229",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/257153/"
] | Let's say I have those values in the column:
```
w 1
w 2
w 3
```
I want to convert those values to
```
1
2
3
```
in another column.
So basically I need to convert the value "w x" to "x".
How do I do that?
Another example:
Let's say I have these values in a column:
```
World Level 1 (AR 0-19)
World Leve... | There are different ways to handle the issue.
I find the following the easiest ones.
For a single cell you can use
```
=REGEXREPLACE(A1,"(\(.*\))|(\D)","")*1
```
For the whole column try
```
=ArrayFormula(IF(A1:A7="",,REGEXREPLACE(A1:A7,"(\(.*\))|(\D)","")*1))
```
[ to the comment in question reveals the true answer:
>
> It was a feature on YouTube for a short while, no special method or something. These comments are very rare and I... |
148,344 | <p>Is there away on google sheets to paste text and automaticly create new rows with every line break or ect?</p>
<p>I will paste a lot of text by this format in the example below (700 lines in total):</p>
<pre><code>wizard_setup_process_title;setup_wizard;1;1;Setup process;;true;
wizard_setup_process_description;setup... | [
{
"answer_id": 148464,
"author": "Hydra",
"author_id": 30610,
"author_profile": "https://webapps.stackexchange.com/users/30610",
"pm_score": 1,
"selected": false,
"text": "<p>As per the <a href=\"https://support.zoom.us/hc/en-us/articles/115000332726-Waiting-Room\" rel=\"nofollow norefer... | 2020/11/05 | [
"https://webapps.stackexchange.com/questions/148344",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/257440/"
] | Is there away on google sheets to paste text and automaticly create new rows with every line break or ect?
I will paste a lot of text by this format in the example below (700 lines in total):
```
wizard_setup_process_title;setup_wizard;1;1;Setup process;;true;
wizard_setup_process_description;setup_wizard;2;1;In just... | As per the [Zoom help center](https://support.zoom.us/hc/en-us/articles/115000332726-Waiting-Room), only the host is able to send a message to all participants in the waiting room. It is not possible for individual participants in the waiting room to send a message to the host.
This was also clarified in [an unofficia... |
148,360 | <p>What I want to do:</p>
<pre><code>+------+--------+---------+-----------+----------+--------+-------+------------+
| Week | Monday | Tuesday | Wednesday | Thursday | Friday | Total | Difference |
+------+--------+---------+-----------+----------+--------+-------+------------+
| 1 | 8 | 8 | 8 | ... | [
{
"answer_id": 148363,
"author": "mal",
"author_id": 15161,
"author_profile": "https://webapps.stackexchange.com/users/15161",
"pm_score": 0,
"selected": false,
"text": "<p>I went with this in the end:</p>\n<pre><code>=IF(B14<>"",IF(C14<>"",IF(D14<>&... | 2020/11/06 | [
"https://webapps.stackexchange.com/questions/148360",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/15161/"
] | What I want to do:
```
+------+--------+---------+-----------+----------+--------+-------+------------+
| Week | Monday | Tuesday | Wednesday | Thursday | Friday | Total | Difference |
+------+--------+---------+-----------+----------+--------+-------+------------+
| 1 | 8 | 8 | 8 | 9 | 8 ... | Here's a shorter option:
```
=IF(COUNTA(B2:F2) < 5, "", SUM(B2:F2))
```
The 5 is the number of values you are looking for. (The number of days of the week you have listed) |
148,373 | <p>I have a list of names:</p>
<ol>
<li>Alice</li>
<li>Bob</li>
<li>Caleb
...</li>
</ol>
<p>I want column A in rows 1-10 in Google Spreadsheets to be Alice, 11-20 to be Bob, and so on with the rest of the list.</p>
<p>How can I do this automatically? <code>FLOOR((ROW()-1)/10)</code> gets me the "index" of the... | [
{
"answer_id": 148374,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 3,
"selected": true,
"text": "<p>Please use the following formula</p>\n<pre><code>={TRANSPOSE(SPLIT(REPT(N11&",",4),",&... | 2020/11/07 | [
"https://webapps.stackexchange.com/questions/148373",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/230363/"
] | I have a list of names:
1. Alice
2. Bob
3. Caleb
...
I want column A in rows 1-10 in Google Spreadsheets to be Alice, 11-20 to be Bob, and so on with the rest of the list.
How can I do this automatically? `FLOOR((ROW()-1)/10)` gets me the "index" of the name that I want? How do I access it with the names are located... | Please use the following formula
```
={TRANSPOSE(SPLIT(REPT(N11&",",4),","));
TRANSPOSE(SPLIT(REPT(N12&",",4),","));
TRANSPOSE(SPLIT(REPT(N13&",",4),","))}
```
[](https://i.stack.imgur.com/J73J9.png)
*(Please adjust ranges and parameters to you... |
148,396 | <p>In column <strong>Q</strong> start at row <strong>15</strong> is dynamic cell which goes down the column and contains a %-Nr.
Next to it in column <strong>R</strong> i want to show the recorded max value per row. During my research i found here this code snipped which is where i was looking for.</p>
<p><a href="http... | [
{
"answer_id": 148405,
"author": "Tedinoz",
"author_id": 196152,
"author_profile": "https://webapps.stackexchange.com/users/196152",
"pm_score": 1,
"selected": false,
"text": "<p>Your existing code needs only a few tweaks:</p>\n<ul>\n<li><code>if(wsName == mainWsName && c == 17 &... | 2020/11/08 | [
"https://webapps.stackexchange.com/questions/148396",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/257540/"
] | In column **Q** start at row **15** is dynamic cell which goes down the column and contains a %-Nr.
Next to it in column **R** i want to show the recorded max value per row. During my research i found here this code snipped which is where i was looking for.
[Answer](https://webapps.stackexchange.com/a/94648/257540)
`... | Your existing code needs only a few tweaks:
* `if(wsName == mainWsName && c == 17 && r >= startrow){`
You are trying to detect a value entered in Column Q, so your need to test for `c == 17`. In addition, I modified "r" to `r >= startrow` since this allows you to declare startrow as a variable, and re-use it when upd... |
148,397 | <p>I am trying to insert a webp format image into a table in a document - however it's giving me an error. When I try with a jpg file, I am able to insert the image at the top of the file (I don't know how to insert inside the table - I have {image1} text in the position where I want to insert the image.)</p>
<p>My cod... | [
{
"answer_id": 148405,
"author": "Tedinoz",
"author_id": 196152,
"author_profile": "https://webapps.stackexchange.com/users/196152",
"pm_score": 1,
"selected": false,
"text": "<p>Your existing code needs only a few tweaks:</p>\n<ul>\n<li><code>if(wsName == mainWsName && c == 17 &... | 2020/11/08 | [
"https://webapps.stackexchange.com/questions/148397",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/212851/"
] | I am trying to insert a webp format image into a table in a document - however it's giving me an error. When I try with a jpg file, I am able to insert the image at the top of the file (I don't know how to insert inside the table - I have {image1} text in the position where I want to insert the image.)
My code is, whi... | Your existing code needs only a few tweaks:
* `if(wsName == mainWsName && c == 17 && r >= startrow){`
You are trying to detect a value entered in Column Q, so your need to test for `c == 17`. In addition, I modified "r" to `r >= startrow` since this allows you to declare startrow as a variable, and re-use it when upd... |
148,427 | <p>The data has numbers in text format and texts with numbers.</p>
<p>How do I find the max of the numbers in text format without converting to numbers?<br />
How do I find the max if it contains certain texts (ie, if it contains only <code>NB</code>)?</p>
<p><a href="https://i.stack.imgur.com/S7Jw4.jpg" rel="nofollow ... | [
{
"answer_id": 148405,
"author": "Tedinoz",
"author_id": 196152,
"author_profile": "https://webapps.stackexchange.com/users/196152",
"pm_score": 1,
"selected": false,
"text": "<p>Your existing code needs only a few tweaks:</p>\n<ul>\n<li><code>if(wsName == mainWsName && c == 17 &... | 2020/11/09 | [
"https://webapps.stackexchange.com/questions/148427",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/257646/"
] | The data has numbers in text format and texts with numbers.
How do I find the max of the numbers in text format without converting to numbers?
How do I find the max if it contains certain texts (ie, if it contains only `NB`)?
[](https://i.stack.im... | Your existing code needs only a few tweaks:
* `if(wsName == mainWsName && c == 17 && r >= startrow){`
You are trying to detect a value entered in Column Q, so your need to test for `c == 17`. In addition, I modified "r" to `r >= startrow` since this allows you to declare startrow as a variable, and re-use it when upd... |
148,474 | <p>I would like to get my whole team notified in Slack when a meeting is about to happen.</p>
<p>As a team, we have a Google Calendar shared calendar for our team meetings. And we share information in Slack in public channels.</p>
<p>How could I set up the Google Calendar to Slack integration to work so that events tha... | [
{
"answer_id": 148405,
"author": "Tedinoz",
"author_id": 196152,
"author_profile": "https://webapps.stackexchange.com/users/196152",
"pm_score": 1,
"selected": false,
"text": "<p>Your existing code needs only a few tweaks:</p>\n<ul>\n<li><code>if(wsName == mainWsName && c == 17 &... | 2020/11/11 | [
"https://webapps.stackexchange.com/questions/148474",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/42677/"
] | I would like to get my whole team notified in Slack when a meeting is about to happen.
As a team, we have a Google Calendar shared calendar for our team meetings. And we share information in Slack in public channels.
How could I set up the Google Calendar to Slack integration to work so that events that are about to ... | Your existing code needs only a few tweaks:
* `if(wsName == mainWsName && c == 17 && r >= startrow){`
You are trying to detect a value entered in Column Q, so your need to test for `c == 17`. In addition, I modified "r" to `r >= startrow` since this allows you to declare startrow as a variable, and re-use it when upd... |
148,482 | <p>I have a sheet that is supposed to show which people are working where between a start date and an end date.</p>
<p>The FILTER() function is in cell A3.</p>
<pre><code>=IFERROR(SORT(
{
FILTER({'All Tranches'!C:F, 'All Tranches'!I:J}, 'All Tranches'!I:I>=$B$1, 'All Tranches'!I:I<=$D... | [
{
"answer_id": 148596,
"author": "Tedinoz",
"author_id": 196152,
"author_profile": "https://webapps.stackexchange.com/users/196152",
"pm_score": 0,
"selected": false,
"text": "<p>You want to create a filter to select transactions that occur between two given dates. Your data contains dat... | 2020/11/11 | [
"https://webapps.stackexchange.com/questions/148482",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/215617/"
] | I have a sheet that is supposed to show which people are working where between a start date and an end date.
The FILTER() function is in cell A3.
```
=IFERROR(SORT(
{
FILTER({'All Tranches'!C:F, 'All Tranches'!I:J}, 'All Tranches'!I:I>=$B$1, 'All Tranches'!I:I<=$D$1
)... | The problem was that, as the second column of dates doesn't always contain data, if the second FILTER produced no results, the array would return an error, which was suppressed by the IFERROR, so the cell gave no results at all. I fixed it by first making a check to see if the second FILTER would produce any results.
... |
148,488 | <p>Is there a way to remove text from a box in google sheets? Here is a example:</p>
<pre><code>Total: [=sum(stuff here)]
User 1 5 points
User 2 8 points
</code></pre>
<p>The <code>[5 points]</code> is one cell. If I just try to sum it up, it just gives me a 0. Is there a way for formula to ignore text and only rea... | [
{
"answer_id": 148492,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 2,
"selected": true,
"text": "<p>The following formula do the job</p>\n<pre><code>=ArrayFormula(SUM(VALUE(REGEXEXTRACT(E2:E3,"\\d{1,}")))... | 2020/11/11 | [
"https://webapps.stackexchange.com/questions/148488",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/257786/"
] | Is there a way to remove text from a box in google sheets? Here is a example:
```
Total: [=sum(stuff here)]
User 1 5 points
User 2 8 points
```
The `[5 points]` is one cell. If I just try to sum it up, it just gives me a 0. Is there a way for formula to ignore text and only read numbers in a cell? If you could h... | The following formula do the job
```
=ArrayFormula(SUM(VALUE(REGEXEXTRACT(E2:E3,"\d{1,}"))))
```
* `REGEXTRACT` use regular expressions to extract text and works fine together with `VALUE` and `ARRAYFORMULA`
* `\d{1,}` is a regular expression that match any digit (0-9) following by any number of digits. |
148,502 | <p>How can I hide a column or make it narrower to be able to see more of the file name? The file names are often much longer than will fit into the "Name" column.</p>
<p><a href="https://i.stack.imgur.com/O136o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O136o.png" alt="Google Drive" />... | [
{
"answer_id": 148492,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 2,
"selected": true,
"text": "<p>The following formula do the job</p>\n<pre><code>=ArrayFormula(SUM(VALUE(REGEXEXTRACT(E2:E3,"\\d{1,}")))... | 2020/11/12 | [
"https://webapps.stackexchange.com/questions/148502",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/18303/"
] | How can I hide a column or make it narrower to be able to see more of the file name? The file names are often much longer than will fit into the "Name" column.
[](https://i.stack.imgur.com/O136o.png) | The following formula do the job
```
=ArrayFormula(SUM(VALUE(REGEXEXTRACT(E2:E3,"\d{1,}"))))
```
* `REGEXTRACT` use regular expressions to extract text and works fine together with `VALUE` and `ARRAYFORMULA`
* `\d{1,}` is a regular expression that match any digit (0-9) following by any number of digits. |
148,517 | <p>I have a google sheet that generates URLs from the values in cells. When the generated URL is short, the text produced is blue, underlined, and functions as a link to the URL. When the generated URL is long, the text produced is black and not a link.</p>
<p>URL that is formatted as a link:
<a href="http://www.google... | [
{
"answer_id": 148561,
"author": "Tedinoz",
"author_id": 196152,
"author_profile": "https://webapps.stackexchange.com/users/196152",
"pm_score": 3,
"selected": true,
"text": "<p>You want to take a url and create a hyperlink in Google Sheets. Your urls vary from short (@40 characters) to ... | 2020/11/12 | [
"https://webapps.stackexchange.com/questions/148517",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/199276/"
] | I have a google sheet that generates URLs from the values in cells. When the generated URL is short, the text produced is blue, underlined, and functions as a link to the URL. When the generated URL is long, the text produced is black and not a link.
URL that is formatted as a link:
<http://www.google.com/search?q=Pax... | You want to take a url and create a hyperlink in Google Sheets. Your urls vary from short (@40 characters) to very long (@1400 characters).
The `HYPERLINK()` function will create the hyperlinked-url. It is a built-in function. It should be noted that links can also be created manually from the Main menu - `Insert>Inse... |
148,641 | <p>I have a cell that contains mixed input of one or more delimited items eg:</p>
<p><code>apple,ABC1,banana,BBC2,FGC3</code></p>
<p>I need to replace the items that contain ALPHA code eg <code>ABC1</code> (from a finite list of about 25 codes)</p>
<p>with a new sequence (eg <code>ABC1</code> becomes <code>avocado,apri... | [
{
"answer_id": 148643,
"author": "Bijan Riazi-Farzad",
"author_id": 258116,
"author_profile": "https://webapps.stackexchange.com/users/258116",
"pm_score": 0,
"selected": false,
"text": "<p>If this is a one-off:</p>\n<p>Select the cells you want to change (don't select if you want this t... | 2020/11/18 | [
"https://webapps.stackexchange.com/questions/148641",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/258114/"
] | I have a cell that contains mixed input of one or more delimited items eg:
`apple,ABC1,banana,BBC2,FGC3`
I need to replace the items that contain ALPHA code eg `ABC1` (from a finite list of about 25 codes)
with a new sequence (eg `ABC1` becomes `avocado,apricot,carrot`, eg `BBC2` becomes `plum,damson,leek`)
so that... | Solved this with nested `SUBSTITUTE` formula:
```
=SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
Q2, "ABC1", "avocado,apricot,carrot"),
"BBC2", "plum,damson,leek"),
"XYZ7", "cherry,fig,date")
```
Just kept iterating on nesting x 25.
Thanks everyone for input |
148,654 | <p>I am creating a Google Sheet for teachers that automatically fills in the week number beginning with the first week of school in early Sept. and continuing to the last week of school in mid June. I am currently using <code>WEEKNUM</code>, which is working well, but I am anticipating that this will become inaccurate ... | [
{
"answer_id": 148643,
"author": "Bijan Riazi-Farzad",
"author_id": 258116,
"author_profile": "https://webapps.stackexchange.com/users/258116",
"pm_score": 0,
"selected": false,
"text": "<p>If this is a one-off:</p>\n<p>Select the cells you want to change (don't select if you want this t... | 2020/11/18 | [
"https://webapps.stackexchange.com/questions/148654",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/182368/"
] | I am creating a Google Sheet for teachers that automatically fills in the week number beginning with the first week of school in early Sept. and continuing to the last week of school in mid June. I am currently using `WEEKNUM`, which is working well, but I am anticipating that this will become inaccurate after vacation... | Solved this with nested `SUBSTITUTE` formula:
```
=SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
Q2, "ABC1", "avocado,apricot,carrot"),
"BBC2", "plum,damson,leek"),
"XYZ7", "cherry,fig,date")
```
Just kept iterating on nesting x 25.
Thanks everyone for input |
148,668 | <p><a href="https://i.stack.imgur.com/fFTMj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fFTMj.png" alt="enter image description here" /></a></p>
<p>Is there a formula I use that states, if either check box is checked in row 1, B2, C2, OR D2 (so any of the 3) - it appears in E2 as Present. If none... | [
{
"answer_id": 148669,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 0,
"selected": false,
"text": "<p>Please use the following formula in cell <code>E2</code></p>\n<pre><code>=ArrayFormula(IF(B2:B7="&q... | 2020/11/18 | [
"https://webapps.stackexchange.com/questions/148668",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/258128/"
] | [](https://i.stack.imgur.com/fFTMj.png)
Is there a formula I use that states, if either check box is checked in row 1, B2, C2, OR D2 (so any of the 3) - it appears in E2 as Present. If none are checked, then absent. The formula I've been using is =IF(... | [](https://i.stack.imgur.com/I5TNe.png)
In column E
```
=if(B9=true,"Present",if(C9=true,"Present",if(D9=true,"Present","Absent")))
```
Copied down through the range in column E as required.
Why this works: Nested `=IF(TRUE,FALSE)` is examined in ... |
148,693 | <p>I want to set up a compound interest table. I want to start with $15 and multiply by 1.0125 indefinitely. I want to be able to see the answer for each calculation (for example, I want to see what the answer is after 39 calculation, after 74 calculations, 22 calcualtions, etc..)</p>
| [
{
"answer_id": 148694,
"author": "Chris Degnen",
"author_id": 258297,
"author_profile": "https://webapps.stackexchange.com/users/258297",
"pm_score": 1,
"selected": false,
"text": "<p>For one calculation</p>\n<pre><code>15*1.0125 = 15.1875\n</code></pre>\n<p>After 39 calculations</p>\n<p... | 2020/11/19 | [
"https://webapps.stackexchange.com/questions/148693",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/258376/"
] | I want to set up a compound interest table. I want to start with $15 and multiply by 1.0125 indefinitely. I want to be able to see the answer for each calculation (for example, I want to see what the answer is after 39 calculation, after 74 calculations, 22 calcualtions, etc..) | David, try this:
In A1 enter 15.00
In A2 enter 1.0125
In B1 (with the rest of Column B empty) enter this formula:
```
=ArrayFormula(ROUND(A1*A2^SEQUENCE(900,1,0),2))
```
**HOW IT WORKS**
The ROUND wrap is obviously just truncating results to two decimal places. You could remove it and just format the entire Colu... |
148,720 | <p>I've built a crop planning calendar in which I enter the date I want a crop to be ready in one sheet, and it is automatically populated in the following sheet using INDEX.</p>
<p><a href="https://i.stack.imgur.com/z2CK7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z2CK7.png" alt="I enter data i... | [
{
"answer_id": 148694,
"author": "Chris Degnen",
"author_id": 258297,
"author_profile": "https://webapps.stackexchange.com/users/258297",
"pm_score": 1,
"selected": false,
"text": "<p>For one calculation</p>\n<pre><code>15*1.0125 = 15.1875\n</code></pre>\n<p>After 39 calculations</p>\n<p... | 2020/11/20 | [
"https://webapps.stackexchange.com/questions/148720",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/258290/"
] | I've built a crop planning calendar in which I enter the date I want a crop to be ready in one sheet, and it is automatically populated in the following sheet using INDEX.
[](https://i.stack.imgur.com/z2CK7.png)
The goal is to ente... | David, try this:
In A1 enter 15.00
In A2 enter 1.0125
In B1 (with the rest of Column B empty) enter this formula:
```
=ArrayFormula(ROUND(A1*A2^SEQUENCE(900,1,0),2))
```
**HOW IT WORKS**
The ROUND wrap is obviously just truncating results to two decimal places. You could remove it and just format the entire Colu... |
148,745 | <p>I would like a formula to output the date for the upcoming Friday and switch to the next Friday once it passes 20:00 on Friday night.</p>
<p>I have tried some solutions from other questions however I can never seem to get the correct output</p>
| [
{
"answer_id": 148748,
"author": "Erik Tyler",
"author_id": 197265,
"author_profile": "https://webapps.stackexchange.com/users/197265",
"pm_score": 3,
"selected": true,
"text": "<p>Alsors, try this:</p>\n<pre><code>=ArrayFormula(IF((WEEKDAY(TODAY())=6)*(NOW()-TODAY()>=TIMEVALUE("... | 2020/11/21 | [
"https://webapps.stackexchange.com/questions/148745",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/258348/"
] | I would like a formula to output the date for the upcoming Friday and switch to the next Friday once it passes 20:00 on Friday night.
I have tried some solutions from other questions however I can never seem to get the correct output | Alsors, try this:
```
=ArrayFormula(IF((WEEKDAY(TODAY())=6)*(NOW()-TODAY()>=TIMEVALUE("8:00 PM")),TODAY()+7,FILTER(SEQUENCE(7,1,TODAY()),WEEKDAY(SEQUENCE(7,1,TODAY()))=6)))
```
**HOW IT WORKS**
The formula assumes Sunday is counted as weekday 1 and, therefore, that Friday is counted as 6.
The first part of the IF ... |
148,807 | <p>I'm looking to match, with VLOOKUP, part of the words in a column in the main sheet to an index of keywords/categories where partial words are stored for ease in another sheet.</p>
<p>Here's an example worksheet:
<a href="https://docs.google.com/spreadsheets/d/13QrS1nDjTN6oxIoXhvdyoiqAa4lf8x3eSY3566_eTJ8/edit?usp=sh... | [
{
"answer_id": 148810,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 2,
"selected": false,
"text": "<p>In this case <code>VLOOKUP</code> can't be used because some of the categories kyes are contained within the data... | 2020/11/25 | [
"https://webapps.stackexchange.com/questions/148807",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/22651/"
] | I'm looking to match, with VLOOKUP, part of the words in a column in the main sheet to an index of keywords/categories where partial words are stored for ease in another sheet.
Here's an example worksheet:
<https://docs.google.com/spreadsheets/d/13QrS1nDjTN6oxIoXhvdyoiqAa4lf8x3eSY3566_eTJ8/edit?usp=sharing>
1. The Ex... | In this case `VLOOKUP` can't be used because some of the categories kyes are contained within the data to be matched, by the other hand, the case is more complex than the description included in the body of the question as there are some categories that are a partial match between them (i.e. `BANK VISA PREAUTH PYMT` an... |
148,835 | <p>I have found the the regexmatch solution for substring: <a href="https://webapps.stackexchange.com/questions/95649/google-sheets-formula-for-if-contains">Google Sheets formula for "if contains"</a></p>
<p>However, why for "*" is not working? I'm trying to make a condition if the name contains &qu... | [
{
"answer_id": 148810,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 2,
"selected": false,
"text": "<p>In this case <code>VLOOKUP</code> can't be used because some of the categories kyes are contained within the data... | 2020/11/26 | [
"https://webapps.stackexchange.com/questions/148835",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/258579/"
] | I have found the the regexmatch solution for substring: [Google Sheets formula for "if contains"](https://webapps.stackexchange.com/questions/95649/google-sheets-formula-for-if-contains)
However, why for "\*" is not working? I'm trying to make a condition if the name contains "\*" it will exclude the stamp duty cost.
... | In this case `VLOOKUP` can't be used because some of the categories kyes are contained within the data to be matched, by the other hand, the case is more complex than the description included in the body of the question as there are some categories that are a partial match between them (i.e. `BANK VISA PREAUTH PYMT` an... |
148,898 | <p>The below script successfully auto-replies to sender on selected non-working-days.
Can anyone suggest how I might add the after-hours of working-days, say 5pm-7am, to trigger the reply also?</p>
<pre><code>function autoReply() {
var interval = 5; // if the script runs every 5 minutes; change otherwise
va... | [
{
"answer_id": 148879,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 0,
"selected": false,
"text": "<p>Instead of using actual references, i.e. <code>A1</code>, use <code>INDIRECT</code>, i.e. <code>INDIRECT("A1... | 2020/11/30 | [
"https://webapps.stackexchange.com/questions/148898",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/258755/"
] | The below script successfully auto-replies to sender on selected non-working-days.
Can anyone suggest how I might add the after-hours of working-days, say 5pm-7am, to trigger the reply also?
```
function autoReply() {
var interval = 5; // if the script runs every 5 minutes; change otherwise
var daysOff = [... | I found the trick to fix this issue : using the link as explained in [the answer to the question mentionned in this question](https://webapps.stackexchange.com/a/146403/255143), in the `gid=someId&range=SomeLocation` part, remove the right part of the `=` (to end up with something like `gid=someId&range=`).
Use the [`C... |
149,105 | <p>First, I <em>have</em> searched repeatedly for this, but I think the biggest problem is that I cannot figure out how to phrase the question properly. This is a huge post; trying to fit all of this into simple search is pretty hard. So here goes:</p>
<p>In google sheets, I have a list of things I'll call "option... | [
{
"answer_id": 149028,
"author": "Glorfindel",
"author_id": 136642,
"author_profile": "https://webapps.stackexchange.com/users/136642",
"pm_score": 2,
"selected": false,
"text": "<p>I don't think there's a simple way. Because Google owns both Sheets and Translate, they were able to set u... | 2020/12/08 | [
"https://webapps.stackexchange.com/questions/149105",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/259267/"
] | First, I *have* searched repeatedly for this, but I think the biggest problem is that I cannot figure out how to phrase the question properly. This is a huge post; trying to fit all of this into simple search is pretty hard. So here goes:
In google sheets, I have a list of things I'll call "options" on sheet2. I need ... | I don't think there's a simple way. Because Google owns both Sheets and Translate, they were able to set up a simple integration between them.
DeepL has an [API](https://www.deepl.com/en/docs-api/), and a free subscription up to half a million characters per month. The API is not too complicated, judging by [this exam... |
149,112 | <p>Every time I try to make a financial decision while staring at the crypto tickers, I do not need to read "<a href="http://web.archive.org/web/20201208172653/https://docs.cryptowat.ch/home/updates/changelog#homepage-ftx-trading-uniswap-charts-trix" rel="nofollow noreferrer">Changelog</a>: Nov 17, 2020: Homepage,... | [
{
"answer_id": 160028,
"author": "prosody-Gabe Vereable Context",
"author_id": 31252,
"author_profile": "https://webapps.stackexchange.com/users/31252",
"pm_score": 0,
"selected": false,
"text": "<p><strong>Partial answer: Click the "Fullscreen Icon" <a href=\"https://stackover... | 2020/12/08 | [
"https://webapps.stackexchange.com/questions/149112",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/31252/"
] | Every time I try to make a financial decision while staring at the crypto tickers, I do not need to read "[Changelog](http://web.archive.org/web/20201208172653/https://docs.cryptowat.ch/home/updates/changelog#homepage-ftx-trading-uniswap-charts-trix): Nov 17, 2020: Homepage, FTX Trading, Uniswap Charts, TRIX" again in ... | Pro tip: use [Stylebot](https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha) to select and hide that element, or just paste the below code under the code tab:
```
#changelog-container {
display: none;
}
``` |
149,162 | <p>I have three columns of data that I want to represent with sparklines as a stacked bar chart.</p>
<p>For instance, a row like</p>
<pre><code>12 5 1
</code></pre>
<p>with this formula</p>
<pre><code>=SPARKLINE(C2:E2,{"charttype","bar"})
</code></pre>
<p>shows an image like this: <a href="https:... | [
{
"answer_id": 149251,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 2,
"selected": false,
"text": "<p>From the question:</p>\n<blockquote>\n<p>Is there a way to set the 3rd color to be different from the first color... | 2020/12/10 | [
"https://webapps.stackexchange.com/questions/149162",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/259439/"
] | I have three columns of data that I want to represent with sparklines as a stacked bar chart.
For instance, a row like
```
12 5 1
```
with this formula
```
=SPARKLINE(C2:E2,{"charttype","bar"})
```
shows an image like this: [](https://i.stack.imgur.com/VS... | From the question:
>
> Is there a way to set the 3rd color to be different from the first color?
>
>
>
No, there isn't.
According the the [SPARKLINE official help article](https://support.google.com/docs/answer/3093289?hl=en), the options for a SPARKLINE bar chart are
>
> For bar charts:
>
>
> * "max" sets t... |
149,163 | <p>I have been trying this for a few hours. I would like a date stamp inserted on column K when a new row is added (my data is on another sheet). I currently have the script below, however, it only works when I edit column 4 manually and not when the row is moved. I want the date stamp to be put when a new row is added... | [
{
"answer_id": 149251,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 2,
"selected": false,
"text": "<p>From the question:</p>\n<blockquote>\n<p>Is there a way to set the 3rd color to be different from the first color... | 2020/12/10 | [
"https://webapps.stackexchange.com/questions/149163",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/259440/"
] | I have been trying this for a few hours. I would like a date stamp inserted on column K when a new row is added (my data is on another sheet). I currently have the script below, however, it only works when I edit column 4 manually and not when the row is moved. I want the date stamp to be put when a new row is added. C... | From the question:
>
> Is there a way to set the 3rd color to be different from the first color?
>
>
>
No, there isn't.
According the the [SPARKLINE official help article](https://support.google.com/docs/answer/3093289?hl=en), the options for a SPARKLINE bar chart are
>
> For bar charts:
>
>
> * "max" sets t... |
149,295 | <p>I have a total number (55, for example). I want to divide that number by three and put the result (needs to be a whole number) into three different columns. But, the numbers in the three columns need to add up to the original number.</p>
<p>Let me give you the context. A 3rd grade in a building has a total of 55 ... | [
{
"answer_id": 149302,
"author": "Dimension Datacraft",
"author_id": 257929,
"author_profile": "https://webapps.stackexchange.com/users/257929",
"pm_score": 2,
"selected": true,
"text": "<p>The way I approached this was first checking if the number is whole or not once divided. Dependin... | 2020/12/15 | [
"https://webapps.stackexchange.com/questions/149295",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/189402/"
] | I have a total number (55, for example). I want to divide that number by three and put the result (needs to be a whole number) into three different columns. But, the numbers in the three columns need to add up to the original number.
Let me give you the context. A 3rd grade in a building has a total of 55 students. We... | The way I approached this was first checking if the number is whole or not once divided. Depending on that result we either need to handle rounding the resulting number up or down. The first column handled by dividing by three and rounding up if it's not whole, the second by dividing the remaining amount by 2 and deter... |
149,415 | <p>I want to show the average of a range if any cell is populated.
However, my formula shows the average only if the first cell is populated.</p>
<p>I'm using the below formula:</p>
<p><code>=IF(ARRAYFORMULA(ISBLANK(A2:C2)),"",AVERAGE(A2:C2))</code></p>
<p>If A2 is populated, the formula's output is not blank... | [
{
"answer_id": 149418,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 2,
"selected": true,
"text": "<p>Use the following</p>\n<p><b><pre><code>=IF(AND(A2="",C2="",B2=""),"&q... | 2020/12/19 | [
"https://webapps.stackexchange.com/questions/149415",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/260111/"
] | I want to show the average of a range if any cell is populated.
However, my formula shows the average only if the first cell is populated.
I'm using the below formula:
`=IF(ARRAYFORMULA(ISBLANK(A2:C2)),"",AVERAGE(A2:C2))`
If A2 is populated, the formula's output is not blank, which is expected.
[](https://i.stack.imgur.com/e9SXa.png)
Functions used:
* [`IF`](https://support.google.com/docs/answer/3093364)
* [`AND`](https://support.google.com/docs/answer/3093301)
*... |
149,440 | <p>I have a list of items, Col. B & numbers in Col. A.
I want to multiply/copy the text in cell B based on the number in their relative cell A. I.e. multiply <strong>'B'</strong> by the number of times in <em><strong>'A'</strong></em></p>
<p>Here's the sample spreadsheet:<a href="https://docs.google.com/spreadsheet... | [
{
"answer_id": 149418,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 2,
"selected": true,
"text": "<p>Use the following</p>\n<p><b><pre><code>=IF(AND(A2="",C2="",B2=""),"&q... | 2020/12/21 | [
"https://webapps.stackexchange.com/questions/149440",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/246259/"
] | I have a list of items, Col. B & numbers in Col. A.
I want to multiply/copy the text in cell B based on the number in their relative cell A. I.e. multiply **'B'** by the number of times in ***'A'***
Here's the sample spreadsheet:<https://docs.google.com/spreadsheets/d/1_jbgugr93t6CYY08Bi83SH3pWJIH8B1ukfCKiPwtt4M/edit?... | Use the following
**```
=IF(AND(A2="",C2="",B2=""),"",AVERAGE(A2:C2))
```**
[](https://i.stack.imgur.com/e9SXa.png)
Functions used:
* [`IF`](https://support.google.com/docs/answer/3093364)
* [`AND`](https://support.google.com/docs/answer/3093301)
*... |
149,516 | <p>I recently started receiving spam emails in my Gmail inbox. They all seem to be addressed to <code>john@aol.com</code>. To combat this I tried to set up a filter:</p>
<pre><code>Matches: to:(john@aol.com)
Do this: Delete it
</code></pre>
<p>When I test the filter with a search, it finds the emails correctly. But the... | [
{
"answer_id": 149522,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 0,
"selected": false,
"text": "<p>Please use the following filter condition instead</p>\n<pre><code>to:(john@aol.com)\n</code></pre>\n<p><... | 2020/12/23 | [
"https://webapps.stackexchange.com/questions/149516",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/172975/"
] | I recently started receiving spam emails in my Gmail inbox. They all seem to be addressed to `john@aol.com`. To combat this I tried to set up a filter:
```
Matches: to:(john@aol.com)
Do this: Delete it
```
When I test the filter with a search, it finds the emails correctly. But they still get through on incoming ema... | I wouldn't use a filter to do this, but If you want to use the filter you need to do two things on page two of the filter creation process:
* assign a label
* skip the inbox (archive it)
That will result in it not being in the inbox, but it will be in all mail. You could then periodically check the label, and see if ... |
149,628 | <p>I want to duplicate and name multiple copies of a sheet that already has data. The rename would be based on a list from another sheet in the same workbook.</p>
<p>This script does that, but only generates new blank sheets. Can this be modified to duplicate and rename vs make a blank sheet and name?</p>
<p>Sheet to d... | [
{
"answer_id": 149548,
"author": "G-Man Says 'Reinstate Monica'",
"author_id": 173377,
"author_profile": "https://webapps.stackexchange.com/users/173377",
"pm_score": 3,
"selected": true,
"text": "<p>Well, the first result when I Google’d “google one”\nwas <a href=\"https://one.google.co... | 2020/12/29 | [
"https://webapps.stackexchange.com/questions/149628",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/260610/"
] | I want to duplicate and name multiple copies of a sheet that already has data. The rename would be based on a list from another sheet in the same workbook.
This script does that, but only generates new blank sheets. Can this be modified to duplicate and rename vs make a blank sheet and name?
Sheet to duplicate in thi... | Well, the first result when I Google’d “google one”
was <https://one.google.com/about>,
which seems to indicate that it’s an enhanced / elevated service plan,
where you pay money for lots of storage
(starting at 100 GB) and access to a help desk.
So, if you’re paying money to Google for a membership,
then you’re a mem... |
149,780 | <p>I have a table with dates in column A and values in column B.</p>
<pre><code> A B
1 2020-12-30 1
2 2020-12-31 2
3 2021-01-04 4
</code></pre>
<p>Given a DATE, I can LOOKUP the last value before (including) that date:</p>
<pre><code>=lookup(DATE,A1:A,B1:B)
</code></pre>
<p>For example, it ret... | [
{
"answer_id": 149838,
"author": "serenesat",
"author_id": 87130,
"author_profile": "https://webapps.stackexchange.com/users/87130",
"pm_score": 1,
"selected": false,
"text": "<p>Download the Facebook Messenger app, select the “Not on Facebook?” option, and enter your phone number and na... | 2021/01/04 | [
"https://webapps.stackexchange.com/questions/149780",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/19663/"
] | I have a table with dates in column A and values in column B.
```
A B
1 2020-12-30 1
2 2020-12-31 2
3 2021-01-04 4
```
Given a DATE, I can LOOKUP the last value before (including) that date:
```
=lookup(DATE,A1:A,B1:B)
```
For example, it returns 2 for both `DATE=2021-01-01` and `DATE=2... | Download the Facebook Messenger app, select the “Not on Facebook?” option, and enter your phone number and name. That’s it. You can upload and send photos, videos, start group chats, and use voice and video calling without ever having to sign up for a Facebook account. |
150,077 | <p>When using ProtonMail, there doesn't seem to be a way to delete all my mail in my inbox. I have over 10K+ emails that I just want to archive. Currently I have to select one at a time to move them to archive. Is there an easier way to move all of it to archive?</p>
| [
{
"answer_id": 158263,
"author": "Ty Kayn",
"author_id": 279505,
"author_profile": "https://webapps.stackexchange.com/users/279505",
"pm_score": 3,
"selected": false,
"text": "<p>I just had the same issue, and wrote a script working in 2021 consisting of a line of JavaScript selecting em... | 2021/01/14 | [
"https://webapps.stackexchange.com/questions/150077",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/31767/"
] | When using ProtonMail, there doesn't seem to be a way to delete all my mail in my inbox. I have over 10K+ emails that I just want to archive. Currently I have to select one at a time to move them to archive. Is there an easier way to move all of it to archive? | I modified the previous answer which left out the next page click to:
```
const a = setInterval( function () {
document.querySelector("#idSelectAll").click() ;
document.querySelector("button[data-testid='toolbar:movetotrash']").click() ;
document.querySelector("button[data-testid='toolbar:next-page']").click()
... |
150,080 | <p>I have a Google sheet in which the rows are unique cities and the columns are years. It can grow in two dimensions.</p>
<pre><code>| | 2010 | 2011 |
-----------------------------------------------------------
| City | Temp low | Temp high | Temp low | Temp high |
----... | [
{
"answer_id": 150082,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 1,
"selected": false,
"text": "<p>Please use the following formula</p>\n<pre><code>=QUERY({{"Year";ArrayFormula(TRANSPOSE(SPLIT(... | 2021/01/14 | [
"https://webapps.stackexchange.com/questions/150080",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/72808/"
] | I have a Google sheet in which the rows are unique cities and the columns are years. It can grow in two dimensions.
```
| | 2010 | 2011 |
-----------------------------------------------------------
| City | Temp low | Temp high | Temp low | Temp high |
-----------------... | Please use the following formula
```
=QUERY({{"Year";ArrayFormula(TRANSPOSE(SPLIT(JOIN(" ",REPT(B1:E1&" ",COUNTA(A3:A)))," ")))},
query({A2:A,B2:C;A3:A,D3:E},
"where Col1 is not null",1)},
"select Col2, Col1, Col3, Col4 order by Col1, Col2",1)
```
If you want to order ... |
150,096 | <p>I would like to use <code>counta</code> function to count rows that are not empty based on column A or B.</p>
<p>In other words.. if either column <code>A</code> <strong>or</strong> <code>B</code> not empty, it should be counted.</p>
| [
{
"answer_id": 150097,
"author": "Erik Tyler",
"author_id": 197265,
"author_profile": "https://webapps.stackexchange.com/users/197265",
"pm_score": 1,
"selected": false,
"text": "<p>Try this:</p>\n<p><code>=COUNTA(IFERROR(FILTER(ROW(A:A),A:A&B:B<>"")))</code></p>\n<p>... | 2021/01/15 | [
"https://webapps.stackexchange.com/questions/150096",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/200670/"
] | I would like to use `counta` function to count rows that are not empty based on column A or B.
In other words.. if either column `A` **or** `B` not empty, it should be counted. | Please use
**```
=QUERY(INDEX(A1:A&B1:B),"select count(Col1)",0)
```**
[](https://i.stack.imgur.com/6TfGj.png) |
150,330 | <p>I am trying to count amount of consecutive occurrences of number 0 in a row.</p>
<pre><code>A B C D E F
5 0% 0% 0% 0% 0%
2 0% 0% 1% 0% 0%
</code></pre>
<p>Formula in A1 and B1 counts how many consecutive 0 are in a row and stops if something else but 0 is encountered.</p>
<p>Currently I have t... | [
{
"answer_id": 150332,
"author": "pjmg",
"author_id": 222777,
"author_profile": "https://webapps.stackexchange.com/users/222777",
"pm_score": 1,
"selected": true,
"text": "<p>First, transpose a single row :</p>\n<pre><code>=TRANSPOSE(B1:F1)\n</code></pre>\n<p>Then with <code>IF</code> + ... | 2021/01/22 | [
"https://webapps.stackexchange.com/questions/150330",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/262517/"
] | I am trying to count amount of consecutive occurrences of number 0 in a row.
```
A B C D E F
5 0% 0% 0% 0% 0%
2 0% 0% 1% 0% 0%
```
Formula in A1 and B1 counts how many consecutive 0 are in a row and stops if something else but 0 is encountered.
Currently I have this formula:
```
=if(B2+C2+D2... | First, transpose a single row :
```
=TRANSPOSE(B1:F1)
```
Then with `IF` + `Arrayformula` convert to `true` and `false`
```
=ArrayFormula(IF(TRANSPOSE(B2:F2)<>0,true,false))
```
Then use `=Match` to find the position of the first value :
```
=match(true,ArrayFormula(IF(TRANSPOSE(B2:F2)<>0,true,false)),0)
```
... |
150,584 | <p>I'm trying to create a task list for myself in a private chat with my supervisor on Slack. I'm pretty familiar with markdown, and I thought that Slack supported it too. On GitHub, you can create tasks lists by writing something like this.</p>
<pre><code> - [ ] uncompleted task
- [x] completed task
</code></pre>
<p>... | [
{
"answer_id": 154502,
"author": "Jude Goodwin",
"author_id": 272796,
"author_profile": "https://webapps.stackexchange.com/users/272796",
"pm_score": 3,
"selected": false,
"text": "<p>I found it! Wow I had this same issue -</p>\n<p>Here's the thing. You have to 'Create a Post' using the ... | 2021/02/01 | [
"https://webapps.stackexchange.com/questions/150584",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/263295/"
] | I'm trying to create a task list for myself in a private chat with my supervisor on Slack. I'm pretty familiar with markdown, and I thought that Slack supported it too. On GitHub, you can create tasks lists by writing something like this.
```
- [ ] uncompleted task
- [x] completed task
```
I thought Slack supporte... | I found it! Wow I had this same issue -
Here's the thing. You have to 'Create a Post' using the lightening bolt - not by just typing it into slack. When you click on the lightening bolt, there's a post pop up box - you type in there and THEN one of the formatting options is the checklist.
So frustrating really - why ... |
150,606 | <p>I have gone through the <a href="https://support.google.com/docs/answer/179738" rel="nofollow noreferrer">Keyboard Shortcuts for Google Docs</a> page — didn't find what I was looking for there — and have added the AutoControl Shortcut Manager extension to Chrome.<br />
After a brief review of its framework, it appea... | [
{
"answer_id": 150607,
"author": "Sachin",
"author_id": 263217,
"author_profile": "https://webapps.stackexchange.com/users/263217",
"pm_score": -1,
"selected": false,
"text": "<p>I can create a new document by typing docs.new in the address bar. More information: <a href=\"https://suppor... | 2021/02/02 | [
"https://webapps.stackexchange.com/questions/150606",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/263217/"
] | I have gone through the [Keyboard Shortcuts for Google Docs](https://support.google.com/docs/answer/179738) page — didn't find what I was looking for there — and have added the AutoControl Shortcut Manager extension to Chrome.
After a brief review of its framework, it appears to me that I will have to write a script... | As stated in an [earlier comment](https://webapps.stackexchange.com/questions/150606/is-there-a-keyboard-shortcut-to-create-a-blank-document-from-the-docs-google-com?noredirect=1&lq=1#comment137278_150606) there is no such shortcut by default.
Having said that and reading [your answer](https://webapps.stackexchange.... |
150,613 | <p>A1 cell has <code>1</code>. And I try use value from this cell through:</p>
<pre><code>=QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/xxxxxxxx/edit?usp=sharing"; "Sheet1!A:P");
"select * where Col1='"&A1&"'"; -1 )
</code></pre>
<p>But I can't us... | [
{
"answer_id": 150616,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 0,
"selected": false,
"text": "<p>The problem occurs because your formula sets the third parameter as <code>-1</code> which means that the column h... | 2021/02/02 | [
"https://webapps.stackexchange.com/questions/150613",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/263385/"
] | A1 cell has `1`. And I try use value from this cell through:
```
=QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/xxxxxxxx/edit?usp=sharing"; "Sheet1!A:P");
"select * where Col1='"&A1&"'"; -1 )
```
But I can't use information from `A1` cell. I have nothing result.
But, if I change code **Col1='... | In the query we **only use single quotes when the value is text** like `klm`
```
"where Col1=' "&A1&" ' "
```
**With numbers we do NOT use single quotes**.
It looks like the value in your `A1` cell is the number `1`
So your query should be
```
"where Col1="&A1&" "
``` |
150,626 | <p>Does everyone see everyone's result when sent after a Google Forms quiz or just their own points (is this adjustable)?</p>
| [
{
"answer_id": 150616,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 0,
"selected": false,
"text": "<p>The problem occurs because your formula sets the third parameter as <code>-1</code> which means that the column h... | 2021/02/02 | [
"https://webapps.stackexchange.com/questions/150626",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/263414/"
] | Does everyone see everyone's result when sent after a Google Forms quiz or just their own points (is this adjustable)? | In the query we **only use single quotes when the value is text** like `klm`
```
"where Col1=' "&A1&" ' "
```
**With numbers we do NOT use single quotes**.
It looks like the value in your `A1` cell is the number `1`
So your query should be
```
"where Col1="&A1&" "
``` |
150,722 | <p>I made an Apps Script custom function in a Google spreadsheet.</p>
<p>I can call it from a cell and works fine (<a href="https://webapps.stackexchange.com/questions/54414/in-google-cript-get-the-spreadsheet-cell-calling-a-custom-function">In Google Script, get the spreadsheet cell calling a custom function</a>).</p>... | [
{
"answer_id": 150734,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 0,
"selected": false,
"text": "<p>The only way to fetch a value and add it to a Google Sheets cell every few seconds from a Web API by using Google... | 2021/02/05 | [
"https://webapps.stackexchange.com/questions/150722",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/85343/"
] | I made an Apps Script custom function in a Google spreadsheet.
I can call it from a cell and works fine ([In Google Script, get the spreadsheet cell calling a custom function](https://webapps.stackexchange.com/questions/54414/in-google-cript-get-the-spreadsheet-cell-calling-a-custom-function)).
The function makes an ... | In your [comment](https://webapps.stackexchange.com/questions/150722/in-google-spreadsheet-run-a-function-from-cell-programmatically#comment137404_150734) you mention about an: *"...interval of time, let's say every 5 seconds"*
This is not possible.
Please check the [Quotas for Google Services](https://developers.goo... |
151,011 | <p>I'm trying to set up a kind of a bid thing, where the top 5 respondents receive a prize. I was hoping to use SQL to get the top 5, but I can't remove duplicate bidders and only take their top bid. I wanted to do something like this:</p>
<pre><code>=QUERY(range, "SELECT timestamp, bid, DISTINCT name, department ... | [
{
"answer_id": 150784,
"author": "Marija",
"author_id": 193109,
"author_profile": "https://webapps.stackexchange.com/users/193109",
"pm_score": 0,
"selected": false,
"text": "<p>You can try to host images somewhere, copy image address and then link it in a diagram via URL (click "+&... | 2021/02/16 | [
"https://webapps.stackexchange.com/questions/151011",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/264561/"
] | I'm trying to set up a kind of a bid thing, where the top 5 respondents receive a prize. I was hoping to use SQL to get the top 5, but I can't remove duplicate bidders and only take their top bid. I wanted to do something like this:
```
=QUERY(range, "SELECT timestamp, bid, DISTINCT name, department ORDER BY bid DESC ... | Image too big is an error message when you try to load an image file that is larger than 1MB.
Simply replace `EditorUi.prototype.maxImageBytes=1E6` in app.min.js with 1E7.
Then it can read image files up to 10MB in size.
Use draw.io on localhost instead of in the cloud: http://localhost/draw-dev/src/main/webapp/index.... |
151,056 | <p>I need a formula that can add all the countries with that is in a column.</p>
<p>Example:<br />
In sheet 'Export' I have the below countries of origin:</p>
<p><a href="https://i.stack.imgur.com/5ONMA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5ONMA.png" alt="enter image description here" /></... | [
{
"answer_id": 150784,
"author": "Marija",
"author_id": 193109,
"author_profile": "https://webapps.stackexchange.com/users/193109",
"pm_score": 0,
"selected": false,
"text": "<p>You can try to host images somewhere, copy image address and then link it in a diagram via URL (click "+&... | 2021/02/18 | [
"https://webapps.stackexchange.com/questions/151056",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/264692/"
] | I need a formula that can add all the countries with that is in a column.
Example:
In sheet 'Export' I have the below countries of origin:
[](https://i.stack.imgur.com/5ONMA.png)
And in other sheet I need to show all the countries of origin and c... | Image too big is an error message when you try to load an image file that is larger than 1MB.
Simply replace `EditorUi.prototype.maxImageBytes=1E6` in app.min.js with 1E7.
Then it can read image files up to 10MB in size.
Use draw.io on localhost instead of in the cloud: http://localhost/draw-dev/src/main/webapp/index.... |
151,141 | <p>I'm creating a sheet that will import and process data from other Sheets. On a daily basis, the user will be given a new document to process with it. I have cell <strong>B1</strong> reserved for them to enter the URL of the new document, and a test cell where they will be able to click the "Allow access" b... | [
{
"answer_id": 151143,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": false,
"text": "<p>From the question</p>\n<blockquote>\n<p>Can a Script distinguish IMPORTRANGE N/As due to non-existent Tabs from N... | 2021/02/22 | [
"https://webapps.stackexchange.com/questions/151141",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/159654/"
] | I'm creating a sheet that will import and process data from other Sheets. On a daily basis, the user will be given a new document to process with it. I have cell **B1** reserved for them to enter the URL of the new document, and a test cell where they will be able to click the "Allow access" button.
This cell contains... | I followed the [link](https://webapps.stackexchange.com/questions/98200/automatically-allow-access-for-importranges-in-google-sheets) [Automatically "Allow Access" for IMPORTRANGEs in Google Sheets?](https://webapps.stackexchange.com/questions/98200/automatically-allow-access-for-importranges-in-google-sheets) StackExc... |
151,290 | <p>I get this daily data consumption spreadsheet report from a vendor that looks like this</p>
<pre><code>userid feb1 feb2 feb3 . feb29
u1 100 34 23 . 4
u2 0 24 21 62
u3 300 25 5 1
u4 50 5 6
.
.... | [
{
"answer_id": 151223,
"author": "Zapeta",
"author_id": 265186,
"author_profile": "https://webapps.stackexchange.com/users/265186",
"pm_score": -1,
"selected": false,
"text": "<p>I know this may not be the answer that you're looking for, but perhaps you could just make a custom shape usi... | 2021/02/27 | [
"https://webapps.stackexchange.com/questions/151290",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/91362/"
] | I get this daily data consumption spreadsheet report from a vendor that looks like this
```
userid feb1 feb2 feb3 . feb29
u1 100 34 23 . 4
u2 0 24 21 62
u3 300 25 5 1
u4 50 5 6
.
.
un 23... | draw.io is a diagramming app, not drawing app so some things can't be done easily. You could try and add waypoints (right mouse click > Add waypoints)and experiment with that or check if shapes from draw.io library (there are many) can suit your needs.
Regards, |
151,293 | <p>I have created an addon using <a href="https://developers.google.com/workspace/add-ons/editors/docs/quickstart/translate" rel="nofollow noreferrer">this</a> guide.</p>
<p><em>code.gs</em></p>
<pre><code>function onOpen() {
SpreadsheetApp.getUi().createAddonMenu()
.addItem('Start', 'showSidebar');
}
function s... | [
{
"answer_id": 151298,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 2,
"selected": false,
"text": "<p>The problem is that the <code>onOpen</code> function is incomplete; <code>.addToUi();</code> is missing.</p>\n<p>... | 2021/02/27 | [
"https://webapps.stackexchange.com/questions/151293",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/247193/"
] | I have created an addon using [this](https://developers.google.com/workspace/add-ons/editors/docs/quickstart/translate) guide.
*code.gs*
```
function onOpen() {
SpreadsheetApp.getUi().createAddonMenu()
.addItem('Start', 'showSidebar');
}
function showSidebar() {
const ui = HtmlService.createHtmlOutputFromFil... | The problem is that the `onOpen` function is incomplete; `.addToUi();` is missing.
This is the `onOpen` function on the referred guide
```
/**
* Creates a menu entry in the Google Docs UI when the document is opened.
* This method is only used by the regular add-on, and is never called by
* the mobile add-on versi... |
151,320 | <p>I have a small script that I have further reduced for the sake of this question. Basically it implements the <code>onEdit</code> function in which it may show an alert (using <code>SpreadsheetApp.getUi().alert()</code>) and will always show a message box (<code>using Browser.msgBox()</code>).</p>
<pre><code>functio... | [
{
"answer_id": 151360,
"author": "Mark Graham",
"author_id": 265646,
"author_profile": "https://webapps.stackexchange.com/users/265646",
"pm_score": 3,
"selected": true,
"text": "<p>Yes,</p>\n<p>Please see the Save Page Now (SPN) API documentation here:</p>\n<p><a href=\"https://docs.goo... | 2021/02/28 | [
"https://webapps.stackexchange.com/questions/151320",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/146212/"
] | I have a small script that I have further reduced for the sake of this question. Basically it implements the `onEdit` function in which it may show an alert (using `SpreadsheetApp.getUi().alert()`) and will always show a message box (`using Browser.msgBox()`).
```
function onEdit(e) {
const rg = e.range;
// Do so... | Yes,
Please see the Save Page Now (SPN) API documentation here:
<https://docs.google.com/document/d/19RJsRncGUw2qHqGGg9lqYZYf7KKXMDL1Mro5o1Qw6QI/>
For questions please write to info@archive.org |
151,322 | <p>If I have the string:</p>
<pre><code>var text = "Altman, R. (1992). Sound space. In R. Altman (Ed.), <em>Sound Theory Sound Practice</em> (pp. 46–64). New York: Routledge.";
</code></pre>
<p>How can I insert this into Google Docs with the required italics intact?</p>
<pre><code>var cursor = Doc... | [
{
"answer_id": 151328,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": false,
"text": "<p>It's not possible to use HTML tags to format text in Google Docs on Google Apps Script, instead you should use th... | 2021/02/28 | [
"https://webapps.stackexchange.com/questions/151322",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/265519/"
] | If I have the string:
```
var text = "Altman, R. (1992). Sound space. In R. Altman (Ed.), <em>Sound Theory Sound Practice</em> (pp. 46–64). New York: Routledge.";
```
How can I insert this into Google Docs with the required italics intact?
```
var cursor = DocumentApp.getActiveDocument().getCursor();
cursor.insertT... | I've taken what Rubén has provided above and bits and pieces from elsewhere to come up with a reasonably flexible way to convert HTML styling on external text for insertion at the cursor position in a google document. The caveat is that you need to know precisely the HTML tags that are in the external text (in my case,... |
151,370 | <p>Is there a way to count instances of characters down a column, without creating further columns that do row-by-row counts of each character?</p>
<p>Below is an outline of what I'm trying to do.</p>
<p>Note that no character appears in more than one column, so I don't have to search all columns for all characters, I ... | [
{
"answer_id": 151375,
"author": "Nicholas Mathern",
"author_id": 265628,
"author_profile": "https://webapps.stackexchange.com/users/265628",
"pm_score": 0,
"selected": false,
"text": "<p>Try this formula out?</p>\n<pre><code>=ArrayFormula(SUM(IF(ISNUMBER(FIND($W7, SPLIT(REGEXREPLACE(CON... | 2021/03/02 | [
"https://webapps.stackexchange.com/questions/151370",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/198470/"
] | Is there a way to count instances of characters down a column, without creating further columns that do row-by-row counts of each character?
Below is an outline of what I'm trying to do.
Note that no character appears in more than one column, so I don't have to search all columns for all characters, I can just search... | **EDIT** (based on your [comment](https://webapps.stackexchange.com/questions/151370/count-instances-of-character-in-a-column#comment138034_151370))
>
> No mixed characters, it will always be a single character or a repeat of a single character
>
>
>
For a **draggable formula** use
```
=SUM(INDEX(IFERROR(SEARCH(... |
151,371 | <p>How do I use the query in Google Sheets to return N results from each tab.</p>
<p>So I have this formula:</p>
<pre><code>=QUERY({sheet1!A2:D;sheet2!A2:D}; "select * where Col4>=65 order by Col4 desc Limit 3")
</code></pre>
<p>But what I want is that the results to be limited to 3 but from each individua... | [
{
"answer_id": 151381,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 1,
"selected": true,
"text": "<p>Use the following</p>\n<pre><code>={QUERY({sheet1!A2:D}; "select * where Col4>=65 order by Col4 d... | 2021/03/02 | [
"https://webapps.stackexchange.com/questions/151371",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/265663/"
] | How do I use the query in Google Sheets to return N results from each tab.
So I have this formula:
```
=QUERY({sheet1!A2:D;sheet2!A2:D}; "select * where Col4>=65 order by Col4 desc Limit 3")
```
But what I want is that the results to be limited to 3 but from each individual sheet tab so I have displayed **3 results... | Use the following
```
={QUERY({sheet1!A2:D}; "select * where Col4>=65 order by Col4 desc Limit 3"),
QUERY({sheet2!A2:D}; "select * where Col4>=65 order by Col4 desc Limit 3")}
```
***(do adjust syntax according to your locale)*** |
151,464 | <p>I am running into a weird DGET error in Google Sheets.</p>
<p>in one table, I have the following entries:</p>
<pre><code>Column A Column B
Horse Wins
Daedalus I 15
Daedalus II 12
Panacea I 10
Panacea II 9
</code></pre>
<p>when I use</p>
<pre><code>=dget(A1:B5,"Wins",{&q... | [
{
"answer_id": 151474,
"author": "Oren",
"author_id": 201004,
"author_profile": "https://webapps.stackexchange.com/users/201004",
"pm_score": 2,
"selected": true,
"text": "<p>@James/mreighties posted an answer on Google, that I am copying here for future reference:</p>\n<p>Hello,</p>\n<p... | 2021/03/05 | [
"https://webapps.stackexchange.com/questions/151464",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/201004/"
] | I am running into a weird DGET error in Google Sheets.
in one table, I have the following entries:
```
Column A Column B
Horse Wins
Daedalus I 15
Daedalus II 12
Panacea I 10
Panacea II 9
```
when I use
```
=dget(A1:B5,"Wins",{"Horse";"Daedalus I"})
```
I get a `#NUM!` error. ... | @James/mreighties posted an answer on Google, that I am copying here for future reference:
Hello,
I may have found the answer at this site...
<https://infoinspired.com/google-docs/spreadsheet/exact-match-in-database-functions-in-google-sheets/>
...and changed your formula to this...
```
=dget(A1:B5,"Wins",{"Horse"... |
151,528 | <p>I'm trying to recreate what's happening in this video at 7:17
<a href="https://youtu.be/5S7laJS9meU?t=437" rel="nofollow noreferrer">https://youtu.be/5S7laJS9meU?t=437</a></p>
<p>I want to merge two sheets and remove the empty rows.</p>
<pre><code>=QUERY({IMPORTRANGE(L2 ,"sheet1!A2:F20");IMPORTRANGE(L3 ,&q... | [
{
"answer_id": 151501,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": true,
"text": "<p>It's not possible as links URL should start with <code>https://</code></p>\n<p>It's possible to add a link using a... | 2021/03/08 | [
"https://webapps.stackexchange.com/questions/151528",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/266215/"
] | I'm trying to recreate what's happening in this video at 7:17
<https://youtu.be/5S7laJS9meU?t=437>
I want to merge two sheets and remove the empty rows.
```
=QUERY({IMPORTRANGE(L2 ,"sheet1!A2:F20");IMPORTRANGE(L3 ,"sheet2!A2:F20")},"select * where Col1 is not null")
```
I've tested with importing from each sheet in... | It's not possible as links URL should start with `https://`
It's possible to add a link using a "social media" icon on the footer but not for free as this feature require to suscribe to the PRO version.
From [Using the Social Links feature](https://help.linktr.ee/en/support/solutions/articles/48001153438-using-the-so... |
153,045 | <p>I have a situation where room reservations can be managed by checkboxes. You can see an example in the screenshot below. I've consolidated several sheets into one to provide visualization but the data lives in separate sheets in the actual document...</p>
<pre><code> 1. Columns A-L are a "Manage Reservations&... | [
{
"answer_id": 152030,
"author": "Erik Tyler",
"author_id": 197265,
"author_profile": "https://webapps.stackexchange.com/users/197265",
"pm_score": 1,
"selected": false,
"text": "<p>Given your example setup:</p>\n<p><code>=ArrayFormula(IF(A:A="",,LEN(A:A)-LEN(SUBSTITUTE(A:A,CHA... | 2021/03/27 | [
"https://webapps.stackexchange.com/questions/153045",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/268792/"
] | I have a situation where room reservations can be managed by checkboxes. You can see an example in the screenshot below. I've consolidated several sheets into one to provide visualization but the data lives in separate sheets in the actual document...
```
1. Columns A-L are a "Manage Reservations" sheet.
2. Columns ... | Given your example setup:
`=ArrayFormula(IF(A:A="",,LEN(A:A)-LEN(SUBSTITUTE(A:A,CHAR(10),""))+1))`
To be clear, this counts number of *lines*, not number of *line breaks*. One line has zero line breaks. Two lines has one line break, etc.
This formula starts with the full length of each cell's contents (including lin... |
153,128 | <h1>Background</h1>
<p>The problem I'm solving is mentioned <a href="https://webapps.stackexchange.com/questions/151290/how-to-sum-a-range-columns-from-another-google-sheet">here</a> in detail. Another glitch is that the spreadsheet I'm reading from has random changes to the date format like so:</p>
<pre><code>10/3/202... | [
{
"answer_id": 153130,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": false,
"text": "<p>Please bear in mind that the basic data types in spreadsheets are <em>number</em>, <em>text</em> and <em>formula<... | 2021/03/30 | [
"https://webapps.stackexchange.com/questions/153128",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/91362/"
] | Background
==========
The problem I'm solving is mentioned [here](https://webapps.stackexchange.com/questions/151290/how-to-sum-a-range-columns-from-another-google-sheet) in detail. Another glitch is that the spreadsheet I'm reading from has random changes to the date format like so:
```
10/3/2021 11/3/2021 12/3/... | I wrote this regex script to pick up on the different date formats:
day
===
```
=REGEXEXTRACT(to_text($A37),"(.{1,2})[/-]")
```
month
=====
```
=REGEXEXTRACT(to_text($A37),"[/-](.{1,2})[/-]")
```
this works with both the `DD/MM/YYYY` & `DD-MM-YYYY` formats |
153,286 | <p>I was creating a google sheets query that's pretty simple:</p>
<pre><code>query(<range>,"select Col2 where Col1 contains <number with decimals>")
</code></pre>
<p>I noticed that it works when the number with decimals contains just 5 decimals, but breaks when it has 6 decimals! I illustrated thi... | [
{
"answer_id": 153287,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": false,
"text": "<p>To get the values in sheet March column A on the rows where sheet March column B matches the value in cel... | 2021/04/05 | [
"https://webapps.stackexchange.com/questions/153286",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/91362/"
] | I was creating a google sheets query that's pretty simple:
```
query(<range>,"select Col2 where Col1 contains <number with decimals>")
```
I noticed that it works when the number with decimals contains just 5 decimals, but breaks when it has 6 decimals! I illustrated this problem here:
[![enter image description he... | To get the values in sheet March column A on the rows where sheet March column B matches the value in cell A2, use this:
```
=filter(March!A2:A, March!B2:B = A2)
```
Note that this will get multiple results in the event the value in A2 matches multiple rows in sheet March column B.
The problem with your `query()` f... |
153,306 | <p>I have a data filled from Column C9 to column I39
AND I Auto-Add text in Column J using this formula:
<code>=ArrayFormula(IF(I9:I39="Excellent","Excellent",IF(I9:I39="Good","Good",IF(I9:I39="Bad","Bad",""))))</code></p>
<p>I want to add also <code... | [
{
"answer_id": 153287,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": false,
"text": "<p>To get the values in sheet March column A on the rows where sheet March column B matches the value in cel... | 2021/04/05 | [
"https://webapps.stackexchange.com/questions/153306",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/200670/"
] | I have a data filled from Column C9 to column I39
AND I Auto-Add text in Column J using this formula:
`=ArrayFormula(IF(I9:I39="Excellent","Excellent",IF(I9:I39="Good","Good",IF(I9:I39="Bad","Bad",""))))`
I want to add also `If(AND(C9:C39<>"",I9:I39=""),"Not Filled","")`
But I couldn't add it the the previous line.
<... | To get the values in sheet March column A on the rows where sheet March column B matches the value in cell A2, use this:
```
=filter(March!A2:A, March!B2:B = A2)
```
Note that this will get multiple results in the event the value in A2 matches multiple rows in sheet March column B.
The problem with your `query()` f... |
153,336 | <p>I am collecting scholarship recipients in a Google form. The recipients names are in a checkbox format, as some donors give to multiple students. I need to separate out the names into additional rows, but keep the corresponding data (amount, name of scholarship, etc.). This form also has student's names so I can't s... | [
{
"answer_id": 153287,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": false,
"text": "<p>To get the values in sheet March column A on the rows where sheet March column B matches the value in cel... | 2021/04/06 | [
"https://webapps.stackexchange.com/questions/153336",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/269559/"
] | I am collecting scholarship recipients in a Google form. The recipients names are in a checkbox format, as some donors give to multiple students. I need to separate out the names into additional rows, but keep the corresponding data (amount, name of scholarship, etc.). This form also has student's names so I can't shar... | To get the values in sheet March column A on the rows where sheet March column B matches the value in cell A2, use this:
```
=filter(March!A2:A, March!B2:B = A2)
```
Note that this will get multiple results in the event the value in A2 matches multiple rows in sheet March column B.
The problem with your `query()` f... |
153,373 | <p>I'm trying to search for a phrase containing quotes but as the quotes is what Gmail uses to delimit the exact phrase filter, it closes before it can.</p>
<p>For instance</p>
<p>I need to search for the exact phrase:</p>
<pre><code>and then james said "come here"
</code></pre>
<p>Issue is when I put that ar... | [
{
"answer_id": 159320,
"author": "user283638",
"author_id": 283638,
"author_profile": "https://webapps.stackexchange.com/users/283638",
"pm_score": -1,
"selected": false,
"text": "<p>I have not tried this myself but even though it would not be as exact as being able to search on an exact... | 2021/04/08 | [
"https://webapps.stackexchange.com/questions/153373",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/103386/"
] | I'm trying to search for a phrase containing quotes but as the quotes is what Gmail uses to delimit the exact phrase filter, it closes before it can.
For instance
I need to search for the exact phrase:
```
and then james said "come here"
```
Issue is when I put that around quotes
```
"and then james said "come he... | The simple answer is that you can't search for a quotation mark. You also can't search for a lot of other punctuation. From my experience Gmail interprets most punctuation as a space and anything joined by punctuation to indicate that the strings should be side by side. In fact multiple spaces are not an issue it is th... |
153,403 | <p>I am looking to apply conditional formatting to all cells in a column (excluding the header) where a colour will be applied depending on if its value is greater, equal, or less than the adjacent cell.</p>
<p>Simple example:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-alig... | [
{
"answer_id": 153406,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 2,
"selected": false,
"text": "<p>Either the Apply to range or the formulas are wrong.</p>\n<ul>\n<li>Instead of <code>B:B</code> use <code>B2:B</c... | 2021/04/08 | [
"https://webapps.stackexchange.com/questions/153403",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/269684/"
] | I am looking to apply conditional formatting to all cells in a column (excluding the header) where a colour will be applied depending on if its value is greater, equal, or less than the adjacent cell.
Simple example:
| | A | B |
| --- | --- | --- |
| 1 | 100 | 200 |
| 2 | 50 | 150 |
| 3 | 80 | 20 |
| ... | ... | ...... | Please use the following formula
`=B2>=A2` for green (if the cell on the right is greater than or equal to the cell on the left)
```
=AND(B2>=A2,B2<>"")
```
`=B2<A2` for red (if the cell on the right is less than the cell on the left)
```
=AND(B2<A2,B2<>"")
```
[ that does not rely on your script at all. I set up two custom... | 2021/04/16 | [
"https://webapps.stackexchange.com/questions/153588",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/270331/"
] | I have a Sheet where I have all of my data entered. I have been able to filter the information to other sheets no issues when only searching in one column. I am having issues when trying to search 2 columns at the same time.
On the Source Page, I have my date listed under the following headers: Player Name (A), OVR (B... | Looks like I can fix this by editing the Alternating Colours properties, I don't think this functionality was as sophisticated when I added it, and I had not gone back and looked at it again. The banding in some areas was overlapping with the blue, but not in others.
Hmmm, nope. Banding keeps extending to the right, c... |
153,589 | <p>Is there a function/formula to return only the first string proceeding the first carriage return using Google Sheets?</p>
<p>Example Text:</p>
<pre><code>Bob & Mary Smith
bob@email.com
555-111-1234
</code></pre>
<p>Assuming the above text is in cell A1, I would like the formula to return the following t... | [
{
"answer_id": 153592,
"author": "Erik Tyler",
"author_id": 197265,
"author_profile": "https://webapps.stackexchange.com/users/197265",
"pm_score": 1,
"selected": false,
"text": "<p>Generally speaking, this would do it:</p>\n<p><code>=REGEXEXTRACT(A1,"(.+)\\n")</code></p>\n"
... | 2021/04/16 | [
"https://webapps.stackexchange.com/questions/153589",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/270336/"
] | Is there a function/formula to return only the first string proceeding the first carriage return using Google Sheets?
Example Text:
```
Bob & Mary Smith
bob@email.com
555-111-1234
```
Assuming the above text is in cell A1, I would like the formula to return the following to Cell B1 "Bob & Mary Smith" | Generally speaking, this would do it:
`=REGEXEXTRACT(A1,"(.+)\n")` |
153,621 | <p>I have created an array, using the <code>.Split()</code> functionality, I would like to now reference each item (<em><code>it</code> I believe</em>) in that array, specifically.</p>
<p>How do I achieve that?</p>
<hr />
<p>The rest of this you don't need to read, but I'll try to provide more information.</p>
<p>I am ... | [
{
"answer_id": 155015,
"author": "Mark Shamy",
"author_id": 196179,
"author_profile": "https://webapps.stackexchange.com/users/196179",
"pm_score": 1,
"selected": false,
"text": "<p><code>.Select()</code> and <code>.Where()</code> are methods written for the repeating sections specifical... | 2021/04/16 | [
"https://webapps.stackexchange.com/questions/153621",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/211449/"
] | I have created an array, using the `.Split()` functionality, I would like to now reference each item (*`it` I believe*) in that array, specifically.
How do I achieve that?
---
The rest of this you don't need to read, but I'll try to provide more information.
I am now going to use an example of something that I migh... | So, @MarkShamy is right, however it will only work for a 0 value.
In order to make Cognito Forms actually pick an item from an array, you need to make it calculate something.
I've tried putting any calculations within the usual array pick square brackets, but that doesn't work unless you are changing something on the... |
153,643 | <p>This might be very trivial, but I was not able to obtain any concrete result from my Google searches, so asking here.</p>
<p>I want to fill a column with the content of some other column (in some other sheet). The value at the existing place is not organised to the current requirements, so I just can't directly assi... | [
{
"answer_id": 153646,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": 3,
"selected": true,
"text": "<p>You need to use the <strong><a href=\"https://support.google.com/docs/answer/3093377\" rel=\"nofollow nor... | 2021/04/18 | [
"https://webapps.stackexchange.com/questions/153643",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/270479/"
] | This might be very trivial, but I was not able to obtain any concrete result from my Google searches, so asking here.
I want to fill a column with the content of some other column (in some other sheet). The value at the existing place is not organised to the current requirements, so I just can't directly assign it to ... | You need to use the **[INDIRECT](https://support.google.com/docs/answer/3093377)** function
Try the following in cell `A1` of `Sheet1`
```
=INDIRECT("Sheet2!A"&A1)
```
The result would be the value of cell `A23` of `Sheet1` in cell `A1` in `Sheet1` |
153,830 | <p>Is it possible to click and drag queries?</p>
<p>I describe my problem below and also have a <a href="https://docs.google.com/spreadsheets/d/1lPeI2RvfyOzlsF5eGaBrRoeNKREzuUr-Wp9NzrIQCiY/edit?usp=sharing" rel="nofollow noreferrer">reference sheet</a>.</p>
<p>cells A1:B5</p>
<div class="s-table-container">
<table clas... | [
{
"answer_id": 153831,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 3,
"selected": true,
"text": "<p>Instead of</p>\n<pre><code>=query(A2:B5,"select sum(B) where A = '"&C2&"'",0)\n</code>... | 2021/04/24 | [
"https://webapps.stackexchange.com/questions/153830",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/39514/"
] | Is it possible to click and drag queries?
I describe my problem below and also have a [reference sheet](https://docs.google.com/spreadsheets/d/1lPeI2RvfyOzlsF5eGaBrRoeNKREzuUr-Wp9NzrIQCiY/edit?usp=sharing).
cells A1:B5
| Category | Withdrawal |
| --- | --- |
| CatA | 4 |
| CatB | 2 |
| CatA | 6 |
| CatB | 11 |
---
... | Instead of
```
=query(A2:B5,"select sum(B) where A = '"&C2&"'",0)
```
use
```
=query($A$2:$B$5,"select sum(B) where A = '"&C2&"' label sum(B) ''",0)
```
* `label sum(B) ''` prevents that `sum(B)` be added as a column header, so now the formula will return a single value which will allow you to drag down your the ... |
153,858 | <p>Using the following Google Sheets script:</p>
<pre><code> var currentMonth = MONTH(TODAY);
</code></pre>
<p>I receive the error <code>ReferenceError: MONTH is not defined</code>.</p>
<p>Why is MONTH not defined?</p>
| [
{
"answer_id": 153834,
"author": "marikamitsos",
"author_id": 117311,
"author_profile": "https://webapps.stackexchange.com/users/117311",
"pm_score": -1,
"selected": false,
"text": "<p>It is NOT a bug.<br />\nIt works as expected.</p>\n<p>The issue is that dates are numbers while <code>s... | 2021/04/25 | [
"https://webapps.stackexchange.com/questions/153858",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/8277/"
] | Using the following Google Sheets script:
```
var currentMonth = MONTH(TODAY);
```
I receive the error `ReferenceError: MONTH is not defined`.
Why is MONTH not defined? | The `query()` function happily matches *text* that contains hyphens.
When you use the `contains` operator, data in columns of type `date` gets automatically converted to text in the `yyyy-m-d` format, lacking leading zeros, regardless of their original format.
You can get what you ask for by converting the dates to t... |
153,926 | <p>I'm having a problem implementing a spreadsheet with several sheets that use data registered continuously on the first.</p>
<p>I found a solution with this script on the forum but I don't know how to edit, I'm a newbie using scripts. It makes a counter in cell T1, every time I edit something he assigns a fixed, sequ... | [
{
"answer_id": 154541,
"author": "Franck Dernoncourt",
"author_id": 18147,
"author_profile": "https://webapps.stackexchange.com/users/18147",
"pm_score": 1,
"selected": true,
"text": "<p>There is no way to search for any image format. One possible workaround is from <a href=\"https://www... | 2021/04/27 | [
"https://webapps.stackexchange.com/questions/153926",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/271220/"
] | I'm having a problem implementing a spreadsheet with several sheets that use data registered continuously on the first.
I found a solution with this script on the forum but I don't know how to edit, I'm a newbie using scripts. It makes a counter in cell T1, every time I edit something he assigns a fixed, sequential nu... | There is no way to search for any image format. One possible workaround is from [juzzle](https://www.reddit.com/user/juzzle) on [reddit](https://redd.it/mz6kvx):
>
> the only practical method is to search for messages with Not Has Attachments and filter by size - emails with embedded images will typically be larger t... |
154,290 | <p>I have created a Google Sheet to enter data of a hospital. One of the column is '<code>GENDER</code>' where I have created drop down using <code>data validation -> list of items</code> and the items are (<code>M,F</code>) and similarly I have created another drop down value for the column '<code>CASES</code>' whe... | [
{
"answer_id": 154723,
"author": "Wayne Bloss",
"author_id": 5796,
"author_profile": "https://webapps.stackexchange.com/users/5796",
"pm_score": 3,
"selected": false,
"text": "<p>A couple of options:</p>\n<ul>\n<li>Use code formatting and surround your link with <code>backticks</code>, e... | 2021/05/10 | [
"https://webapps.stackexchange.com/questions/154290",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/272196/"
] | I have created a Google Sheet to enter data of a hospital. One of the column is '`GENDER`' where I have created drop down using `data validation -> list of items` and the items are (`M,F`) and similarly I have created another drop down value for the column '`CASES`' where values are (`NORMAL CORONA,DISCHARGED,DIED,ISOL... | A couple of options:
* Use code formatting and surround your link with `backticks`, e.g. `https://mylink.com`. Unfortunately, this makes the link unclickable.
* Format your link and leave out the protocol, e.g. `[mylink.com](https://mylink.com)` which renders as [mylink.com](https://mylink.com).
Other than that - I'm... |
154,361 | <p>I currently have cell that has the following output from my Google Sheet:</p>
<p><em>Share Price vs. Fair ValueBelow Fair Value: AAPL ($126.85) is trading above our estimate of fairvalue ($118.02)Significantly Below Fair Value: AAPL is trading above ourestimate of fair value.</em></p>
<p>From this cell, I want to ex... | [
{
"answer_id": 154723,
"author": "Wayne Bloss",
"author_id": 5796,
"author_profile": "https://webapps.stackexchange.com/users/5796",
"pm_score": 3,
"selected": false,
"text": "<p>A couple of options:</p>\n<ul>\n<li>Use code formatting and surround your link with <code>backticks</code>, e... | 2021/05/12 | [
"https://webapps.stackexchange.com/questions/154361",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/-1/"
] | I currently have cell that has the following output from my Google Sheet:
*Share Price vs. Fair ValueBelow Fair Value: AAPL ($126.85) is trading above our estimate of fairvalue ($118.02)Significantly Below Fair Value: AAPL is trading above ourestimate of fair value.*
From this cell, I want to extract the second numbe... | A couple of options:
* Use code formatting and surround your link with `backticks`, e.g. `https://mylink.com`. Unfortunately, this makes the link unclickable.
* Format your link and leave out the protocol, e.g. `[mylink.com](https://mylink.com)` which renders as [mylink.com](https://mylink.com).
Other than that - I'm... |
154,639 | <p>I've got a bunch of times in a google drive spreadsheet. e.g.:</p>
<pre><code>6:25:20
8:24:20
13:49:05
15:11:40
15:16:56
19:12:10
20:31:40
20:48:44
21:00:23
21:34:05
23:33:25
</code></pre>
<p>(this is just a small example, but in reality there are 100's of times)</p>
<p>I want to group the times into blocks so I can... | [
{
"answer_id": 154642,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 1,
"selected": false,
"text": "<p>This is probably easiest to do with a <code>query()</code> formula that counts occurrences by timeslot, l... | 2021/05/24 | [
"https://webapps.stackexchange.com/questions/154639",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/21773/"
] | I've got a bunch of times in a google drive spreadsheet. e.g.:
```
6:25:20
8:24:20
13:49:05
15:11:40
15:16:56
19:12:10
20:31:40
20:48:44
21:00:23
21:34:05
23:33:25
```
(this is just a small example, but in reality there are 100's of times)
I want to group the times into blocks so I can analyse what times are most f... | This is probably easiest to do with a `query()` formula that counts occurrences by timeslot, like this:
```
=arrayformula(
query(
{
text(int(A3:A * 24 / 3) * 3, "00") & ":00—"
&
text(int(A3:A * 24 / 3) * 3 + 2, "00:59"),
A3:A
},
"select Col1, count(Col2)
where Col2 i... |
154,664 | <p>I've got some date data in a Google drive sheet which is imported from a CSV.</p>
<p>The date data is formatted as either <code>dd/mm/yy</code> or <code>dd.mm.yy</code> as hard key data (eg. not formatted as a date)</p>
<p>I got to <code>format > number > date</code> but it doesn't work.</p>
<p>Any idea how I ... | [
{
"answer_id": 154642,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 1,
"selected": false,
"text": "<p>This is probably easiest to do with a <code>query()</code> formula that counts occurrences by timeslot, l... | 2021/05/25 | [
"https://webapps.stackexchange.com/questions/154664",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/21773/"
] | I've got some date data in a Google drive sheet which is imported from a CSV.
The date data is formatted as either `dd/mm/yy` or `dd.mm.yy` as hard key data (eg. not formatted as a date)
I got to `format > number > date` but it doesn't work.
Any idea how I can format these as dates in Google sheets ?
I've made an e... | This is probably easiest to do with a `query()` formula that counts occurrences by timeslot, like this:
```
=arrayformula(
query(
{
text(int(A3:A * 24 / 3) * 3, "00") & ":00—"
&
text(int(A3:A * 24 / 3) * 3 + 2, "00:59"),
A3:A
},
"select Col1, count(Col2)
where Col2 i... |
154,712 | <p>This is a messy function but it works. I want to input values into column D, use the macro, have it add D values to C Values across from one another, then Delete all D values. I could write out C3:C246 and D3:246 like shown below but one, that would take forever, and two, there has to be a cleaner and quicker way.</... | [
{
"answer_id": 154713,
"author": "Blaine Luther",
"author_id": 273399,
"author_profile": "https://webapps.stackexchange.com/users/273399",
"pm_score": -1,
"selected": false,
"text": "<pre><code>function addPoints() {\n var spreadsheet = SpreadsheetApp.getActive();\n spreadsheet.getRang... | 2021/05/27 | [
"https://webapps.stackexchange.com/questions/154712",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/-1/"
] | This is a messy function but it works. I want to input values into column D, use the macro, have it add D values to C Values across from one another, then Delete all D values. I could write out C3:C246 and D3:246 like shown below but one, that would take forever, and two, there has to be a cleaner and quicker way.
```... | Use this `map-reduce` pattern to calculate the row-by-row sum:
```
function replaceColumnsWithRowSum() {
const ss = SpreadsheetApp.getActive();
const sourceRange = ss.getRange('Sheet1!C3:D246');
const targetRange = ss.getRange('Sheet1!C3:C246');
const values = sourceRange.getValues();
const rowSum = values.m... |
154,719 | <p>I'm trying to see if there is any way to count in Google Sheets how many times conditions in other columns are met. Please see image below. In the example, there are 3 conditions (Car, Color, Status) and they will all be counted as the first case if no conditions are repeated in previous rows. If the same conditions... | [
{
"answer_id": 154713,
"author": "Blaine Luther",
"author_id": 273399,
"author_profile": "https://webapps.stackexchange.com/users/273399",
"pm_score": -1,
"selected": false,
"text": "<pre><code>function addPoints() {\n var spreadsheet = SpreadsheetApp.getActive();\n spreadsheet.getRang... | 2021/05/27 | [
"https://webapps.stackexchange.com/questions/154719",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/273412/"
] | I'm trying to see if there is any way to count in Google Sheets how many times conditions in other columns are met. Please see image below. In the example, there are 3 conditions (Car, Color, Status) and they will all be counted as the first case if no conditions are repeated in previous rows. If the same conditions ar... | Use this `map-reduce` pattern to calculate the row-by-row sum:
```
function replaceColumnsWithRowSum() {
const ss = SpreadsheetApp.getActive();
const sourceRange = ss.getRange('Sheet1!C3:D246');
const targetRange = ss.getRange('Sheet1!C3:C246');
const values = sourceRange.getValues();
const rowSum = values.m... |
154,816 | <p>How can I get Google Forms to allow me to have two different type of answers to one question? Answers are to be related between them so when working results, I can get the grades of each group member.</p>
<p><strong>Question:</strong><br />
Please evaluate the performance of each of your group partners</p>
<p><stron... | [
{
"answer_id": 154713,
"author": "Blaine Luther",
"author_id": 273399,
"author_profile": "https://webapps.stackexchange.com/users/273399",
"pm_score": -1,
"selected": false,
"text": "<pre><code>function addPoints() {\n var spreadsheet = SpreadsheetApp.getActive();\n spreadsheet.getRang... | 2021/06/01 | [
"https://webapps.stackexchange.com/questions/154816",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/273719/"
] | How can I get Google Forms to allow me to have two different type of answers to one question? Answers are to be related between them so when working results, I can get the grades of each group member.
**Question:**
Please evaluate the performance of each of your group partners
**Answer:**
MemberName 1 \_\_\_\_ Gr... | Use this `map-reduce` pattern to calculate the row-by-row sum:
```
function replaceColumnsWithRowSum() {
const ss = SpreadsheetApp.getActive();
const sourceRange = ss.getRange('Sheet1!C3:D246');
const targetRange = ss.getRange('Sheet1!C3:C246');
const values = sourceRange.getValues();
const rowSum = values.m... |
154,838 | <p>I am trying to figure out how to append / enter manual data to the end of an IMPORTRANGE list. In my spreadsheet, each tab is a month. I want to IMPORT the prior month's list (rows) and then be able to manually add the new month's entries (rows) to the end of the imported data set.</p>
<p>Is there a way to command e... | [
{
"answer_id": 154713,
"author": "Blaine Luther",
"author_id": 273399,
"author_profile": "https://webapps.stackexchange.com/users/273399",
"pm_score": -1,
"selected": false,
"text": "<pre><code>function addPoints() {\n var spreadsheet = SpreadsheetApp.getActive();\n spreadsheet.getRang... | 2021/06/01 | [
"https://webapps.stackexchange.com/questions/154838",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/273794/"
] | I am trying to figure out how to append / enter manual data to the end of an IMPORTRANGE list. In my spreadsheet, each tab is a month. I want to IMPORT the prior month's list (rows) and then be able to manually add the new month's entries (rows) to the end of the imported data set.
Is there a way to command each subse... | Use this `map-reduce` pattern to calculate the row-by-row sum:
```
function replaceColumnsWithRowSum() {
const ss = SpreadsheetApp.getActive();
const sourceRange = ss.getRange('Sheet1!C3:D246');
const targetRange = ss.getRange('Sheet1!C3:C246');
const values = sourceRange.getValues();
const rowSum = values.m... |
154,971 | <p>In a MediaWiki page, I'd like to add an URL to a file on a file server. The path is an UNC one(<code>\\fileserver\project\...\SPECIAL.ext</code>), and I already have tried following "path link":</p>
<pre><code>file:////fileserver/projet/.../SPECIAL.ext
</code></pre>
<p>I know this is correct: when I enter ... | [
{
"answer_id": 154713,
"author": "Blaine Luther",
"author_id": 273399,
"author_profile": "https://webapps.stackexchange.com/users/273399",
"pm_score": -1,
"selected": false,
"text": "<pre><code>function addPoints() {\n var spreadsheet = SpreadsheetApp.getActive();\n spreadsheet.getRang... | 2021/06/08 | [
"https://webapps.stackexchange.com/questions/154971",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/274192/"
] | In a MediaWiki page, I'd like to add an URL to a file on a file server. The path is an UNC one(`\\fileserver\project\...\SPECIAL.ext`), and I already have tried following "path link":
```
file:////fileserver/projet/.../SPECIAL.ext
```
I know this is correct: when I enter this location in the address bar of my intern... | Use this `map-reduce` pattern to calculate the row-by-row sum:
```
function replaceColumnsWithRowSum() {
const ss = SpreadsheetApp.getActive();
const sourceRange = ss.getRange('Sheet1!C3:D246');
const targetRange = ss.getRange('Sheet1!C3:C246');
const values = sourceRange.getValues();
const rowSum = values.m... |