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 |
|---|---|---|---|---|---|---|
154,985 | <p>Previously posted but closed as duplicate with link to the question below</p>
<p>Original question: <a href="https://webapps.stackexchange.com/questions/154963/sum-values-to-the-right-of-criteria-in-multicolumn-range">Sum values to the right of criteria in multicolumn range</a>
Proposed answer/duplicate: <a href="ht... | [
{
"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/154985",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/269420/"
] | Previously posted but closed as duplicate with link to the question below
Original question: [Sum values to the right of criteria in multicolumn range](https://webapps.stackexchange.com/questions/154963/sum-values-to-the-right-of-criteria-in-multicolumn-range)
Proposed answer/duplicate: [Sum values with same name](htt... | 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... |
155,244 | <p>I have a column with three codes separated by space. These codes are M, N or T followed by a one digit number (e.g M1 N3 T2, or N2 T1, or just M1), always in the same order: first M, then N, then T, and some of them could be missed. However, all the cells have data.</p>
<p>I want to split that column in three column... | [
{
"answer_id": 155246,
"author": "Alejandro Díaz-Caro",
"author_id": 274776,
"author_profile": "https://webapps.stackexchange.com/users/274776",
"pm_score": 0,
"selected": false,
"text": "<p>Solution given by a friend:</p>\n<pre><code>=ARRAYFORMULA(MID(A:A,FINDB("M",A:A),2))\n<... | 2021/06/18 | [
"https://webapps.stackexchange.com/questions/155244",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/274776/"
] | I have a column with three codes separated by space. These codes are M, N or T followed by a one digit number (e.g M1 N3 T2, or N2 T1, or just M1), always in the same order: first M, then N, then T, and some of them could be missed. However, all the cells have data.
I want to split that column in three columns, which ... | I've added a new sheet ("Erik Help") with the following formula in B1:
`=ArrayFormula({"Codes","",""; IF(A2:A="",,IFERROR({REGEXEXTRACT(A2:A,"M."),REGEXEXTRACT(A2:A,"T."),REGEXEXTRACT(A2:A,"N.")}))})`
This one formula will produce all results for the three columns. |
155,275 | <p>I can use <code>from:@Some Person</code> and <code>to:@Some Person</code> in Slack search but that doesn't find plain mentions, or just interactions between two people when they don't necessarily tag each other.</p>
<p>My use case is that I've been involved in a discussion (thread in some channel) with another perso... | [
{
"answer_id": 155281,
"author": "Borek Bernard",
"author_id": 6479,
"author_profile": "https://webapps.stackexchange.com/users/6479",
"pm_score": 2,
"selected": false,
"text": "<p>I've had a conversion with support and they confirmed that it's not possible (as of June 2021).</p>\n<p><st... | 2021/06/21 | [
"https://webapps.stackexchange.com/questions/155275",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/6479/"
] | I can use `from:@Some Person` and `to:@Some Person` in Slack search but that doesn't find plain mentions, or just interactions between two people when they don't necessarily tag each other.
My use case is that I've been involved in a discussion (thread in some channel) with another person from the company but can't re... | Looks like they've added a feature to search using "**with**" so you can search for "**with**:@personA **with**:@personB".
See <https://slack.com/help/articles/202528808-Search-in-Slack> for more details. |
155,291 | <p>I have a Google Form that populates a Google Sheet with rider registrations for a local cycling club. The sheet has a filter in place to display only the riders for the current day. This filter action was recorded as a macro and it then triggers each day. All this is working fine. What I need is a script that wi... | [
{
"answer_id": 155285,
"author": "Tim Nafziger",
"author_id": 178600,
"author_profile": "https://webapps.stackexchange.com/users/178600",
"pm_score": 1,
"selected": false,
"text": "<p>I think I may have figured out this issue: on the desktop Facebook application, the time zone being used... | 2021/06/21 | [
"https://webapps.stackexchange.com/questions/155291",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/275011/"
] | I have a Google Form that populates a Google Sheet with rider registrations for a local cycling club. The sheet has a filter in place to display only the riders for the current day. This filter action was recorded as a macro and it then triggers each day. All this is working fine. What I need is a script that will purg... | I think I may have figured out this issue: on the desktop Facebook application, the time zone being used is not always clear. When I was editing the event, I was thinking that I needed to enter it in my current time zone, but because it was an event with a location in a physical place, I needed to enter the time in the... |
155,449 | <p>I have order numbers and quantities recorded like this: <code># 5397 (5) # 5387 (15)</code> which means 5 and 15, in total 20. The expected result is <code>20</code>.</p>
<p>I already have a custom function implemented in Microsoft Excel VBA:</p>
<pre><code>Function SUMAPA(n1 As String)
Longitud = Len(n1)
For i = 1 ... | [
{
"answer_id": 155373,
"author": "serenesat",
"author_id": 87130,
"author_profile": "https://webapps.stackexchange.com/users/87130",
"pm_score": 0,
"selected": false,
"text": "<p>There is no fix time. Only Facebook can answer about precise time. It can take three days, three weeks or thr... | 2021/06/28 | [
"https://webapps.stackexchange.com/questions/155449",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/275406/"
] | I have order numbers and quantities recorded like this: `# 5397 (5) # 5387 (15)` which means 5 and 15, in total 20. The expected result is `20`.
I already have a custom function implemented in Microsoft Excel VBA:
```
Function SUMAPA(n1 As String)
Longitud = Len(n1)
For i = 1 To Longitud
If Mid(n1, i, 1) = "(" Then
I... | There is no fix time. Only Facebook can answer about precise time. It can take three days, three weeks or three months. Or may be you will never get your account back. It is totally depends on Facebook. Also take decisions based on what kind of violation you have done and how many times you have violated rules.
Keep c... |
155,468 | <p>This is my sheet :</p>
<p><a href="https://i.stack.imgur.com/3XrNf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3XrNf.png" alt="enter image description here" /></a></p>
<p>in column E, i want to find the max among col A,B,C using this simple formula in E1 :</p>
<pre><code>=max(A1:C1)
</code></p... | [
{
"answer_id": 155469,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 0,
"selected": false,
"text": "<p>Move your data down one row, and insert a column before column <code>A</code>, so that the data table is ... | 2021/06/29 | [
"https://webapps.stackexchange.com/questions/155468",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/229140/"
] | This is my sheet :
[](https://i.stack.imgur.com/3XrNf.png)
in column E, i want to find the max among col A,B,C using this simple formula in E1 :
```
=max(A1:C1)
```
But rather than pasting the formula to E2 .. E10, i want to see if possible to use... | If your data to compare is really only in three columns (A, B, C), you can simplify things with this formula in E1:
`=ArrayFormula(IF(A:A="",,IF((A:A>B:B)*(A:A>C:C),A:A,IF(B:B>C:C,B:B,C:C))))`
This reads "If any row of A is blank, return null; otherwise, if A is greater than B *and* A is greater than C, return A; oth... |
155,540 | <p>A podcast I listen to releases their episodes early on SoundCloud. I'd love to be able to listen to the podcast at 1.25x speed or 1.5x speed.</p>
<p>Normally, I'd just use some JavaScript to <a href="https://stackoverflow.com/a/23618973/3023052">change the playback speed of the <code>audio</code> element</a>:</p>
<p... | [
{
"answer_id": 155541,
"author": "Kyle Pollard",
"author_id": 275635,
"author_profile": "https://webapps.stackexchange.com/users/275635",
"pm_score": 0,
"selected": false,
"text": "<p>I got a little excited with trying to reverse engineer this, when really there's a simple way to work ar... | 2021/07/02 | [
"https://webapps.stackexchange.com/questions/155540",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/275635/"
] | A podcast I listen to releases their episodes early on SoundCloud. I'd love to be able to listen to the podcast at 1.25x speed or 1.5x speed.
Normally, I'd just use some JavaScript to [change the playback speed of the `audio` element](https://stackoverflow.com/a/23618973/3023052):
```
document.getElementById("audio1"... | The [Global Speed extension](https://chrome.google.com/webstore/detail/global-speed/jpbjcnkcffbooppibceonlgknpkniiff/related?hl=en) was able to change the speed on Soundcloud. It should be available also for Firefox. I tried several other extensions which were unable to speed up Soundcloud. |
155,559 | <p>I am trying to convert age written as years and month in to a decimal, where 12.06 (12yrs6mnths) would equal 12.5yrs).</p>
<p>I am a relative novice in formula writing and this is my best effort so far using =if to convert an age to it's decimal equivalent, but I'm getting a parse error. Any help greatly appreciate... | [
{
"answer_id": 155541,
"author": "Kyle Pollard",
"author_id": 275635,
"author_profile": "https://webapps.stackexchange.com/users/275635",
"pm_score": 0,
"selected": false,
"text": "<p>I got a little excited with trying to reverse engineer this, when really there's a simple way to work ar... | 2021/07/03 | [
"https://webapps.stackexchange.com/questions/155559",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/275679/"
] | I am trying to convert age written as years and month in to a decimal, where 12.06 (12yrs6mnths) would equal 12.5yrs).
I am a relative novice in formula writing and this is my best effort so far using =if to convert an age to it's decimal equivalent, but I'm getting a parse error. Any help greatly appreciated.
```
=i... | The [Global Speed extension](https://chrome.google.com/webstore/detail/global-speed/jpbjcnkcffbooppibceonlgknpkniiff/related?hl=en) was able to change the speed on Soundcloud. It should be available also for Firefox. I tried several other extensions which were unable to speed up Soundcloud. |
155,577 | <p>I am trying to declare some 'global variables' for spreadsheet automation in Google Scripts. I know that Google Scripts runs everything every time something is changed (including the so called 'global variables'), so I'm trying to limit my calls to the spreadsheet. I have upwards of 100 or so named ranges (though mo... | [
{
"answer_id": 155588,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 1,
"selected": false,
"text": "<p>If you need to get more than one named range, <code>ss.getNamedRanges()</code> will be faster than using ... | 2021/07/05 | [
"https://webapps.stackexchange.com/questions/155577",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/272899/"
] | I am trying to declare some 'global variables' for spreadsheet automation in Google Scripts. I know that Google Scripts runs everything every time something is changed (including the so called 'global variables'), so I'm trying to limit my calls to the spreadsheet. I have upwards of 100 or so named ranges (though most ... | After some speed testing, I've found that both options below seem to be making calls to the spreadsheet anytime a `.getX()` is used such as `.getValue()`, `.getColumn()`, `.getRange()`, etc.
```
const ss = SpreadsheetApp.getActive();
const namedRanges = ss.getNamedRanges();
const sch_itemName = find(r => r.getName() ... |
155,578 | <p>I am using hangouts, and would like to know how can I make message text bold.</p>
<p>I tried using markdown by adding * before and after words, but it didn't work. I get asterisks displayed next to the words. when I try this <code>*Hello*</code> I get this: <code>*Hello*</code> rather then this: <strong>Hello</stron... | [
{
"answer_id": 155588,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 1,
"selected": false,
"text": "<p>If you need to get more than one named range, <code>ss.getNamedRanges()</code> will be faster than using ... | 2021/07/05 | [
"https://webapps.stackexchange.com/questions/155578",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/275753/"
] | I am using hangouts, and would like to know how can I make message text bold.
I tried using markdown by adding \* before and after words, but it didn't work. I get asterisks displayed next to the words. when I try this `*Hello*` I get this: `*Hello*` rather then this: **Hello**
Note:
I'm using google hangouts, not go... | After some speed testing, I've found that both options below seem to be making calls to the spreadsheet anytime a `.getX()` is used such as `.getValue()`, `.getColumn()`, `.getRange()`, etc.
```
const ss = SpreadsheetApp.getActive();
const namedRanges = ss.getNamedRanges();
const sch_itemName = find(r => r.getName() ... |
155,652 | <p>This is an example of the information i get when reading a QR</p>
<pre><code>{"ver":1,"date":"2021-07-07","name":123456,"line":12)}
</code></pre>
<p>What I need to extract is</p>
<pre><code>2021-07-07
123456
12
</code></pre>
<p>Name length is not always the same.</p>... | [
{
"answer_id": 155642,
"author": "jaybong",
"author_id": 29003,
"author_profile": "https://webapps.stackexchange.com/users/29003",
"pm_score": 0,
"selected": false,
"text": "<p>Answering my own question because I think I figured this out:</p>\n<pre><code>=ArrayFormula(IF(OR(A2="stac... | 2021/07/08 | [
"https://webapps.stackexchange.com/questions/155652",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/-1/"
] | This is an example of the information i get when reading a QR
```
{"ver":1,"date":"2021-07-07","name":123456,"line":12)}
```
What I need to extract is
```
2021-07-07
123456
12
```
Name length is not always the same. | I've added a duplicate of your Sheet1 (called "Erik Help"), which contains the following formula in E1:
`=ArrayFormula({"E"; IF(A2:A="",, IF((LOWER(TRIM(A2:A))="stackexchange")+(B2:B+C2:C+D2:D=0),TRUE,FALSE))})`
The curly brackets `{ }` create a literal array, meaning we can arrange the data between them below or to ... |
155,732 | <p>I have this table :</p>
<p><a href="https://i.stack.imgur.com/0zqIF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0zqIF.png" alt="enter image description here" /></a></p>
<p>column <strong>F</strong> is my data and column <strong>H</strong> is to check if column <strong>F</strong> has <strong>N/... | [
{
"answer_id": 155720,
"author": "Boris Baublys",
"author_id": 269717,
"author_profile": "https://webapps.stackexchange.com/users/269717",
"pm_score": 0,
"selected": false,
"text": "<p>In case you cannot find a solution using formulas I will give a solution using the following code:</p>\... | 2021/07/11 | [
"https://webapps.stackexchange.com/questions/155732",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/229140/"
] | I have this table :
[](https://i.stack.imgur.com/0zqIF.png)
column **F** is my data and column **H** is to check if column **F** has **N/A** error. In **H1** i use this formula :
```
ifna(F1,"error")
```
Seems to work fine. But in the 2nd row when... | Use [filter views](https://support.google.com/docs/answer/3540681) to let view-only users sort the sheet. This feature lets multiple simultaneous users sort and filter the sheet without disturbing each other.
For additional ease of use, insert links in the frozen section of the sheet to easily switch between filter vi... |
155,800 | <p>My dataset comes from a Google formular.<br />
I will have 2 different entries with the same names.</p>
<p><a href="https://i.stack.imgur.com/inlvn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/inlvn.png" alt="this is how the dataset looks like" /></a></p>
<p>The data input in the different colu... | [
{
"answer_id": 162694,
"author": "Asmit Karmakar",
"author_id": 284718,
"author_profile": "https://webapps.stackexchange.com/users/284718",
"pm_score": -1,
"selected": false,
"text": "<p>The host of this meeting disabled downloads.\n<a href=\"https://ethz.zoom.us/rec/download/6dDvbQgf3jH... | 2021/07/14 | [
"https://webapps.stackexchange.com/questions/155800",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/276273/"
] | My dataset comes from a Google formular.
I will have 2 different entries with the same names.
[](https://i.stack.imgur.com/inlvn.png)
The data input in the different columns will increase.
What I want to do now is automatically subtract the... | Using the Mozilla FireFox browser on a computer, open the video, hold down Shift and right-click on the video. You will get a context menu with an option to Save Video. No extension or plugin required. |
158,266 | <p>I'm using this formula</p>
<pre><code>=IF(VLOOKUP(A2,'sheet2'!A8:B353,1,FALSE),"Yes","No")
</code></pre>
<p>But when the VLOOKUP is not finding the value, I've a N/A in my cell with and an error message like did not find value.
How to get a "no" in place of this Error message and N/A va... | [
{
"answer_id": 158267,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 0,
"selected": false,
"text": "<p>Instead of IF use <a href=\"https://support.google.com/docs/answer/9365944?hl=en\" rel=\"nofollow noreferrer\">IF... | 2021/08/06 | [
"https://webapps.stackexchange.com/questions/158266",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/226027/"
] | I'm using this formula
```
=IF(VLOOKUP(A2,'sheet2'!A8:B353,1,FALSE),"Yes","No")
```
But when the VLOOKUP is not finding the value, I've a N/A in my cell with and an error message like did not find value.
How to get a "no" in place of this Error message and N/A value ? | If you do not care about the result of the lookup, but just want to know whether the value in cell `A2` appears in `A8:A353`, use one of these patterns:
`=if( iserror( match(A2, 'sheet2'!A8:A353, 0) ), "No", "Yes" )`
`=if( iserror( vlookup(A2, 'sheet2'!A8:A353, 1, false) ), "No", "Yes" )`
If you do want the result f... |
158,304 | <p>How do I change this dynamic dependent dropdown list script so it works with my particular Google Sheet.</p>
<pre><code>function onEdit(){
var ss = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var datass = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Dropdown database")
var ac... | [
{
"answer_id": 158317,
"author": "Tedinoz",
"author_id": 196152,
"author_profile": "https://webapps.stackexchange.com/users/196152",
"pm_score": 0,
"selected": false,
"text": "<p>Things to modify</p>\n<p><strong>1 - Define the spreadsheet</strong></p>\n<p>Delete: <code>var ss = Spreadshe... | 2021/08/09 | [
"https://webapps.stackexchange.com/questions/158304",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/246475/"
] | How do I change this dynamic dependent dropdown list script so it works with my particular Google Sheet.
```
function onEdit(){
var ss = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var datass = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Dropdown database")
var activeCell = ss.getActiveCe... | With the following code you should be able to do that
Code
----
```
const onEdit = (e) => {
// // before doing anything check if we're in the correct row, column and sheet
if (e.range.rowStart > 2 && e.range.columnStart === 1 && e.range.getSheet().getName() === 'GS') {
// set offset (column B)
const oSe... |
158,338 | <p>I have a Auction that I am updating and posting bids to on a Google Sheet that bidders can view.
The condition to the auction is that the item will be sold to a bidder if no one has bid on said item within 24 hours, thus closing the auction.</p>
<p>I have the sheet to update the time edited for a row whenever I alte... | [
{
"answer_id": 158343,
"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>Set the "Apply to Range" field to <code>G3:G</code> (assuming you will have it... | 2021/08/11 | [
"https://webapps.stackexchange.com/questions/158338",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/279674/"
] | I have a Auction that I am updating and posting bids to on a Google Sheet that bidders can view.
The condition to the auction is that the item will be sold to a bidder if no one has bid on said item within 24 hours, thus closing the auction.
I have the sheet to update the time edited for a row whenever I alter the cur... | Thanks to the assistance of Erik Tyler and his work below, I was pointed towards a simple solution for my use case.
>
> Try this:
>
>
> Set the "Apply to Range" field to `G3:G` (assuming you will have items
> and times in multiple rows).
>
>
> Set "Format cells if" to `Custom formula is`.
>
>
> In the formula f... |
158,653 | <p>I couldn't find a way to get a URL. If I am watching a movie, the URL has a lot of tracker info and perhaps session ID, so I don't want to send that. I could only tell the person to "search" by some title... it can work but it totally defeats the functionality of Web and URL.</p>
<p>I found a way, which is... | [
{
"answer_id": 158654,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 0,
"selected": false,
"text": "<p>From Netflix help center</p>\n<blockquote>\n<h3>How can I share movies and TV shows with someone?</h3>\n<p>Netfli... | 2021/08/24 | [
"https://webapps.stackexchange.com/questions/158653",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/6230/"
] | I couldn't find a way to get a URL. If I am watching a movie, the URL has a lot of tracker info and perhaps session ID, so I don't want to send that. I could only tell the person to "search" by some title... it can work but it totally defeats the functionality of Web and URL.
I found a way, which is to use a link to t... | It does not seem very complicated from the Netflix website. Share it as you would share any other link:
1. Start watching the show / movie that you want to share.
2. Copy the URL and that's the share link.
The URL is something like:
```
https://www.netflix.com/watch/80989928?trackId=12345678&tctx=blahblahblah
```
... |
158,673 | <p>I've been trying create a file and then access its ThumbnailLink in GAS.</p>
<p>this works well -</p>
<pre><code>let _file = DriveApp.createFile("TEMPFILE.svg", svg);
let file = Drive.Files.get(_file.getId());
</code></pre>
<p>(is this the best practice?)</p>
<p>now, when I'm trying to get the thumbnailLin... | [
{
"answer_id": 158666,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 0,
"selected": false,
"text": "<p>My understanding is that macros, or Google Apps Script in general, cannot circumvent sheet protections.</... | 2021/08/25 | [
"https://webapps.stackexchange.com/questions/158673",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/280538/"
] | I've been trying create a file and then access its ThumbnailLink in GAS.
this works well -
```
let _file = DriveApp.createFile("TEMPFILE.svg", svg);
let file = Drive.Files.get(_file.getId());
```
(is this the best practice?)
now, when I'm trying to get the thumbnailLink - it's sometimes null (as in sometimes there... | In Google Sheets, warnings are not shown when a protected sheet / range set to show a warning only is edited by a macro by default, but you could set your macro to check if there is a protection applied the sheet / range being edited. In order to be able to do this you should open the Script editor and edit the macro a... |
158,693 | <p>I am looking for a flexible custom function to be able to cross-join (cartesian product) 2 columns of varying lengths in Google Sheets.</p>
<p>My research so far has led me to ask because:</p>
<ol>
<li>using a combination of existing formulas in Sheets either produces some weird artifacts (counting blank cells as va... | [
{
"answer_id": 158699,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": true,
"text": "<p>You can get that with a <a href=\"https://developers.google.com/apps-script/guides/sheets/functions\" rel=... | 2021/08/26 | [
"https://webapps.stackexchange.com/questions/158693",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/280587/"
] | I am looking for a flexible custom function to be able to cross-join (cartesian product) 2 columns of varying lengths in Google Sheets.
My research so far has led me to ask because:
1. using a combination of existing formulas in Sheets either produces some weird artifacts (counting blank cells as values to cross-join... | You can get that with a [custom function](https://developers.google.com/apps-script/guides/sheets/functions), but it would probably make more sense to use a plain vanilla spreadsheet formula.
The example results you show is row-by-row concatenation rather than a Cartesian product of two sets. To get row-by-row concate... |
158,701 | <p>I have a column with a list of numbers. I want to calculate the sum of the numbers, starting from the top until the value of sum reaches a fixed value, and then stop and return the cell address of the cell where the sum reached its limit. Is there a formula for this? If not, what would be the script for a custom for... | [
{
"answer_id": 158699,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": true,
"text": "<p>You can get that with a <a href=\"https://developers.google.com/apps-script/guides/sheets/functions\" rel=... | 2021/08/27 | [
"https://webapps.stackexchange.com/questions/158701",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/280607/"
] | I have a column with a list of numbers. I want to calculate the sum of the numbers, starting from the top until the value of sum reaches a fixed value, and then stop and return the cell address of the cell where the sum reached its limit. Is there a formula for this? If not, what would be the script for a custom formul... | You can get that with a [custom function](https://developers.google.com/apps-script/guides/sheets/functions), but it would probably make more sense to use a plain vanilla spreadsheet formula.
The example results you show is row-by-row concatenation rather than a Cartesian product of two sets. To get row-by-row concate... |
158,707 | <p>I have changed the name of my Twitter account, but the previous name still shows up in the web search, when I search my Twitter handle on a search engine.</p>
<p>How can I remove my previous Twitter name, so that it does not show in the search engines?</p>
| [
{
"answer_id": 158699,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": true,
"text": "<p>You can get that with a <a href=\"https://developers.google.com/apps-script/guides/sheets/functions\" rel=... | 2021/08/27 | [
"https://webapps.stackexchange.com/questions/158707",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/16541/"
] | I have changed the name of my Twitter account, but the previous name still shows up in the web search, when I search my Twitter handle on a search engine.
How can I remove my previous Twitter name, so that it does not show in the search engines? | You can get that with a [custom function](https://developers.google.com/apps-script/guides/sheets/functions), but it would probably make more sense to use a plain vanilla spreadsheet formula.
The example results you show is row-by-row concatenation rather than a Cartesian product of two sets. To get row-by-row concate... |
158,790 | <p>[ANSWERED]
If a cell in column F contains "0" I want column H to show "COMPLETE". If the cell in column F contains anything else I want column H to show "INCOMPLETE".
(This might be something simple, I'm very new to Google Sheets. I looked around and tried a couple things but just ended... | [
{
"answer_id": 158699,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": true,
"text": "<p>You can get that with a <a href=\"https://developers.google.com/apps-script/guides/sheets/functions\" rel=... | 2021/09/01 | [
"https://webapps.stackexchange.com/questions/158790",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/280889/"
] | [ANSWERED]
If a cell in column F contains "0" I want column H to show "COMPLETE". If the cell in column F contains anything else I want column H to show "INCOMPLETE".
(This might be something simple, I'm very new to Google Sheets. I looked around and tried a couple things but just ended up more confused.)
Update: Usin... | You can get that with a [custom function](https://developers.google.com/apps-script/guides/sheets/functions), but it would probably make more sense to use a plain vanilla spreadsheet formula.
The example results you show is row-by-row concatenation rather than a Cartesian product of two sets. To get row-by-row concate... |
158,870 | <h3>Background</h3>
<p>Google has a service that allows you to export/backup/migrate your google drive documents and contents to another system. Its called takeout.google.com This service allows for the user to also specify the file formats that google office files will be converted into. (See image below)</p>
<h3>Issu... | [
{
"answer_id": 158699,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": true,
"text": "<p>You can get that with a <a href=\"https://developers.google.com/apps-script/guides/sheets/functions\" rel=... | 2021/09/06 | [
"https://webapps.stackexchange.com/questions/158870",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/15613/"
] | ### Background
Google has a service that allows you to export/backup/migrate your google drive documents and contents to another system. Its called takeout.google.com This service allows for the user to also specify the file formats that google office files will be converted into. (See image below)
### Issue
I have ... | You can get that with a [custom function](https://developers.google.com/apps-script/guides/sheets/functions), but it would probably make more sense to use a plain vanilla spreadsheet formula.
The example results you show is row-by-row concatenation rather than a Cartesian product of two sets. To get row-by-row concate... |
158,983 | <p>I am googling for info about ceph and google cloud, but everytime I do the first results are about job seaerches.</p>
<p>So I tried removing jobs from the search with:</p>
<pre><code>"google cloud" "remote Ceph" integrations -"jobs"
</code></pre>
<p>Even doing that the first results ar... | [
{
"answer_id": 158984,
"author": "TOOGAM",
"author_id": 282643,
"author_profile": "https://webapps.stackexchange.com/users/282643",
"pm_score": 1,
"selected": false,
"text": "<p>You're doing nothing wrong.</p>\n<p>You used to be able to hard-eliminate a search term by putting a minus sig... | 2021/09/12 | [
"https://webapps.stackexchange.com/questions/158983",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/282574/"
] | I am googling for info about ceph and google cloud, but everytime I do the first results are about job seaerches.
So I tried removing jobs from the search with:
```
"google cloud" "remote Ceph" integrations -"jobs"
```
Even doing that the first results are about jobs.
:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Red</th>
<th>Orange</th>
<th>Yellow</th>
<th>Green</th>
<th>Blue</th>
<th>Indigo</th>
<th>Violet</th>
<th>Gre... | [
{
"answer_id": 159016,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": true,
"text": "<p>Given that there are a few criteria columns, you may want to try the <code>iferror(filter(not(mmult(sign(n... | 2021/09/13 | [
"https://webapps.stackexchange.com/questions/159001",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/282620/"
] | I have a sheet with data, theres a section laid out 8x9 with a layout approximately similar to below (didn't recreate all 9 rows):
| Red | Orange | Yellow | Green | Blue | Indigo | Violet | Grey |
| --- | --- | --- | --- | --- | --- | --- | --- |
| X | - | X | - | - | - | - | - |
| X | X | X | - | - | - | - | X |
| - ... | Given that there are a few criteria columns, you may want to try the `iferror(filter(not(mmult(sign(not())))))` pattern, like this:
```
=iferror(
filter(
'Sample Dataset List'!A2:B,
not(
mmult(
sign( not( iferror(
search(D8:K8, 'Sample Dataset List'!C2:J),
(D8:K8 = "-... |
159,081 | <p><a href="https://i.stack.imgur.com/DPBOi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DPBOi.png" alt="enter image description here" /></a>
<a href="https://i.stack.imgur.com/aWbct.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aWbct.png" alt="enter image description here" />... | [
{
"answer_id": 159087,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": true,
"text": "<p>Use <code>filter()</code> or <code>query()</code> to choose which search keys to include, like this:</p>\n... | 2021/09/17 | [
"https://webapps.stackexchange.com/questions/159081",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/282843/"
] | [](https://i.stack.imgur.com/DPBOi.png)
[](https://i.stack.imgur.com/aWbct.png)
I would like to sum all the costs based on the products purchased between specific dates.
```
=SUM(ARR... | Use `filter()` or `query()` to choose which search keys to include, like this:
```
=arrayformula(
sum(
iferror(
vlookup(
filter(
'Purchased List Table'!B2:B,
"2021-09-03" <= 'Purchased List Table'!A2:A,
'Purchased List Table'!A2:A <= "2021-09-05"
),
... |
159,095 | <p>We are making extensive use of Google Sheets' <code>HYPERLINK</code> formula combined with <strong>mailto</strong> links to create links in cells that will dynamically generate emails. For example:</p>
<pre><code>=HYPERLINK(
"mailto:test@test.com" &
"?cc=support@test.com" &
... | [
{
"answer_id": 159096,
"author": "Tedinoz",
"author_id": 196152,
"author_profile": "https://webapps.stackexchange.com/users/196152",
"pm_score": 2,
"selected": false,
"text": "<p>From the documentation for <code>HYPERLINK</code>: "Only certain link types are allowed. http://, https:... | 2021/09/18 | [
"https://webapps.stackexchange.com/questions/159095",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/217314/"
] | We are making extensive use of Google Sheets' `HYPERLINK` formula combined with **mailto** links to create links in cells that will dynamically generate emails. For example:
```
=HYPERLINK(
"mailto:test@test.com" &
"?cc=support@test.com" &
"&subject=Test email" &
"&body=This is a test email... | From the documentation for `HYPERLINK`: "Only certain link types are allowed. http://, https://, mailto:, aim:, ftp://, gopher://, telnet://, and news:// are permitted; **others are explicitly forbidden** (my emphasis)."
As you can see, `sms` is not listed so one might reasonably assume that it is explicitly forbidden... |
159,175 | <p>I'm using a series of IF and IF/AND functions to assign a set value according to, sometimes one set or two set of colums. While creating a range and Array Formula to apply that to all posible new columns, the IF/AND functions are disabled. All in Google Sheets.</p>
<p>Here is an example (both if/and are ommited from... | [
{
"answer_id": 159178,
"author": "Tedinoz",
"author_id": 196152,
"author_profile": "https://webapps.stackexchange.com/users/196152",
"pm_score": 0,
"selected": false,
"text": "<p>I can't see anything wrong with your formula except that you have far too many closing brackets at the end.</... | 2021/09/22 | [
"https://webapps.stackexchange.com/questions/159175",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/283121/"
] | I'm using a series of IF and IF/AND functions to assign a set value according to, sometimes one set or two set of colums. While creating a range and Array Formula to apply that to all posible new columns, the IF/AND functions are disabled. All in Google Sheets.
Here is an example (both if/and are ommited from the resu... | `AND` does not work with array formulas; you have to use `*` instead. (Likewise, `OR` does not work with array formulas, and you must use `+` instead.) You also have redundancies in the formula.
It is always difficult to try to write a formula without access to the spreadsheet, layout, data types, etc. And, of course,... |
159,387 | <p><strong>Script 1:</strong></p>
<p>Scraping data from a website and puts the new collected data into <code>Column A</code> and <code>Column B</code>.</p>
<pre><code>function scraping() {
var sheet = SpreadsheetApp.getActive().getSheetByName('PageA');
var url = 'www.linktoscraping.com';
const contentText = UrlF... | [
{
"answer_id": 159362,
"author": "Blind Spots",
"author_id": 197518,
"author_profile": "https://webapps.stackexchange.com/users/197518",
"pm_score": 2,
"selected": true,
"text": "<p>A recipient email address has the email address but the sender can set a 'display name' that is different ... | 2021/10/05 | [
"https://webapps.stackexchange.com/questions/159387",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/232400/"
] | **Script 1:**
Scraping data from a website and puts the new collected data into `Column A` and `Column B`.
```
function scraping() {
var sheet = SpreadsheetApp.getActive().getSheetByName('PageA');
var url = 'www.linktoscraping.com';
const contentText = UrlFetchApp.fetch(url).getContentText();
const $ = Cheer... | A recipient email address has the email address but the sender can set a 'display name' that is different from the email address. How this is handled varies by email client. Some will use the email address itself, some will display a text string in addition to the email address, others will display a text string only. ... |
159,611 | <p>I'm trying to figure out how to count the amount of times a group has clicked on a specific cell containing a cell.</p>
<p>I've gotten it to work with having a separate drawing next to it with the function attached to it, but I don't want to have a button needed for it.</p>
<pre><code>function increment_t1() {
Spre... | [
{
"answer_id": 159612,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 0,
"selected": false,
"text": "<blockquote>\n<p>Is there any way to attach the script to either a cell that contains a text that can be cop... | 2021/10/15 | [
"https://webapps.stackexchange.com/questions/159611",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/284380/"
] | I'm trying to figure out how to count the amount of times a group has clicked on a specific cell containing a cell.
I've gotten it to work with having a separate drawing next to it with the function attached to it, but I don't want to have a button needed for it.
```
function increment_t1() {
SpreadsheetApp.getActiv... | You might use `onSelectionChange` simple trigger together with a custom cell value (or another cell characteristic) to identify when certain part of your script should be executed. Here is an example:
```
/**
* Increment the value of F5 every time a cell having webapplications
* is selected
*/
function onSelectionC... |
159,726 | <p>I have a booking form, shown.<br />
I also have a template form, hidden.</p>
<p>This script is assigned to a button to create completed bookings by copying the booking form data to a copy of the template and again hides the template and clears the booking form.</p>
<p>The name of the newly created completed booking ... | [
{
"answer_id": 159727,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": false,
"text": "<p>Replace</p>\n<pre><code>var ti = sta.getRange('C7').getValue();\n</code></pre>\n<p>by</p>\n<pre><code>var ti = ((... | 2021/10/22 | [
"https://webapps.stackexchange.com/questions/159726",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/284351/"
] | I have a booking form, shown.
I also have a template form, hidden.
This script is assigned to a button to create completed bookings by copying the booking form data to a copy of the template and again hides the template and clears the booking form.
The name of the newly created completed booking sheet is pulled fr... | You can use a default value with this pattern:
`var ti = sta.getRange('C7').getDisplayValue() || 'default value';`
Your function will error out in the event a sheet name is already in use. To guard against that, use a `try-catch` block, like this:
```
function exportSheet() {
const ss = SpreadsheetApp.getActive();... |
159,776 | <p>Cells B2 and B3 each have a date entered in them. I want to compare the two dates and display the earlier date in cell C2. Or, stated another way:</p>
<p>if B2 < B3, display B2 in cell C2<br />
if B3 < B2, display B3 in cell C2</p>
<p>I do something like this with Acrobat's JavaScript but am lost with Google ... | [
{
"answer_id": 159777,
"author": "user695293",
"author_id": 274353,
"author_profile": "https://webapps.stackexchange.com/users/274353",
"pm_score": 2,
"selected": false,
"text": "<p>I got some assistance with this. Either of the following will work. Posting in case it helps someone else.... | 2021/10/24 | [
"https://webapps.stackexchange.com/questions/159776",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/274353/"
] | Cells B2 and B3 each have a date entered in them. I want to compare the two dates and display the earlier date in cell C2. Or, stated another way:
if B2 < B3, display B2 in cell C2
if B3 < B2, display B3 in cell C2
I do something like this with Acrobat's JavaScript but am lost with Google Sheets.
```
var date1 = ... | I got some assistance with this. Either of the following will work. Posting in case it helps someone else.
```
=IF(B2<B3,B2,B3)
```
or
```
=MIN(B2:B3)
``` |
159,868 | <p>I have been using this below code which was working perfectly:</p>
<pre><code>function colorChangeCheck(e) {
var sh = SpreadsheetApp.getActive().getActiveSheet();
var color = sh.getActiveRange().getBackground();
if(e.changeType == "FORMAT" && color == "#ffffff"){
sh.getRange(&... | [
{
"answer_id": 159837,
"author": "Nelson",
"author_id": 104137,
"author_profile": "https://webapps.stackexchange.com/users/104137",
"pm_score": 1,
"selected": true,
"text": "<p>You can insert more columns in the <code>Insert</code> menu.</p>\n<p><a href=\"https://i.stack.imgur.com/ZIvEH.... | 2021/10/28 | [
"https://webapps.stackexchange.com/questions/159868",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/283186/"
] | I have been using this below code which was working perfectly:
```
function colorChangeCheck(e) {
var sh = SpreadsheetApp.getActive().getActiveSheet();
var color = sh.getActiveRange().getBackground();
if(e.changeType == "FORMAT" && color == "#ffffff"){
sh.getRange("L"+sh.getActiveRange().getRow()).setValue... | You can insert more columns in the `Insert` menu.
[](https://i.stack.imgur.com/ZIvEH.png)
If you need to insert more than one column, you can highlight a number of columns and it'll prompt to insert that amount:
[ {\n return;\n }\n</code></pre>\n<p>... | 2021/10/29 | [
"https://webapps.stackexchange.com/questions/159882",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/283186/"
] | I have been using the code below to insert a timestamp in column `L` when a cell fill color in column `C` is changed to white.
The code is working well, but while it works when I choose the white color with the **Fill Color** paint bucket tool, it does not work when I use the **Paint Format** paint roller tool.
How d... | Try catching paint roller events with this [simple trigger](https://developers.google.com/apps-script/guides/triggers):
```
/**
* Simple trigger that runs each time the user hand edits the spreadsheet.
*
* @param {Object} e The onEdit() event object.
*/
function onEdit(e) {
// version 1.0, written by --Hyde, 30 Octo... |
159,956 | <p><strong>I'll begin with the specific question:</strong>
Is it possible to stop function-containing cell from autorefreshing on open?</p>
<p>Or perhaps is it possible to apply a function (which itself calls other functions who call other functions before the actual output is produced) from Apps Script onto a cell wit... | [
{
"answer_id": 159962,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": false,
"text": "<p>There is no way to prevent spreadsheet formulas that use a custom function from recalculating from time t... | 2021/11/02 | [
"https://webapps.stackexchange.com/questions/159956",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/284822/"
] | **I'll begin with the specific question:**
Is it possible to stop function-containing cell from autorefreshing on open?
Or perhaps is it possible to apply a function (which itself calls other functions who call other functions before the actual output is produced) from Apps Script onto a cell without having a formula ... | There is no way to prevent spreadsheet formulas that use a custom function from recalculating from time to time.
To work around the issue, set up a [time-driven trigger](https://developers.google.com/apps-script/guides/triggers/installable#time-driven_triggers) to run a function like this:
```
function importJsonToRa... |
159,964 | <p><a href="https://i.stack.imgur.com/ZM0jY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZM0jY.jpg" alt="enter image description here" /></a></p>
<p>I have attempted to use VLOOKUP and Array Functions so that when an Account is listed in G1, an array automatically is generated beneath it. The arra... | [
{
"answer_id": 159962,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": false,
"text": "<p>There is no way to prevent spreadsheet formulas that use a custom function from recalculating from time t... | 2021/11/02 | [
"https://webapps.stackexchange.com/questions/159964",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/285306/"
] | [](https://i.stack.imgur.com/ZM0jY.jpg)
I have attempted to use VLOOKUP and Array Functions so that when an Account is listed in G1, an array automatically is generated beneath it. The array formed (green) would only list rows where the Value in colum... | There is no way to prevent spreadsheet formulas that use a custom function from recalculating from time to time.
To work around the issue, set up a [time-driven trigger](https://developers.google.com/apps-script/guides/triggers/installable#time-driven_triggers) to run a function like this:
```
function importJsonToRa... |
159,998 | <p>I am wondering if it's possible to use a custom formula in conditional formatting to highlight a single 3x3 block of cells - rather than a single cell, an entire row/column, or the entire range - based on values within the cell.</p>
<p>I've fussed with it a bit but, as far as I've found, the only way I would be able... | [
{
"answer_id": 159962,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": false,
"text": "<p>There is no way to prevent spreadsheet formulas that use a custom function from recalculating from time t... | 2021/11/04 | [
"https://webapps.stackexchange.com/questions/159998",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/201668/"
] | I am wondering if it's possible to use a custom formula in conditional formatting to highlight a single 3x3 block of cells - rather than a single cell, an entire row/column, or the entire range - based on values within the cell.
I've fussed with it a bit but, as far as I've found, the only way I would be able to get i... | There is no way to prevent spreadsheet formulas that use a custom function from recalculating from time to time.
To work around the issue, set up a [time-driven trigger](https://developers.google.com/apps-script/guides/triggers/installable#time-driven_triggers) to run a function like this:
```
function importJsonToRa... |
160,013 | <p>I want to find a short solution to find the matching Korean term of column A in "English" from sheet "Korean." For now I have split column A and then used Vlookup for each value, but this means that I need to create so many columns. Is there a shorter way to get the values without splitting the c... | [
{
"answer_id": 160014,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 1,
"selected": false,
"text": "<p>Try an array formula that looks up all the words in a cell and joins them, like this:</p>\n<pre><code>=ar... | 2021/11/04 | [
"https://webapps.stackexchange.com/questions/160013",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/285389/"
] | I want to find a short solution to find the matching Korean term of column A in "English" from sheet "Korean." For now I have split column A and then used Vlookup for each value, but this means that I need to create so many columns. Is there a shorter way to get the values without splitting the column?
<https://docs.g... | Try an array formula that looks up all the words in a cell and joins them, like this:
```
=arrayformula(
iferror(
join(
" ",
iferror(
vlookup(
split(A2, " "),
Korean!A$2:B,
columns(Korean!A$2:B),
false
),
"[[[" & googletransla... |
160,202 | <p>Is there a Google Sheets formula that indicates whether a value (e.g., the contents of <code>A1</code>) is in a specified set (e.g., <code>1, 5, 9</code>)?</p>
<p>Yes, I could do a <code>SWITCH(A1, 1, 1, 5, 1, 9, 1, 0)</code>, but that is overly verbose.</p>
<p>I want something terse like <code>ISINSET(A1, 1, 5, 9)<... | [
{
"answer_id": 160204,
"author": "ZygD",
"author_id": 90249,
"author_profile": "https://webapps.stackexchange.com/users/90249",
"pm_score": 2,
"selected": true,
"text": "<pre><code>=arrayformula(or(A1={1, 5, 9}))\n</code></pre>\n<p><a href=\"https://i.stack.imgur.com/D6H0p.png\" rel=\"no... | 2021/11/15 | [
"https://webapps.stackexchange.com/questions/160202",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/285940/"
] | Is there a Google Sheets formula that indicates whether a value (e.g., the contents of `A1`) is in a specified set (e.g., `1, 5, 9`)?
Yes, I could do a `SWITCH(A1, 1, 1, 5, 1, 9, 1, 0)`, but that is overly verbose.
I want something terse like `ISINSET(A1, 1, 5, 9)`. | ```
=arrayformula(or(A1={1, 5, 9}))
```
[](https://i.stack.imgur.com/D6H0p.png) |
160,248 | <p>I have one Workbook A where a client will fill in either column A or B with a value (if there's something in A1, B1 will be empty, etc.), and I'd like to connect it to Workbook B in one column. It's important to keep the data in the original order from Workbook A in Workbook B, so a simple semicolon between the quer... | [
{
"answer_id": 160204,
"author": "ZygD",
"author_id": 90249,
"author_profile": "https://webapps.stackexchange.com/users/90249",
"pm_score": 2,
"selected": true,
"text": "<pre><code>=arrayformula(or(A1={1, 5, 9}))\n</code></pre>\n<p><a href=\"https://i.stack.imgur.com/D6H0p.png\" rel=\"no... | 2021/11/17 | [
"https://webapps.stackexchange.com/questions/160248",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/286067/"
] | I have one Workbook A where a client will fill in either column A or B with a value (if there's something in A1, B1 will be empty, etc.), and I'd like to connect it to Workbook B in one column. It's important to keep the data in the original order from Workbook A in Workbook B, so a simple semicolon between the query f... | ```
=arrayformula(or(A1={1, 5, 9}))
```
[](https://i.stack.imgur.com/D6H0p.png) |
160,411 | <p>I am seeking a worksheet formula to ideally return the <strong>cell column letter</strong> (or at least the cell reference) of the checkbox that is <em>checked from a range of checkboxes</em>.</p>
<p>Given this range of checkboxes(F1:J1)</p>
<p><a href="https://imgur.com/a2nKk5I" rel="nofollow noreferrer">https://im... | [
{
"answer_id": 160413,
"author": "Gabriel Atanasov",
"author_id": 286459,
"author_profile": "https://webapps.stackexchange.com/users/286459",
"pm_score": 1,
"selected": false,
"text": "<p>Use <code>arrayformula(if())</code>, like this:</p>\n<pre><code>=arrayformula( \n if(F1:J1 = TRUE, ... | 2021/11/25 | [
"https://webapps.stackexchange.com/questions/160411",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/286496/"
] | I am seeking a worksheet formula to ideally return the **cell column letter** (or at least the cell reference) of the checkbox that is *checked from a range of checkboxes*.
Given this range of checkboxes(F1:J1)
<https://imgur.com/a2nKk5I>
[](https:/... | Use `arrayformula(if())`, like this:
```
=arrayformula(
if(F1:J1 = TRUE, COLUMN(F1:J1),"")
)
```
The formula will give you the number of the column.
Consider to edit your question and leave only the necessary information. Also if there is additional criteria how the formula should work to describe it. |
160,569 | <p>Is there a way to convert normal dates in a Google Sheet to the <a href="https://en.wikipedia.org/wiki/Ethiopian_calendar" rel="nofollow noreferrer">Ethiopian calendar</a> (13 month, around 7 years back) and vice versa via a formula? I believe it does not work with a simple formula, so is there maybe a plugin for th... | [
{
"answer_id": 160620,
"author": "Oleg_S",
"author_id": 239790,
"author_profile": "https://webapps.stackexchange.com/users/239790",
"pm_score": 2,
"selected": true,
"text": "<p>Please, see <a href=\"https://docs.google.com/spreadsheets/d/1W0av2GSgrExNZv_eRQwCtd9c3VIJmwJUq5AmcoaI3TM/edit#... | 2021/12/06 | [
"https://webapps.stackexchange.com/questions/160569",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/103192/"
] | Is there a way to convert normal dates in a Google Sheet to the [Ethiopian calendar](https://en.wikipedia.org/wiki/Ethiopian_calendar) (13 month, around 7 years back) and vice versa via a formula? I believe it does not work with a simple formula, so is there maybe a plugin for this? | Please, see [test sheet](https://docs.google.com/spreadsheets/d/1W0av2GSgrExNZv_eRQwCtd9c3VIJmwJUq5AmcoaI3TM/edit#gid=0)
Column B contains gregorian dates and formula in Column C and D converts it to Ethiopian.
Range A13:B26 is support with Ethiopian month names.
Formulas in Column C and Column D are the same except s... |
160,666 | <p>I want to filter all emails with subjects containing a word.</p>
<p>So far I tried <code>subject:(has: abc)</code> but it doesn't work.</p>
<hr>
<p>It works for me in personal free account, but doesn't work in gsuite corporate account.</p>
| [
{
"answer_id": 160620,
"author": "Oleg_S",
"author_id": 239790,
"author_profile": "https://webapps.stackexchange.com/users/239790",
"pm_score": 2,
"selected": true,
"text": "<p>Please, see <a href=\"https://docs.google.com/spreadsheets/d/1W0av2GSgrExNZv_eRQwCtd9c3VIJmwJUq5AmcoaI3TM/edit#... | 2021/12/09 | [
"https://webapps.stackexchange.com/questions/160666",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/287146/"
] | I want to filter all emails with subjects containing a word.
So far I tried `subject:(has: abc)` but it doesn't work.
---
It works for me in personal free account, but doesn't work in gsuite corporate account. | Please, see [test sheet](https://docs.google.com/spreadsheets/d/1W0av2GSgrExNZv_eRQwCtd9c3VIJmwJUq5AmcoaI3TM/edit#gid=0)
Column B contains gregorian dates and formula in Column C and D converts it to Ethiopian.
Range A13:B26 is support with Ethiopian month names.
Formulas in Column C and Column D are the same except s... |
160,669 | <p>Hopefully I explain this well.
I have a sheet with 2 tabs, Data and Report. I am trying to make a formula on the Report tab that sums up total paid by new Clients.</p>
<p><a href="https://i.stack.imgur.com/kUxja.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kUxja.png" alt="enter image descriptio... | [
{
"answer_id": 160682,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 1,
"selected": false,
"text": "<p>Create a helper column to identify new clients with this formula in cell <code>Data!J1</code>:</p>\n<pre>... | 2021/12/09 | [
"https://webapps.stackexchange.com/questions/160669",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/287152/"
] | Hopefully I explain this well.
I have a sheet with 2 tabs, Data and Report. I am trying to make a formula on the Report tab that sums up total paid by new Clients.
[](https://i.stack.imgur.com/kUxja.png)
[ = vlookup( C2:C, { C2:C, row(C2:C) }, 2, false )
) ^ -1 )
}
)
```
Then use `filter()` in `Reports!F5`, like this:
```
=sum( iferror( filter(
Data!... |
160,699 | <p>I have a database (DatosBanderas) that, among other things, has information on the composition of the local government in a set of municipalities. The issue is that there are quite a few municipalities governed by a coalition of several parties. The composition of the local government is stored in a field named &quo... | [
{
"answer_id": 160682,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 1,
"selected": false,
"text": "<p>Create a helper column to identify new clients with this formula in cell <code>Data!J1</code>:</p>\n<pre>... | 2021/12/12 | [
"https://webapps.stackexchange.com/questions/160699",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/287136/"
] | I have a database (DatosBanderas) that, among other things, has information on the composition of the local government in a set of municipalities. The issue is that there are quite a few municipalities governed by a coalition of several parties. The composition of the local government is stored in a field named "Gobier... | Create a helper column to identify new clients with this formula in cell `Data!J1`:
```
=arrayformula(
{
"New?";
iferror( 1 / (
row(C2:C) = vlookup( C2:C, { C2:C, row(C2:C) }, 2, false )
) ^ -1 )
}
)
```
Then use `filter()` in `Reports!F5`, like this:
```
=sum( iferror( filter(
Data!... |
160,714 | <p>I have 2 numbers in 2 columns. I am trying to get ranges of numbers between those two numbers.</p>
<p>For example, when I have 1330 in 1st column and 1335 in second column, I want this result:</p>
<pre><code>1330
1331
1332
1333
1334
1335
</code></pre>
<p>My spreadsheet: <a href="https://docs.google.com/spreadsheets/... | [
{
"answer_id": 160715,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 0,
"selected": false,
"text": "<p>You can get the sequence <code>1330 1331 1332 1333 1334 1335</code> like this:</p>\n<p><code>=iferror( se... | 2021/12/13 | [
"https://webapps.stackexchange.com/questions/160714",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/276710/"
] | I have 2 numbers in 2 columns. I am trying to get ranges of numbers between those two numbers.
For example, when I have 1330 in 1st column and 1335 in second column, I want this result:
```
1330
1331
1332
1333
1334
1335
```
My spreadsheet: [Range of number between two number google sheet](https://docs.google.com/sp... | I wouldn't recommend placing your formula *below* your raw data columns, because it would prevent your raw data in Columns A and B from expanding downward. Instead place your results off to the right somewhere (or in another sheet).
That said, based on the data in your sample spreadsheet, try first deleting everything... |
161,920 | <p>I have content like "3 4 5; 5 6 7; 8 9 10" in a cell and I would like to split it by the semicolons so that I have "3 4 5", "5 6 7", and "8 9 10" in three cells.</p>
<p>SPLIT() normally does this fine, but the problem is that Google Sheets keeps on interpreting the content as ... | [
{
"answer_id": 161921,
"author": "onigame",
"author_id": 242809,
"author_profile": "https://webapps.stackexchange.com/users/242809",
"pm_score": 0,
"selected": false,
"text": "<p>I eventually found a workaround:</p>\n<pre><code>=SPLIT(CONCAT("'",REGEXREPLACE(A5,"\\; "... | 2021/12/25 | [
"https://webapps.stackexchange.com/questions/161920",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/242809/"
] | I have content like "3 4 5; 5 6 7; 8 9 10" in a cell and I would like to split it by the semicolons so that I have "3 4 5", "5 6 7", and "8 9 10" in three cells.
SPLIT() normally does this fine, but the problem is that Google Sheets keeps on interpreting the content as a date. Selecting "Plain Text" doesn't help becau... | If the number of groups to extract is always the same, you can use `regexextract()`, like this:
```
=regexextract(A1, rept("([\d ]+)[^\d]*", 3))
```
To process all of column `A1:A`, use an array formula, like this:
```
=arrayformula(
iferror(
regexextract(A1:A, rept("([\d ]+)[^\d]*", 3))
)
)
```
If th... |
161,929 | <p>If I have a lot of numbers in thousands and I don't want to use regexp to append to them three zeros to see the real number how can I proceed? I didn't found yet a formatting solution or any other solution.</p>
<p>The data sets are companies Balance Sheets like this:
<a href="https://i.stack.imgur.com/lWL8y.png" rel... | [
{
"answer_id": 161930,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": true,
"text": "<p>To show the report in full numbers, <strong>Insert > Sheet</strong> and put this formula in cell <code>... | 2021/12/25 | [
"https://webapps.stackexchange.com/questions/161929",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/288779/"
] | If I have a lot of numbers in thousands and I don't want to use regexp to append to them three zeros to see the real number how can I proceed? I didn't found yet a formatting solution or any other solution.
The data sets are companies Balance Sheets like this:
[ * (row(Sheet1!A1:Z) > 2),
1000 * Sheet1!A1:Z,
Sheet1!A1:Z
)
)
```
The formula fills the whole sheet automatically, multiplying every number below... |
161,965 | <p>I've got the following data in a sheet:</p>
<pre><code>ColA ColB ColC ColD ... [lots of additional columns]
ItemA A B C
ItemB D E
ItemC F
ItemD G H
</code></pre>
<p>(table A)</p>
<p>I am trying to apply a transpose and a filter, so that I can get something like</p... | [
{
"answer_id": 161930,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": true,
"text": "<p>To show the report in full numbers, <strong>Insert > Sheet</strong> and put this formula in cell <code>... | 2021/12/28 | [
"https://webapps.stackexchange.com/questions/161965",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/288882/"
] | I've got the following data in a sheet:
```
ColA ColB ColC ColD ... [lots of additional columns]
ItemA A B C
ItemB D E
ItemC F
ItemD G H
```
(table A)
I am trying to apply a transpose and a filter, so that I can get something like
```
ColA ItemB
ColC D
ColD E
`... | To show the report in full numbers, **Insert > Sheet** and put this formula in cell `A1` of a new sheet:
```
=arrayformula(
if(
isnumber(Sheet1!A1:Z) * (row(Sheet1!A1:Z) > 2),
1000 * Sheet1!A1:Z,
Sheet1!A1:Z
)
)
```
The formula fills the whole sheet automatically, multiplying every number below... |
161,970 | <p><a href="https://i.stack.imgur.com/0TucF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0TucF.png" alt="enter image description here" /></a></p>
<p>I probably did not phrase my question accurately. Is there a way to remove the result 'a' because it fulfils the '<>1' condition? I am pretty s... | [
{
"answer_id": 161930,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 2,
"selected": true,
"text": "<p>To show the report in full numbers, <strong>Insert > Sheet</strong> and put this formula in cell <code>... | 2021/12/29 | [
"https://webapps.stackexchange.com/questions/161970",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/288889/"
] | [](https://i.stack.imgur.com/0TucF.png)
I probably did not phrase my question accurately. Is there a way to remove the result 'a' because it fulfils the '<>1' condition? I am pretty sure a mixture of query and arrayformula is needed but I can't figure... | To show the report in full numbers, **Insert > Sheet** and put this formula in cell `A1` of a new sheet:
```
=arrayformula(
if(
isnumber(Sheet1!A1:Z) * (row(Sheet1!A1:Z) > 2),
1000 * Sheet1!A1:Z,
Sheet1!A1:Z
)
)
```
The formula fills the whole sheet automatically, multiplying every number below... |
162,145 | <p>Happy 2022, all!</p>
<p>I have a table in which I'd like to have a totals row where the numbers from each column are summarized.</p>
<p>The formula below works for 2 rows (and all following columns with text in Row 2)
<code>=ArrayFormula(IF(COLUMN(2:2)=1,"TOTAL",IF(LEN(2:2)>0,A3:3+A4:4,"")))</... | [
{
"answer_id": 162148,
"author": "Tedinoz",
"author_id": 196152,
"author_profile": "https://webapps.stackexchange.com/users/196152",
"pm_score": 2,
"selected": false,
"text": "<p>This problem is complicated by requiring the formula to be in the same column as the data it is summing. But ... | 2022/01/07 | [
"https://webapps.stackexchange.com/questions/162145",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/269420/"
] | Happy 2022, all!
I have a table in which I'd like to have a totals row where the numbers from each column are summarized.
The formula below works for 2 rows (and all following columns with text in Row 2)
`=ArrayFormula(IF(COLUMN(2:2)=1,"TOTAL",IF(LEN(2:2)>0,A3:3+A4:4,"")))`
The formula below works for 3 rows (and al... | In the third scenario shown in your sample spreadsheet, put this formula in cell `A27`:
```
=arrayformula(
{
"Total",
sumif( if(row(B20:E26), column(B20:E26)), column(B20:E26), B20:E26 )
}
)
```
Then clear row 26. When adding data, insert a row *above* row 26 to ensure the range references get expan... |
162,374 | <p>I've used these link and formula on Google Sheets to auto-update currency:</p>
<pre><code>=IMPORTXML("https://tr.investing.com/currencies/gau-try";"//*[@id='last_last']")
</code></pre>
<p>However, it doesn't show anything for a while and I don't know how to update it.
I think something was change... | [
{
"answer_id": 162376,
"author": "Mikekelvin",
"author_id": 289856,
"author_profile": "https://webapps.stackexchange.com/users/289856",
"pm_score": -1,
"selected": false,
"text": "<p>If you want to import the data from another sheet, the formula that you have given is for importing data ... | 2022/01/19 | [
"https://webapps.stackexchange.com/questions/162374",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/289858/"
] | I've used these link and formula on Google Sheets to auto-update currency:
```
=IMPORTXML("https://tr.investing.com/currencies/gau-try";"//*[@id='last_last']")
```
However, it doesn't show anything for a while and I don't know how to update it.
I think something was changed "\*[@id='last\_last']" part, but I don't k... | try:
```
=IMPORTXML("https://tr.investing.com/currencies/gau-try";"//span[@data-test='instrument-price-last']")
``` |
162,492 | <p>I want to have a checkbox that have three states (instead of True and False, it will have, let’s say, 1,2,3). Visually, it can be ticked, unticked or partially ticked, or different colors set by me.</p>
<p>Use case: I want to have 31 of these checkboxes, one for each day in a month. Each represent a task I need to a... | [
{
"answer_id": 162493,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": false,
"text": "<p>Google Sheets checkboxes have three possible states:</p>\n<ul>\n<li>Blank (it looks as unchecked)</li>\n<li>Unche... | 2022/01/24 | [
"https://webapps.stackexchange.com/questions/162492",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/290109/"
] | I want to have a checkbox that have three states (instead of True and False, it will have, let’s say, 1,2,3). Visually, it can be ticked, unticked or partially ticked, or different colors set by me.
Use case: I want to have 31 of these checkboxes, one for each day in a month. Each represent a task I need to accomplish... | Use an `onEdit(e)` script, like this:
```
/**
* Simple trigger that runs each time the user hand edits the spreadsheet.
*
* @param {Object} e The onEdit() event object.
*/
function onEdit(e) {
if (!e) {
throw new Error(
'Please do not run the onEdit(e) function in the script editor window. '
+ 'It ru... |
162,516 | <p>I need to set up a scheduled vacation responder so that colleagues who are on email 24/7 don't forget that I am unavailable for rapid email replies for 3 particular half-days per week. It's getting to be a huge problem, they just can't remember my schedule.</p>
<ul>
<li>I am on an active nationwide professional lis... | [
{
"answer_id": 162493,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": false,
"text": "<p>Google Sheets checkboxes have three possible states:</p>\n<ul>\n<li>Blank (it looks as unchecked)</li>\n<li>Unche... | 2022/01/25 | [
"https://webapps.stackexchange.com/questions/162516",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/290159/"
] | I need to set up a scheduled vacation responder so that colleagues who are on email 24/7 don't forget that I am unavailable for rapid email replies for 3 particular half-days per week. It's getting to be a huge problem, they just can't remember my schedule.
* I am on an active nationwide professional listserv whose ad... | Use an `onEdit(e)` script, like this:
```
/**
* Simple trigger that runs each time the user hand edits the spreadsheet.
*
* @param {Object} e The onEdit() event object.
*/
function onEdit(e) {
if (!e) {
throw new Error(
'Please do not run the onEdit(e) function in the script editor window. '
+ 'It ru... |
162,521 | <p>I've got an issue with some time data that is exported from a program like this into cells (each number with text in each cell descending all in column a)</p>
<p>0h</p>
<p>14h</p>
<p>17h</p>
<p>17h</p>
<p>25h 30m</p>
<p>0h</p>
<p>8h 30m</p>
<p>7h</p>
<p>I need to somehow have this converted in to decimal time 25.5 t... | [
{
"answer_id": 162493,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": false,
"text": "<p>Google Sheets checkboxes have three possible states:</p>\n<ul>\n<li>Blank (it looks as unchecked)</li>\n<li>Unche... | 2022/01/25 | [
"https://webapps.stackexchange.com/questions/162521",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/290188/"
] | I've got an issue with some time data that is exported from a program like this into cells (each number with text in each cell descending all in column a)
0h
14h
17h
17h
25h 30m
0h
8h 30m
7h
I need to somehow have this converted in to decimal time 25.5 the main problem is that it has text it the cells (h and m... | Use an `onEdit(e)` script, like this:
```
/**
* Simple trigger that runs each time the user hand edits the spreadsheet.
*
* @param {Object} e The onEdit() event object.
*/
function onEdit(e) {
if (!e) {
throw new Error(
'Please do not run the onEdit(e) function in the script editor window. '
+ 'It ru... |
162,554 | <p>I have a Google spreadsheet for expenses: one column for the YYYY-MM-DD date of the expense, one column for the category, and one column for the amount. This sheet has thousands of rows. <strong>The goal is a pivot table with MM-YYYY in the column, summing amounts by the month/year.</strong></p>
<p>Usually, that's e... | [
{
"answer_id": 162493,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": false,
"text": "<p>Google Sheets checkboxes have three possible states:</p>\n<ul>\n<li>Blank (it looks as unchecked)</li>\n<li>Unche... | 2022/01/27 | [
"https://webapps.stackexchange.com/questions/162554",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/79753/"
] | I have a Google spreadsheet for expenses: one column for the YYYY-MM-DD date of the expense, one column for the category, and one column for the amount. This sheet has thousands of rows. **The goal is a pivot table with MM-YYYY in the column, summing amounts by the month/year.**
Usually, that's easy. I create the pivo... | Use an `onEdit(e)` script, like this:
```
/**
* Simple trigger that runs each time the user hand edits the spreadsheet.
*
* @param {Object} e The onEdit() event object.
*/
function onEdit(e) {
if (!e) {
throw new Error(
'Please do not run the onEdit(e) function in the script editor window. '
+ 'It ru... |
162,604 | <p>I'm looking for a Google Sheet F Function to complete column C.</p>
<p>Column C should be Low, Mid, or High. This result is based on columns A and B:</p>
<p>Low = F/F</p>
<p>Mid = P/F or F/P</p>
<p>High = P/P</p>
<p>Your help with an F Function would be appreciated. Thanks!</p>
<p><a href="https://i.stack.imgur.com/... | [
{
"answer_id": 162493,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": false,
"text": "<p>Google Sheets checkboxes have three possible states:</p>\n<ul>\n<li>Blank (it looks as unchecked)</li>\n<li>Unche... | 2022/01/28 | [
"https://webapps.stackexchange.com/questions/162604",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/290376/"
] | I'm looking for a Google Sheet F Function to complete column C.
Column C should be Low, Mid, or High. This result is based on columns A and B:
Low = F/F
Mid = P/F or F/P
High = P/P
Your help with an F Function would be appreciated. Thanks!
[](htt... | Use an `onEdit(e)` script, like this:
```
/**
* Simple trigger that runs each time the user hand edits the spreadsheet.
*
* @param {Object} e The onEdit() event object.
*/
function onEdit(e) {
if (!e) {
throw new Error(
'Please do not run the onEdit(e) function in the script editor window. '
+ 'It ru... |
162,628 | <p>I would like to create a Google spreadsheet for grading students' homework. There are 8 rubrics (columns). In each rubric, there should be three levels: "good", "mediocre", "bad". They are worth, respectively, 2 points, 1 point and 0 points. The total grade is the sum of the grades in a... | [
{
"answer_id": 162632,
"author": "ztiaa",
"author_id": 290033,
"author_profile": "https://webapps.stackexchange.com/users/290033",
"pm_score": 2,
"selected": false,
"text": "<p>Try this out in J2</p>\n<pre><code>=index(if(A2:A="",,mmult(--switch(B2:I,"Good",2,"Me... | 2022/01/29 | [
"https://webapps.stackexchange.com/questions/162628",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/20387/"
] | I would like to create a Google spreadsheet for grading students' homework. There are 8 rubrics (columns). In each rubric, there should be three levels: "good", "mediocre", "bad". They are worth, respectively, 2 points, 1 point and 0 points. The total grade is the sum of the grades in all 8 columns.
I found [here](htt... | you can get the same result with this calculation, extended to all student rows and easier to understand:
```
=if(A2:A = "" ,"",sum(switch(B2:I2,"Good",2,"Mediocre",1,0)))
``` |
162,663 | <p>I've used PowerPoint almost all my life - have used Star/Open/Libre Office Presentations as well without much issue. I'm relatively new at using Google Slides.</p>
<p>Here's what I want:
I'm using the built in shape "Flow Chart Offpage Connector". Basically, a rectangle with a triangle pointing down. I hav... | [
{
"answer_id": 162632,
"author": "ztiaa",
"author_id": 290033,
"author_profile": "https://webapps.stackexchange.com/users/290033",
"pm_score": 2,
"selected": false,
"text": "<p>Try this out in J2</p>\n<pre><code>=index(if(A2:A="",,mmult(--switch(B2:I,"Good",2,"Me... | 2022/01/31 | [
"https://webapps.stackexchange.com/questions/162663",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/105461/"
] | I've used PowerPoint almost all my life - have used Star/Open/Libre Office Presentations as well without much issue. I'm relatively new at using Google Slides.
Here's what I want:
I'm using the built in shape "Flow Chart Offpage Connector". Basically, a rectangle with a triangle pointing down. I have it rotated 270 de... | you can get the same result with this calculation, extended to all student rows and easier to understand:
```
=if(A2:A = "" ,"",sum(switch(B2:I2,"Good",2,"Mediocre",1,0)))
``` |
162,751 | <p>I'm making a list to compare who's leading the "most watched films" race, using <code>IMPORTXML()</code> to scrap information from Letterboxd and <code>SORT()</code>.</p>
<p>The thing is that Letterboxd uses commas as thousand separator, and <code>SORT()</code> thinks it is a decimal separator. Because of ... | [
{
"answer_id": 162632,
"author": "ztiaa",
"author_id": 290033,
"author_profile": "https://webapps.stackexchange.com/users/290033",
"pm_score": 2,
"selected": false,
"text": "<p>Try this out in J2</p>\n<pre><code>=index(if(A2:A="",,mmult(--switch(B2:I,"Good",2,"Me... | 2022/02/04 | [
"https://webapps.stackexchange.com/questions/162751",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/290142/"
] | I'm making a list to compare who's leading the "most watched films" race, using `IMPORTXML()` to scrap information from Letterboxd and `SORT()`.
The thing is that Letterboxd uses commas as thousand separator, and `SORT()` thinks it is a decimal separator. Because of this, it puts the highest number down below the list... | you can get the same result with this calculation, extended to all student rows and easier to understand:
```
=if(A2:A = "" ,"",sum(switch(B2:I2,"Good",2,"Mediocre",1,0)))
``` |
162,768 | <p>I want to fill the column which is named as "Country Final".
Logic is like this:</p>
<ol>
<li>Choose the values from "Country" column.</li>
<li>If the cell from "Country" column is empty, pick values from "Country(L)" column.</li>
<li>If both are empty, keep it empty.</li>
</o... | [
{
"answer_id": 162632,
"author": "ztiaa",
"author_id": 290033,
"author_profile": "https://webapps.stackexchange.com/users/290033",
"pm_score": 2,
"selected": false,
"text": "<p>Try this out in J2</p>\n<pre><code>=index(if(A2:A="",,mmult(--switch(B2:I,"Good",2,"Me... | 2022/02/05 | [
"https://webapps.stackexchange.com/questions/162768",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/292361/"
] | I want to fill the column which is named as "Country Final".
Logic is like this:
1. Choose the values from "Country" column.
2. If the cell from "Country" column is empty, pick values from "Country(L)" column.
3. If both are empty, keep it empty.

I ... | you can get the same result with this calculation, extended to all student rows and easier to understand:
```
=if(A2:A = "" ,"",sum(switch(B2:I2,"Good",2,"Mediocre",1,0)))
``` |
163,133 | <p>I'm trying to create another formula for my project.</p>
<p>I'm using <code>VLOOKUP</code> to search for a variable, and return values related to that variable on a single Cell.</p>
<p>Here is what I'm working With</p>
<pre><code>Sheet A
A | B
Users Total Number
User 1
User 2
User 3 ... | [
{
"answer_id": 162787,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 0,
"selected": false,
"text": "<p>I think that your better option is to add a new row when the year change, like the one I added in you sheet, ... | 2022/02/24 | [
"https://webapps.stackexchange.com/questions/163133",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/291790/"
] | I'm trying to create another formula for my project.
I'm using `VLOOKUP` to search for a variable, and return values related to that variable on a single Cell.
Here is what I'm working With
```
Sheet A
A | B
Users Total Number
User 1
User 2
User 3 1,2,4,7
Sheet B
A ... | There must be many ways to arrive at an answer to this question. I don't claim that the methods used in *this* answer are necessarily the most efficient, but they *do* work, and someone (maybe the OP) maybe able to improve upon them.
[](https://i.stack.imgur.com/55luW.jpg)
... |
163,324 | <p>I'm using the <a href="https://support.google.com/docs/answer/3094079?hl=en" rel="nofollow noreferrer">LEFT</a> function like this:</p>
<pre><code>LEFT("Lorem Ipsum", 5)
</code></pre>
<p>Is it possible to get hold of the original text ("Lorem Ipsum") from a cell in which the formula above is used... | [
{
"answer_id": 163329,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 0,
"selected": false,
"text": "<p>start with:</p>\n<p>=FORMULATEXT(A2)</p>\n<p>if A2 contains LEFT("Lorem Ipsum", 5)</p>\n"
},
{
... | 2022/03/06 | [
"https://webapps.stackexchange.com/questions/163324",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/192141/"
] | I'm using the [LEFT](https://support.google.com/docs/answer/3094079?hl=en) function like this:
```
LEFT("Lorem Ipsum", 5)
```
Is it possible to get hold of the original text ("Lorem Ipsum") from a cell in which the formula above is used? If I just reference the cell I get just "Lorem". | There are a lot of unknowns here as to actual usage. But assuming the `LEFT` formula were in A2, the following formula would work in a number of cases:
`=IFERROR(IF(REGEXMATCH(FORMULATEXT(A2),CHAR(34)&".+"&CHAR(34)),REGEXEXTRACT(FORMULATEXT(A2),CHAR(34)&"(.+)"&CHAR(34)),INDIRECT(REGEXEXTRACT(FORMULATEXT(A2),"\(([^,]+)... |
163,350 | <p>Been using the following function to generate the sum of same-colored cells:</p>
<pre><code>function sumColoredCells(sumRange,colorRef,test) {
var activeRg = SpreadsheetApp.getActiveRange();
var activeSht = SpreadsheetApp.getActiveSheet();
var activeformula = activeRg.getFormula();
var countRangeAddress = ac... | [
{
"answer_id": 163359,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 1,
"selected": false,
"text": "<p>The failure of that function is due to the regex expressions, which in the script are suitable for countries ... | 2022/03/07 | [
"https://webapps.stackexchange.com/questions/163350",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/214849/"
] | Been using the following function to generate the sum of same-colored cells:
```
function sumColoredCells(sumRange,colorRef,test) {
var activeRg = SpreadsheetApp.getActiveRange();
var activeSht = SpreadsheetApp.getActiveSheet();
var activeformula = activeRg.getFormula();
var countRangeAddress = activeformula.m... | The failure of that function is due to the regex expressions, which in the script are suitable for countries where the comma is used as a separator.
If you're using another country's settings instead, which use semicolons, you'll need to make two small changes to the script:
**row 5**
from: `activeformula.match(/\((.*... |
163,446 | <p>Suppose I have in a cell the following unsorted list-like text:</p>
<pre><code>- VAL03
- VAL04
- VAL01
- VAL05
- VAL10
- VAL07
- VAL08
- VAL06
- VAL02
- VAL09
</code></pre>
<p>I would like to sort that list-like text. That is, in another cell I would like to get this:</p>
<pre><code>- VAL01
- VAL02
- VAL03
- VAL04
-... | [
{
"answer_id": 163450,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": -1,
"selected": false,
"text": "<p>that type of list will sort normally with the "sort range A to Z" <strong>Data's</strong> submenu<... | 2022/03/12 | [
"https://webapps.stackexchange.com/questions/163446",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/12518/"
] | Suppose I have in a cell the following unsorted list-like text:
```
- VAL03
- VAL04
- VAL01
- VAL05
- VAL10
- VAL07
- VAL08
- VAL06
- VAL02
- VAL09
```
I would like to sort that list-like text. That is, in another cell I would like to get this:
```
- VAL01
- VAL02
- VAL03
- VAL04
- VAL05
- VAL06
- VAL07
- VAL08
- V... | Please see my important comment to your original post. However, if I go only by what is included in your post (i.e., that there is *one* cell with alphanumeric data wherein all numeric portions are normalized to contain the same number of digits and where each element is separated by a line break), then the solution be... |
163,491 | <p>In Row 1 of <a href="https://docs.google.com/spreadsheets/d/1m-Y-T3WUv9wMmy_A5sYuppgSoeW1wcNGQkk2DYqbRH0/edit#gid=0" rel="nofollow noreferrer">this sheet</a> I have formulas like <code>=ArrayFormula(sum(if(and(not(ISBLANK(C$4:C$49)),$A$4:$A$49>=$A$1),1,0)))</code>.</p>
<p><a href="https://i.stack.imgur.com/XQ1eC.... | [
{
"answer_id": 163495,
"author": "ztiaa",
"author_id": 290033,
"author_profile": "https://webapps.stackexchange.com/users/290033",
"pm_score": 0,
"selected": false,
"text": "<p>You can try the following in C1 and drag it to F1:</p>\n<pre><code>=sumif($A4:$A,">="&A1,C4:C)... | 2022/03/15 | [
"https://webapps.stackexchange.com/questions/163491",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/27487/"
] | In Row 1 of [this sheet](https://docs.google.com/spreadsheets/d/1m-Y-T3WUv9wMmy_A5sYuppgSoeW1wcNGQkk2DYqbRH0/edit#gid=0) I have formulas like `=ArrayFormula(sum(if(and(not(ISBLANK(C$4:C$49)),$A$4:$A$49>=$A$1),1,0)))`.
[](https://i.stack.imgur.com/XQ1eC.pn... | Please try either of the following (simpler) formulas
```
=COUNTIFS($A$4:$A$49,">="&$A$1,C4:C49,"<>")
```
OR (if you really want an array)
```
=SUM(INDEX(IF(($A$4:$A$49>=$A$1)*(C4:C49<>""),1)))
```
[](https://i.stack.imgur.com/gOb6P.png)
Functio... |
163,504 | <p>I have a Google Sheet with a lot of columns, each of them containing words from a category. I would love to create a formula that can retrieve random words and put them together.
For example:</p>
<pre><code>Colum 1 [cute, fav, dear, great]
Column 2 [love, friends, family, peers]
</code></pre>
<p>With the formula you... | [
{
"answer_id": 163495,
"author": "ztiaa",
"author_id": 290033,
"author_profile": "https://webapps.stackexchange.com/users/290033",
"pm_score": 0,
"selected": false,
"text": "<p>You can try the following in C1 and drag it to F1:</p>\n<pre><code>=sumif($A4:$A,">="&A1,C4:C)... | 2022/03/16 | [
"https://webapps.stackexchange.com/questions/163504",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/292845/"
] | I have a Google Sheet with a lot of columns, each of them containing words from a category. I would love to create a formula that can retrieve random words and put them together.
For example:
```
Colum 1 [cute, fav, dear, great]
Column 2 [love, friends, family, peers]
```
With the formula you get a random mix e.g. "... | Please try either of the following (simpler) formulas
```
=COUNTIFS($A$4:$A$49,">="&$A$1,C4:C49,"<>")
```
OR (if you really want an array)
```
=SUM(INDEX(IF(($A$4:$A$49>=$A$1)*(C4:C49<>""),1)))
```
[](https://i.stack.imgur.com/gOb6P.png)
Functio... |
163,575 | <p>Accidentally clicked that little numbering menu next to the paragraph type menu and now all my headings have numbers on them:</p>
<pre><code>1. Basics
...
1.1 Overview
</code></pre>
<p>and so forth. How can I make those go away again? All the googling I've done turned up results like how to remove the numbering pl... | [
{
"answer_id": 165357,
"author": "chris chuba",
"author_id": 297549,
"author_profile": "https://webapps.stackexchange.com/users/297549",
"pm_score": -1,
"selected": false,
"text": "<p>Same thing happened to me, it's an amazingly bad interface, even word gives you the option of selecting ... | 2022/03/19 | [
"https://webapps.stackexchange.com/questions/163575",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/97042/"
] | Accidentally clicked that little numbering menu next to the paragraph type menu and now all my headings have numbers on them:
```
1. Basics
...
1.1 Overview
```
and so forth. How can I make those go away again? All the googling I've done turned up results like how to remove the numbering plugin or how to disable f... | Click it again. That'll turn it off. The "little numbering menu" evidently works like a toggle switch. |
163,619 | <p>I hope this all comes out clearly, I am in need of some help to save some major time.</p>
<p><em>This is for sports betting tracking systems.</em></p>
<p>I am trying to create a conditional format to where when I enter a value in a cell, it will either change the font to "Green" or "Red" based on... | [
{
"answer_id": 165357,
"author": "chris chuba",
"author_id": 297549,
"author_profile": "https://webapps.stackexchange.com/users/297549",
"pm_score": -1,
"selected": false,
"text": "<p>Same thing happened to me, it's an amazingly bad interface, even word gives you the option of selecting ... | 2022/03/21 | [
"https://webapps.stackexchange.com/questions/163619",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/-1/"
] | I hope this all comes out clearly, I am in need of some help to save some major time.
*This is for sports betting tracking systems.*
I am trying to create a conditional format to where when I enter a value in a cell, it will either change the font to "Green" or "Red" based on the value of a different cell on a separa... | Click it again. That'll turn it off. The "little numbering menu" evidently works like a toggle switch. |
163,681 | <p>I am trying to convert the Google Sheets into JSON format using Google App Script.<br />
It worked but I am not getting the right format and I am little struck.</p>
<p>My sheet looks something like this in the image</p>
<p><a href="https://i.stack.imgur.com/ktKWx.png" rel="nofollow noreferrer"><img src="https://i.st... | [
{
"answer_id": 163636,
"author": "David Tan",
"author_id": 293022,
"author_profile": "https://webapps.stackexchange.com/users/293022",
"pm_score": 1,
"selected": false,
"text": "<p>Link to my sheet: <a href=\"https://docs.google.com/spreadsheets/d/19wEySRlrXNsEy49vavXi5lBNnqRv0W4PqLACI_M... | 2022/03/25 | [
"https://webapps.stackexchange.com/questions/163681",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/293233/"
] | I am trying to convert the Google Sheets into JSON format using Google App Script.
It worked but I am not getting the right format and I am little struck.
My sheet looks something like this in the image
[](https://i.stack.imgur.com/ktKWx.png)
Then I am running ... | Given your sample data (wherein the "Leader" is always first in each grouping), clear Column C entirely (including the header) and place the following in C1:
`=ArrayFormula({"Leader";IF(A2:A="",,VLOOKUP(B2:B,{B2:B,REGEXREPLACE(A2:A,"[\s-]*Leader","")},2,FALSE))})`
This will produce the header (which you can change as... |
163,835 | <p>I have a real estate company and have a spreadsheet that tabulates all the data on our closed deals. One column is the date that the property closed. I am trying to figure out a formula that automatically counts the cells(closed deals) from the closed date column that will then put that number in a summary column of... | [
{
"answer_id": 163845,
"author": "daphneml",
"author_id": 293608,
"author_profile": "https://webapps.stackexchange.com/users/293608",
"pm_score": 1,
"selected": false,
"text": "<p>Instead of using countif, try countifs (with the s at the end):</p>\n<pre><code>=COUNTIFS(D1:D24,">=... | 2022/04/01 | [
"https://webapps.stackexchange.com/questions/163835",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/293591/"
] | I have a real estate company and have a spreadsheet that tabulates all the data on our closed deals. One column is the date that the property closed. I am trying to figure out a formula that automatically counts the cells(closed deals) from the closed date column that will then put that number in a summary column of de... | Instead of using countif, try countifs (with the s at the end):
```
=COUNTIFS(D1:D24,">=01/01/2022",D1:D24,"<=30/01/2022")
```
If it doesn't work, show (share or make a similar sample) your spreadsheet. Visualizing it makes it easier to help... |
163,856 | <p>I have a roster that has (on sheet 1 ('Roster')): Name, 1st Week of Attendance, 2nd Week of Attendance, and then other non-relevant data.</p>
<p>On the second sheet ('Contact Info' it has Name, a cell that combines the text from 1st week and 2nd week, and then contact data columns (phone, email, address, etc.).</p>
... | [
{
"answer_id": 163845,
"author": "daphneml",
"author_id": 293608,
"author_profile": "https://webapps.stackexchange.com/users/293608",
"pm_score": 1,
"selected": false,
"text": "<p>Instead of using countif, try countifs (with the s at the end):</p>\n<pre><code>=COUNTIFS(D1:D24,">=... | 2022/04/02 | [
"https://webapps.stackexchange.com/questions/163856",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/293629/"
] | I have a roster that has (on sheet 1 ('Roster')): Name, 1st Week of Attendance, 2nd Week of Attendance, and then other non-relevant data.
On the second sheet ('Contact Info' it has Name, a cell that combines the text from 1st week and 2nd week, and then contact data columns (phone, email, address, etc.).
The importan... | Instead of using countif, try countifs (with the s at the end):
```
=COUNTIFS(D1:D24,">=01/01/2022",D1:D24,"<=30/01/2022")
```
If it doesn't work, show (share or make a similar sample) your spreadsheet. Visualizing it makes it easier to help... |
163,946 | <p>I am downloading the "Data" report from the system, in which the order of the columns may be different, but their headers will always be the same and the first "ID" column will always be the first. I need values to be displayed in the "Report", where from the "data" sheet it w... | [
{
"answer_id": 163953,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 0,
"selected": false,
"text": "<p>It is certainly not the most elegant but I have solved the problem with this formula:</p>\n<pre><code>=QUERY(... | 2022/04/07 | [
"https://webapps.stackexchange.com/questions/163946",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/289328/"
] | I am downloading the "Data" report from the system, in which the order of the columns may be different, but their headers will always be the same and the first "ID" column will always be the first. I need values to be displayed in the "Report", where from the "data" sheet it will search for a value where the row will a... | Delete everything in your Report sheet from B2 down and to the right (i.e., all you should have left is data in Col A and Row 1).
Place the following formula in cell B2:
`=ArrayFormula(IF(A2:A="",,IFERROR(VLOOKUP(A2:A,Data!A:H,HLOOKUP(FILTER(B1:1,B1:1<>""),{Data!1:1;COLUMN(Data!1:1)},2,FALSE),FALSE),"???")))`
This w... |
163,997 | <p>I have a sheet with a large table of data with a header for each column. I want to import a specific column to another sheet using the header name. I am using the below formula to do so (which has worked in the past).</p>
<p><code>=QUERY(Schedule!D:BW, "SELECT" & SUBSTITUTE(ADDRESS(1,MATCH(H1,Schedule!... | [
{
"answer_id": 164000,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 1,
"selected": false,
"text": "<p>You have to place a space between SELECT and the column letter, resulting from that calculation.\nThe error: ... | 2022/04/10 | [
"https://webapps.stackexchange.com/questions/163997",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/293964/"
] | I have a sheet with a large table of data with a header for each column. I want to import a specific column to another sheet using the header name. I am using the below formula to do so (which has worked in the past).
`=QUERY(Schedule!D:BW, "SELECT" & SUBSTITUTE(ADDRESS(1,MATCH(H1,Schedule!D1:BW1,0),4),1,""))`
Howeve... | You have to place a space between SELECT and the column letter, resulting from that calculation.
The error: "SELECTD " said you something :)
I think that this will solve the problem:
```
=QUERY(Schedule!D:BW, "SELECT " & SUBSTITUTE(ADDRESS(1,MATCH(H1,Schedule!D1:BW1,0),4),1,""))
``` |
164,002 | <p>Every now and then I see this little red dot on the tab (which I'm assuming is shown to indicate a new incoming/unread email). I use the web version of Outlook FWIW.
<br />
<a href="https://i.stack.imgur.com/0hkPr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0hkPr.png" alt="enter image descript... | [
{
"answer_id": 164000,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 1,
"selected": false,
"text": "<p>You have to place a space between SELECT and the column letter, resulting from that calculation.\nThe error: ... | 2022/04/11 | [
"https://webapps.stackexchange.com/questions/164002",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/38806/"
] | Every now and then I see this little red dot on the tab (which I'm assuming is shown to indicate a new incoming/unread email). I use the web version of Outlook FWIW.
[](https://i.stack.imgur.com/0hkPr.png)
However, when I switch back to the tab, I do... | You have to place a space between SELECT and the column letter, resulting from that calculation.
The error: "SELECTD " said you something :)
I think that this will solve the problem:
```
=QUERY(Schedule!D:BW, "SELECT " & SUBSTITUTE(ADDRESS(1,MATCH(H1,Schedule!D1:BW1,0),4),1,""))
``` |
164,193 | <p>I am using:</p>
<pre><code>=TEXT({K24}, "ddd")
</code></pre>
<p>But is K24 is blank then the results always equals "Sat" how can I get a blank K24 to result in ""?</p>
| [
{
"answer_id": 164194,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": -1,
"selected": false,
"text": "<p>Try this one, for example:</p>\n<p><strike>=iferror(TEXT({K24}, "ddd"))</strike></p>\n<p>Since thi... | 2022/04/23 | [
"https://webapps.stackexchange.com/questions/164193",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/294539/"
] | I am using:
```
=TEXT({K24}, "ddd")
```
But is K24 is blank then the results always equals "Sat" how can I get a blank K24 to result in ""? | Use `if()`, like this:
`=if(K24, text(K24, "ddd"), iferror(1/0))`
Alternatively, use **Format > Number > Custom date and time** to set the date format to **Day as abbreviation**. |
164,276 | <p>This is probably a bit of a noob question, but I've been using a very (very!) simple sheet to keep track of the hymns we sing at our church, and how often, and that's been easy to set up. But what would be really helpful is another column that says when each hymn was last sung (so we know if it was sung only two wee... | [
{
"answer_id": 164282,
"author": "Oren",
"author_id": 201004,
"author_profile": "https://webapps.stackexchange.com/users/201004",
"pm_score": 0,
"selected": false,
"text": "<p>the formula for column C should be:</p>\n<p><code>=maxifs(D1:V1,D2:V2,1)</code></p>\n<p>It calculates the larges... | 2022/04/28 | [
"https://webapps.stackexchange.com/questions/164276",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/294746/"
] | This is probably a bit of a noob question, but I've been using a very (very!) simple sheet to keep track of the hymns we sing at our church, and how often, and that's been easy to set up. But what would be really helpful is another column that says when each hymn was last sung (so we know if it was sung only two weeks ... | this formula gets always the date when each hymn was last sung and works with cells that mix date and text
```
=iferror(LOOKUP(1, D2:2, $D$1:$1))
```
The formula is draggable as is.
If the song was never sung, returns an empty result.
See for example:
1. God is Working His Purpose Out
2. Lift high the cross
3. Song... |
164,291 | <p>I have a string like:</p>
<pre><code>Season_Week_Campaign_Audience_Sender_20AUG2020_A
</code></pre>
<p>I want to extract the string "20AUG2020", so I entered the following formula:</p>
<pre><code>=INDEX(SPLIT('Raw Data'!A2:A,"_"),,6)
</code></pre>
<p>However it's returning the number <code>44671<... | [
{
"answer_id": 164295,
"author": "tomf",
"author_id": 229886,
"author_profile": "https://webapps.stackexchange.com/users/229886",
"pm_score": 2,
"selected": true,
"text": "<p>You can use TEXT with UPPER to get around that</p>\n<pre><code>=ARRAYFORMULA(\n IF(ISBLANK('Raw Data'!A2:A),,\n ... | 2022/04/28 | [
"https://webapps.stackexchange.com/questions/164291",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/294767/"
] | I have a string like:
```
Season_Week_Campaign_Audience_Sender_20AUG2020_A
```
I want to extract the string "20AUG2020", so I entered the following formula:
```
=INDEX(SPLIT('Raw Data'!A2:A,"_"),,6)
```
However it's returning the number `44671`. I haven't been able to find any formula that will allow me to keep t... | You can use TEXT with UPPER to get around that
```
=ARRAYFORMULA(
IF(ISBLANK('Raw Data'!A2:A),,
UPPER(
TEXT(
INDEX(SPLIT('Raw Data'!A2:A,"_"),,6),
"DDMMMYYY"))))
```
or use a little REGEX to pull the string directly
```
=ARRAYFORMULA(
IF(ISBLANK(A2:A),,
REGEXEXTRACT(A2:A,".*_(\w+)_")))
```
... |
164,296 | <p>I've created a spreadsheet to keep track of the progress that my friends are making in a competition we're doing. I would like google sheets to automatically update which one of us comes in 1st, 2nd, and 3rd based on the values in other cells. For instance, if I were to come in first, I would enter "Win" i... | [
{
"answer_id": 164295,
"author": "tomf",
"author_id": 229886,
"author_profile": "https://webapps.stackexchange.com/users/229886",
"pm_score": 2,
"selected": true,
"text": "<p>You can use TEXT with UPPER to get around that</p>\n<pre><code>=ARRAYFORMULA(\n IF(ISBLANK('Raw Data'!A2:A),,\n ... | 2022/04/28 | [
"https://webapps.stackexchange.com/questions/164296",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/294772/"
] | I've created a spreadsheet to keep track of the progress that my friends are making in a competition we're doing. I would like google sheets to automatically update which one of us comes in 1st, 2nd, and 3rd based on the values in other cells. For instance, if I were to come in first, I would enter "Win" into a cell, w... | You can use TEXT with UPPER to get around that
```
=ARRAYFORMULA(
IF(ISBLANK('Raw Data'!A2:A),,
UPPER(
TEXT(
INDEX(SPLIT('Raw Data'!A2:A,"_"),,6),
"DDMMMYYY"))))
```
or use a little REGEX to pull the string directly
```
=ARRAYFORMULA(
IF(ISBLANK(A2:A),,
REGEXEXTRACT(A2:A,".*_(\w+)_")))
```
... |
164,324 | <p>I'm looking for guidance on how to set up my Apps Script file to transpose data from one tab to another. A sample file of my data can be found <a href="https://docs.google.com/spreadsheets/d/1NDK80yNmAPCuHhAJvllVhtu3oOC7k9e4rGxDtDkySs4/edit#gid=0" rel="nofollow noreferrer">here</a>.</p>
<p>I currently have 10 column... | [
{
"answer_id": 164295,
"author": "tomf",
"author_id": 229886,
"author_profile": "https://webapps.stackexchange.com/users/229886",
"pm_score": 2,
"selected": true,
"text": "<p>You can use TEXT with UPPER to get around that</p>\n<pre><code>=ARRAYFORMULA(\n IF(ISBLANK('Raw Data'!A2:A),,\n ... | 2022/05/01 | [
"https://webapps.stackexchange.com/questions/164324",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/294852/"
] | I'm looking for guidance on how to set up my Apps Script file to transpose data from one tab to another. A sample file of my data can be found [here](https://docs.google.com/spreadsheets/d/1NDK80yNmAPCuHhAJvllVhtu3oOC7k9e4rGxDtDkySs4/edit#gid=0).
I currently have 10 columns in the rawData tab: [date], [submitter], [pr... | You can use TEXT with UPPER to get around that
```
=ARRAYFORMULA(
IF(ISBLANK('Raw Data'!A2:A),,
UPPER(
TEXT(
INDEX(SPLIT('Raw Data'!A2:A,"_"),,6),
"DDMMMYYY"))))
```
or use a little REGEX to pull the string directly
```
=ARRAYFORMULA(
IF(ISBLANK(A2:A),,
REGEXEXTRACT(A2:A,".*_(\w+)_")))
```
... |
164,421 | <p>Looking to countifs data from another workbook with multiple criteria.</p>
<p>So far I have</p>
<pre><code>=COUNTIFS(IMPORTRANGE("URL", "Data save!$A$2:$A$5011"),">=01/04/2022")
</code></pre>
<p>This returns a count of every time a date is found <code>>=01/04/2022</code></p>
<p>I ... | [
{
"answer_id": 164451,
"author": "supreeth guptha",
"author_id": 295079,
"author_profile": "https://webapps.stackexchange.com/users/295079",
"pm_score": -1,
"selected": false,
"text": "<p>Try using query function (use "Select * where ", and you can add multiple criteria with on... | 2022/05/06 | [
"https://webapps.stackexchange.com/questions/164421",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/294764/"
] | Looking to countifs data from another workbook with multiple criteria.
So far I have
```
=COUNTIFS(IMPORTRANGE("URL", "Data save!$A$2:$A$5011"),">=01/04/2022")
```
This returns a count of every time a date is found `>=01/04/2022`
I need to add in additional conditions:
```
A2:A,<=today
G2:G, "Partner"
```
I'm n... | The range for date is not the same as the range for the "partner" designation. So, you need to identify separate criteria ranges for each element of your parameters
Say you data looks like this:
[](https://i.stack.imgur.com/k6HZB.jpg)
Then your formula needs to addr... |
164,425 | <p>I'm creating a sheet for my baby milk consumption and I'm trying to have a sum of the milk drank each day.</p>
<p>Here is a picture of the sheet in question:
<a href="https://i.stack.imgur.com/qrPF0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qrPF0.png" alt="enter image description here" /></a... | [
{
"answer_id": 164429,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 3,
"selected": true,
"text": "<p>If you can repeat the date on every row, use <code>query()</code> to aggregate the quantities by day. Put ... | 2022/05/07 | [
"https://webapps.stackexchange.com/questions/164425",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/295122/"
] | I'm creating a sheet for my baby milk consumption and I'm trying to have a sum of the milk drank each day.
Here is a picture of the sheet in question:
[](https://i.stack.imgur.com/qrPF0.png)
Now I don't know how to select the value in column C for ea... | If you can repeat the date on every row, use `query()` to aggregate the quantities by day. Put this formula in cell `E1` or another free range outside of `A1:D`:
```
=query(
A1:D,
"select A, sum(C)
where A is not null
group by A",
0
)
```
If you cannot repeat the date on each row for some reason, u... |
164,426 | <p>I am writing a Google Sheet that checks a student's year level, then assigns a letter grade based on their mark in an assessment. If there is no mark, it is designed to leave the cell blank.</p>
<p>The following formula is successful if a bit clunky. Is there a more elegant solution to this problem?</p>
<p><code>=IF... | [
{
"answer_id": 164429,
"author": "doubleunary",
"author_id": 269219,
"author_profile": "https://webapps.stackexchange.com/users/269219",
"pm_score": 3,
"selected": true,
"text": "<p>If you can repeat the date on every row, use <code>query()</code> to aggregate the quantities by day. Put ... | 2022/05/07 | [
"https://webapps.stackexchange.com/questions/164426",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/295125/"
] | I am writing a Google Sheet that checks a student's year level, then assigns a letter grade based on their mark in an assessment. If there is no mark, it is designed to leave the cell blank.
The following formula is successful if a bit clunky. Is there a more elegant solution to this problem?
`=IF(COUNTBLANK(AA12)>=1... | If you can repeat the date on every row, use `query()` to aggregate the quantities by day. Put this formula in cell `E1` or another free range outside of `A1:D`:
```
=query(
A1:D,
"select A, sum(C)
where A is not null
group by A",
0
)
```
If you cannot repeat the date on each row for some reason, u... |
164,437 | <p>I've got a long email string in Gmail that I want to export a PDF of.</p>
<p>I use Gmail web client on my computer running the latest version of chrome (as of the time of writing 100.x)</p>
<p>I would normally just go to the print icon in Gmail and then print as PDF, but this includes all of the emails, plus all of ... | [
{
"answer_id": 164439,
"author": "mhoran_psprep",
"author_id": 15682,
"author_profile": "https://webapps.stackexchange.com/users/15682",
"pm_score": 0,
"selected": false,
"text": "<p>I am using Firefox, I assume the same thing exists in Chrome.</p>\n<p>I found a conversation of 8 message... | 2022/05/08 | [
"https://webapps.stackexchange.com/questions/164437",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/21773/"
] | I've got a long email string in Gmail that I want to export a PDF of.
I use Gmail web client on my computer running the latest version of chrome (as of the time of writing 100.x)
I would normally just go to the print icon in Gmail and then print as PDF, but this includes all of the emails, plus all of the previous em... | Use JavaScript, the [DOM Web API](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model) and a CSS selector to hide the quoted messages.
One way to do this is the following:
1. Open the conversation and click the print button.
This will open a new window/tab showing the conversation to be printed and... |
164,453 | <p>I want to be able to impose the formatting of a string that is part of a string concatenation within a cell formula, ideally depending on the value of another cell. Something like :</p>
<pre><code>="This is " & FORMATSTRING(IF(A1,"bold", "normal"),"bold text")
</code></pre... | [
{
"answer_id": 164439,
"author": "mhoran_psprep",
"author_id": 15682,
"author_profile": "https://webapps.stackexchange.com/users/15682",
"pm_score": 0,
"selected": false,
"text": "<p>I am using Firefox, I assume the same thing exists in Chrome.</p>\n<p>I found a conversation of 8 message... | 2022/05/09 | [
"https://webapps.stackexchange.com/questions/164453",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/291704/"
] | I want to be able to impose the formatting of a string that is part of a string concatenation within a cell formula, ideally depending on the value of another cell. Something like :
```
="This is " & FORMATSTRING(IF(A1,"bold", "normal"),"bold text")
```
Can I do this in Google sheets ? If yes, how ? | Use JavaScript, the [DOM Web API](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model) and a CSS selector to hide the quoted messages.
One way to do this is the following:
1. Open the conversation and click the print button.
This will open a new window/tab showing the conversation to be printed and... |
164,497 | <p>I have been battling to get the COUNTIFS formula right for the below. I need to count the number of events per day. How many times did the event happen between 2021-04-20 14:24:54 and 2021-04-20 19:16:13.</p>
<p>absolutely losing it.</p>
<p><a href="https://i.stack.imgur.com/yiFkw.png" rel="nofollow noreferrer"><img... | [
{
"answer_id": 164503,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 1,
"selected": false,
"text": "<p><a href=\"https://i.stack.imgur.com/5Kj2S.png\" rel=\"nofollow noreferrer\"><img src=\"https://i.stack.imgur.... | 2022/05/11 | [
"https://webapps.stackexchange.com/questions/164497",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/295316/"
] | I have been battling to get the COUNTIFS formula right for the below. I need to count the number of events per day. How many times did the event happen between 2021-04-20 14:24:54 and 2021-04-20 19:16:13.
absolutely losing it.
[](https://i.stack.imgu... | [](https://i.stack.imgur.com/5Kj2S.png)
Isn't that difficult ! :)
Try:
```
=COUNTIFS(A2:A,">="&B2 , A2:A,"<="&C2 )
``` |
164,506 | <p>I’ve got a “time tracker” Google Sheet where people need to enter a record of a start time and end time; we then have a formula which works out the duration between the two times.</p>
<p>The formula is pretty simple and works fine, but the problem is users of the spreadsheet keep entering the start and end times wro... | [
{
"answer_id": 164503,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 1,
"selected": false,
"text": "<p><a href=\"https://i.stack.imgur.com/5Kj2S.png\" rel=\"nofollow noreferrer\"><img src=\"https://i.stack.imgur.... | 2022/05/11 | [
"https://webapps.stackexchange.com/questions/164506",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/21773/"
] | I’ve got a “time tracker” Google Sheet where people need to enter a record of a start time and end time; we then have a formula which works out the duration between the two times.
The formula is pretty simple and works fine, but the problem is users of the spreadsheet keep entering the start and end times wrong eg. In... | [](https://i.stack.imgur.com/5Kj2S.png)
Isn't that difficult ! :)
Try:
```
=COUNTIFS(A2:A,">="&B2 , A2:A,"<="&C2 )
``` |
164,543 | <p>So I'm using Google sheets and I would like a cell to conditionally highlight when the cell does not have 2 specific texts.</p>
<p><a href="https://i.stack.imgur.com/mPhWe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mPhWe.png" alt="enter image description here" /></a></p>
<p>So in my example, ... | [
{
"answer_id": 164503,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 1,
"selected": false,
"text": "<p><a href=\"https://i.stack.imgur.com/5Kj2S.png\" rel=\"nofollow noreferrer\"><img src=\"https://i.stack.imgur.... | 2022/05/13 | [
"https://webapps.stackexchange.com/questions/164543",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/295402/"
] | So I'm using Google sheets and I would like a cell to conditionally highlight when the cell does not have 2 specific texts.
[](https://i.stack.imgur.com/mPhWe.png)
So in my example, I would like cell B26 to highlight ONLY if it does **not** contain N... | [](https://i.stack.imgur.com/5Kj2S.png)
Isn't that difficult ! :)
Try:
```
=COUNTIFS(A2:A,">="&B2 , A2:A,"<="&C2 )
``` |
164,566 | <p>I set a time-driven trigger to run my script, but the only choices in the pull-down menu for this are 1 hour ranges, 1-2pm, 2-3pm, etc. I chose 1-2pm, and one day the macro ran at 1:38pm and another day it ran at 1:42pm. I would really like the script to run at exactly 1pm. Is there a way to do this?</p>
| [
{
"answer_id": 164568,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 3,
"selected": true,
"text": "<p>Google Apps Script hasn't a built-in way to make a trigger to run exactly at certain time as setting a trigger to ... | 2022/05/14 | [
"https://webapps.stackexchange.com/questions/164566",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/295020/"
] | I set a time-driven trigger to run my script, but the only choices in the pull-down menu for this are 1 hour ranges, 1-2pm, 2-3pm, etc. I chose 1-2pm, and one day the macro ran at 1:38pm and another day it ran at 1:42pm. I would really like the script to run at exactly 1pm. Is there a way to do this? | Google Apps Script hasn't a built-in way to make a trigger to run exactly at certain time as setting a trigger to run a certain time has a +/- 15 minutes variation.
One workaround is to use a time-driven trigger to run every minute an include a condition to make some part of the code to execute if the current executio... |
164,626 | <p>I'm trying to set up a formula to extract data from a URL that is in one of the column B of my Google Sheet.</p>
<p><a href="https://i.stack.imgur.com/yWogO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yWogO.png" alt="enter image description here" /></a></p>
<p>I've been tryin use the LEFT form... | [
{
"answer_id": 164629,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 1,
"selected": false,
"text": "<p>Try with this formula in C2:</p>\n<pre><code>=index( regexextract(regexreplace(B2:B,"https://www.reddit.... | 2022/05/18 | [
"https://webapps.stackexchange.com/questions/164626",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/295665/"
] | I'm trying to set up a formula to extract data from a URL that is in one of the column B of my Google Sheet.
[](https://i.stack.imgur.com/yWogO.png)
I've been tryin use the LEFT formula to extract the data, but the problem is that the string I am try... | Try with this formula in C2:
```
=index( regexextract(regexreplace(B2:B,"https://www.reddit.com/r/",""),"([^\/]*)"))
```
[](https://i.stack.imgur.com/aOtQj.png) |
164,631 | <p>I was wondering if there's a way to use a function (maybe Filter?) in order to sort this data such that column K only contains one of each number, and the highest test associated with it in column L. Here's an example that I created manually using a small section of data.</p>
<p>For example, the highest test associa... | [
{
"answer_id": 164629,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 1,
"selected": false,
"text": "<p>Try with this formula in C2:</p>\n<pre><code>=index( regexextract(regexreplace(B2:B,"https://www.reddit.... | 2022/05/18 | [
"https://webapps.stackexchange.com/questions/164631",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/295673/"
] | I was wondering if there's a way to use a function (maybe Filter?) in order to sort this data such that column K only contains one of each number, and the highest test associated with it in column L. Here's an example that I created manually using a small section of data.
For example, the highest test associated with ... | Try with this formula in C2:
```
=index( regexextract(regexreplace(B2:B,"https://www.reddit.com/r/",""),"([^\/]*)"))
```
[](https://i.stack.imgur.com/aOtQj.png) |
164,647 | <p>I would like my function <code>freezeSunday</code> to run at exactly at 1pm on Sunday. Since it does not appear that you can trigger a function to run at a precise time (only at a randomly selected time within a range), I wrote the following code.</p>
<pre><code>function createTimeTriggerEveryNMinutes() {
ScriptApp... | [
{
"answer_id": 164634,
"author": "Erik Tyler",
"author_id": 197265,
"author_profile": "https://webapps.stackexchange.com/users/197265",
"pm_score": 2,
"selected": true,
"text": "<p>See my comment to your post above for a tip regarding future posts.</p>\n<p>That said, suppose that your &q... | 2022/05/19 | [
"https://webapps.stackexchange.com/questions/164647",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/295020/"
] | I would like my function `freezeSunday` to run at exactly at 1pm on Sunday. Since it does not appear that you can trigger a function to run at a precise time (only at a randomly selected time within a range), I wrote the following code.
```
function createTimeTriggerEveryNMinutes() {
ScriptApp.newTrigger("freezeSunda... | See my comment to your post above for a tip regarding future posts.
That said, suppose that your "A" from the first image is in cell A2 and your "1" from the first image is in cell C2; and suppose that there is *nothing in the rows below* what is shown in the first image, all the way to the bottom of the sheet.
`=Arr... |
164,658 | <p>I have data that comes in batches of N values ("Y" values if you like) for a given index (or "X" value if you like). How to make N separate series in my graph for each entry of a given index ?</p>
<p>For example, if N = 3, I could have :</p>
<pre><code>0 | 21
0 | 40
0 | 89
1 | 76
... | [
{
"answer_id": 164660,
"author": "David Tan",
"author_id": 293022,
"author_profile": "https://webapps.stackexchange.com/users/293022",
"pm_score": 1,
"selected": false,
"text": "<p><a href=\"https://i.stack.imgur.com/UgYgW.png\" rel=\"nofollow noreferrer\"><img src=\"https://i.stack.imgu... | 2022/05/20 | [
"https://webapps.stackexchange.com/questions/164658",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/291704/"
] | I have data that comes in batches of N values ("Y" values if you like) for a given index (or "X" value if you like). How to make N separate series in my graph for each entry of a given index ?
For example, if N = 3, I could have :
```
0 | 21
0 | 40
0 | 89
1 | 76
1 | 49
1 | 96
2 | 18
2 | ... | You can generate the table to feed into the chart editor in a single formula:
```
=arrayformula(query({{"";"Entry "&mod(sequence(count(A:A))-1,countif(A:A,0))+1},{{"Index","Data"};array_constrain(A:B,count(A:A),2)}},"select Col2,min(Col3) group by Col2 pivot Col1"))
```
Assumes the X and Y values are in column A & B... |
164,682 | <p>Firstly, apologies for this question but I couldn't really wrap my head on how to do this (ultimate aim is to put it in app scripts)</p>
<p>Let's say I have a table that is updated daily showing the fruit Tony eats on that day</p>
<p>For some reason, I need to find the number of days between eating Pear followed by ... | [
{
"answer_id": 164690,
"author": "David Tan",
"author_id": 293022,
"author_profile": "https://webapps.stackexchange.com/users/293022",
"pm_score": 3,
"selected": true,
"text": "<p>I know you are looking for an Google App Script answer, but I have a formula:</p>\n<pre><code>=IF($B2="... | 2022/05/21 | [
"https://webapps.stackexchange.com/questions/164682",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/290090/"
] | Firstly, apologies for this question but I couldn't really wrap my head on how to do this (ultimate aim is to put it in app scripts)
Let's say I have a table that is updated daily showing the fruit Tony eats on that day
For some reason, I need to find the number of days between eating Pear followed by Apple. Here it ... | I know you are looking for an Google App Script answer, but I have a formula:
```
=IF($B2="Apple",A2-SORT(FILTER(A:A,B:B="Pear", A:A<$A2),1,FALSE),"")
```
This formula goes on the third column. It basically first checks if the B column is an apple, then it will filter all the pears with dates lower than itself. Then... |
164,693 | <p>I already managed to change the dot on numerical pad into a comma in i.e. excel. But how do I do that in Google Sheets?</p>
| [
{
"answer_id": 164690,
"author": "David Tan",
"author_id": 293022,
"author_profile": "https://webapps.stackexchange.com/users/293022",
"pm_score": 3,
"selected": true,
"text": "<p>I know you are looking for an Google App Script answer, but I have a formula:</p>\n<pre><code>=IF($B2="... | 2022/05/22 | [
"https://webapps.stackexchange.com/questions/164693",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/-1/"
] | I already managed to change the dot on numerical pad into a comma in i.e. excel. But how do I do that in Google Sheets? | I know you are looking for an Google App Script answer, but I have a formula:
```
=IF($B2="Apple",A2-SORT(FILTER(A:A,B:B="Pear", A:A<$A2),1,FALSE),"")
```
This formula goes on the third column. It basically first checks if the B column is an apple, then it will filter all the pears with dates lower than itself. Then... |
164,726 | <p><strong>PROBLEM</strong></p>
<p>Since Google Sheets doesn't natively support JSON data, which I'm importing, I'm trying to split the data into a matrix of four columns and an unfixed number of rows using only Google Sheets's native functions.</p>
<p><strong>DETAILS</strong></p>
<p>I've used the <code>IMPORTDATA</cod... | [
{
"answer_id": 164690,
"author": "David Tan",
"author_id": 293022,
"author_profile": "https://webapps.stackexchange.com/users/293022",
"pm_score": 3,
"selected": true,
"text": "<p>I know you are looking for an Google App Script answer, but I have a formula:</p>\n<pre><code>=IF($B2="... | 2022/05/23 | [
"https://webapps.stackexchange.com/questions/164726",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/124150/"
] | **PROBLEM**
Since Google Sheets doesn't natively support JSON data, which I'm importing, I'm trying to split the data into a matrix of four columns and an unfixed number of rows using only Google Sheets's native functions.
**DETAILS**
I've used the `IMPORTDATA` function nested in a `TRANSPOSE` function to import a J... | I know you are looking for an Google App Script answer, but I have a formula:
```
=IF($B2="Apple",A2-SORT(FILTER(A:A,B:B="Pear", A:A<$A2),1,FALSE),"")
```
This formula goes on the third column. It basically first checks if the B column is an apple, then it will filter all the pears with dates lower than itself. Then... |
164,754 | <p>I have a sheet that <code>IMPORTRANGE</code>'s data from another spreadsheet, which contains a column with numerical values that are of type string. In another sheet I am trying to sum the values in that column using <code>SUMIF</code>. The command is the following:</p>
<pre><code>=SUMIF(Transactions!G2:G, "Foo... | [
{
"answer_id": 164690,
"author": "David Tan",
"author_id": 293022,
"author_profile": "https://webapps.stackexchange.com/users/293022",
"pm_score": 3,
"selected": true,
"text": "<p>I know you are looking for an Google App Script answer, but I have a formula:</p>\n<pre><code>=IF($B2="... | 2022/05/25 | [
"https://webapps.stackexchange.com/questions/164754",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/295939/"
] | I have a sheet that `IMPORTRANGE`'s data from another spreadsheet, which contains a column with numerical values that are of type string. In another sheet I am trying to sum the values in that column using `SUMIF`. The command is the following:
```
=SUMIF(Transactions!G2:G, "Food & Dining", ARRAYFORMULA(VALUE(Transact... | I know you are looking for an Google App Script answer, but I have a formula:
```
=IF($B2="Apple",A2-SORT(FILTER(A:A,B:B="Pear", A:A<$A2),1,FALSE),"")
```
This formula goes on the third column. It basically first checks if the B column is an apple, then it will filter all the pears with dates lower than itself. Then... |
164,783 | <p>I had some code created using the classic editor that did the job of inserting 10 lines in two Google Sheets, which grow down over time with record building. The code speeded things up for the users. But, it quit working properly. I Spent about 6 hours researching and learning how to do vague trial and erroring test... | [
{
"answer_id": 164784,
"author": "Rubén",
"author_id": 88163,
"author_profile": "https://webapps.stackexchange.com/users/88163",
"pm_score": 1,
"selected": false,
"text": "<p>The <code>Sheets</code> have assigned Class Spreadsheet object but this class hasn't the <code>getMaxColumn</code... | 2022/05/26 | [
"https://webapps.stackexchange.com/questions/164783",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/295988/"
] | I had some code created using the classic editor that did the job of inserting 10 lines in two Google Sheets, which grow down over time with record building. The code speeded things up for the users. But, it quit working properly. I Spent about 6 hours researching and learning how to do vague trial and erroring testing... | The `Sheets` have assigned Class Spreadsheet object but this class hasn't the `getMaxColumn` method. This method is available for Class Sheet and Class Range objects.
---
NOTES:
Please bear in mind that `var asn= ss.getName();` assigns the spreadsheet name to the `asn` variable. If you want to assign the name of th... |
164,839 | <h2>Data</h2>
<p>Each value in <code>B</code> is the amount that the Federal Reserve balance sheet changed for a given week.</p>
<p><a href="https://i.stack.imgur.com/rwD5p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rwD5p.png" alt="enter image description here" /></a></p>
<h2>Largest drop since.... | [
{
"answer_id": 164911,
"author": "dharmatech",
"author_id": 293007,
"author_profile": "https://webapps.stackexchange.com/users/293007",
"pm_score": 0,
"selected": false,
"text": "<p>For now, I've used a C# program to import the CSV data and output a new CSV file with the additional colum... | 2022/05/28 | [
"https://webapps.stackexchange.com/questions/164839",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/293007/"
] | Data
----
Each value in `B` is the amount that the Federal Reserve balance sheet changed for a given week.
[](https://i.stack.imgur.com/rwD5p.png)
Largest drop since...
---------------------
This past week, the balance sheet decreased by $31,617.
... | This formula for "Last Larger Date" works on google sheet (it must be dragged) and gives a result that matches the image of your first post:
```
=INDEX(IFNA(IF(
$B2="","",
IF($B2 > 0,
LOOKUP(2, 1 / (N($B1:B$2) > $B2), IF($B1:B$2<0,$A1:A$2,)),
LOOKUP(2, 1 / (N($B1:B$2) < $B2), $A1:A$2)
))))
```
for the week count t... |
165,025 | <p>I'm working with a large amount of data and am trying to enter standardized formulas to repeatedly convert to a more comprehensive version. What I'm having trouble with now is identifying each of these tiers of addresses and assigning a label. I'm stuck on the zip codes now. I want to be able to search each cell in ... | [
{
"answer_id": 165027,
"author": "Daniele",
"author_id": 284743,
"author_profile": "https://webapps.stackexchange.com/users/284743",
"pm_score": 1,
"selected": false,
"text": "<p>if you want to extract the digits from each cell:</p>\n<pre><code>=index(ifna(REGEXEXTRACT(B2:B, "\\d+&q... | 2022/06/09 | [
"https://webapps.stackexchange.com/questions/165025",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/296637/"
] | I'm working with a large amount of data and am trying to enter standardized formulas to repeatedly convert to a more comprehensive version. What I'm having trouble with now is identifying each of these tiers of addresses and assigning a label. I'm stuck on the zip codes now. I want to be able to search each cell in thi... | if you want to extract the digits from each cell:
```
=index(ifna(REGEXEXTRACT(B2:B, "\d+")*(B2:B<>"")))
```
if you want to know the number of digits of each zip:
```
=index(ifna(len(REGEXEXTRACT(B2:B, "\d+")*(B2:B<>""))))
```
[](https://i.stack.imgur.com/1CH8J.png) |