text
stringlengths 83
79.5k
|
---|
H: Apply a formula to each cell in column before computing a sum of the cells
How could I apply a formula to each cell in a column before computing a sum of the cells in Google spreadsheet?
In other words, I have a column of cells with numbers. And what I want is to iterate over each row in the column (i.e. each cell), apply a formula to the number in the cell and get a result of the formula. Then I want to sum all of those results.
And all of this I would like to perform in one cell (i.e. in one query).
AI: =SUM(ARRAYFORMULA((B2:B26-$B$1)^2))/A1
=SUM(ARRAYFORMULA(A1:A4*(SUM(2, 3)))) |
H: How do I change the realname connected with an email on GoogleMail?
How do I permanently change the name related to an email that I have recieved and sent email to in the past on GoogleMail (gmail.com)?
The user changed their realname (examples: changed surname, changed title etc) but GoogleMail keeps the first historical realname and do not let me change this or updates to the last used?
If we first emailed when they had their account set as "Mr Smith " and now they have "Dr Smith ". Whenever I type smith@somewhere.com in GoogleMail, it use the first used realname ("Mr Smith") and I have to manually change this with an external editor and copy'n'paste in the full realname+email.
I have tried to Google this but only get answers on how to change my own realname, not the stored realname of someone I email. They have changed their realname for their account, but when I email them this is not reflected in the email created.
An earlier question about this did get an answer that only works for a day and then reverts back: How to change a contact's autocomplete email order in Gmail?
Is it possible to change the realname related to an email or is this an oversight by Google?
AI: Was able to get help from a friend and got the answer:
Click contacts, add the contact with the old realname, edit the contact and change the realname. Save. So far it seem to work, but I will update this answer if this reverts in 24 hours.
EDIT: Still works after 24 hours. |
H: Number in a cell linked with a text
I would like to ask if there is a solution to my problem:
I have 200 numbers from 1 to 200 which are linked with text. For example: 1 = car, 2 = bicycle and so on. I would like to write a number (1) in the A2 cell and I would like to automatically get the text (car) into the cell B2. Is there some formula for this?
AI: =ARRAYFORMULA(IFERROR(VLOOKUP(A2:A, Sheet2!D2:E, 2, 1), )) |
H: Conditional Format Copying in Google Sheets
I am looking to copy over a conditional format that changes the colour of an array of cells when checking a checkbox.
This works perfectly fine on the first checkbox. However, when I try to replace all the other checkboxes on the spreadsheet with the conditionally formatted cell by dragging down the box, it then messes up all of the formattings. As seen in the picture below.
There has got to be an easier way to do this than to have to create a new rule for every cell. Any help would be greatly appreciated.
AI: custom formula: =COUNTIF($I2, "=TRUE") |
H: Conditional Google Sheet Checkbox
I am creating a spreadsheet which can track all of the replacement items I am sending out for my business, however, I also want to be able to track my refunds on the same spreadsheet. I have got it so that a checkbox is conditionally formatted to change the background colour of certain cells to signify if the replacement has been sent out. Is there a way that the conditional formatting can be adapted to have a different colour if a different box says Replacement or Refund. (See attached photos for reference)
I would like to be able to have a different colour for the cells if the "Replacement/Refund" Field has "refund" in the cell.
AI: custom formula for rule 1: =AND($I2=TRUE, $C2="Refund") (green color)
custom formula for rule 2: =AND($I2=TRUE, $C2="Replacement") (blue color) |
H: Cartesian Product with constraints
I have a really big database that I have to sort and divide as the example below:
F1 F2 F3 C1 C2 C3 C4 results
P1 X X X X X P1 F1 C1
P2 X X X X P1 F3 C1
P3 X X X P1 F1 C2
P1 F3 C2
P1 F1 C3
P1 F3 C2
P2 F1 C2
I think it has something to do with Cartesian product but I really don't know how to give some sort of constraints (the X are the one that matches).
AI: Saem, assuming your label "P1" is in A2, your label "F1" is in B1, and your label "C1" is in F1, the following array formula should give the results you want:
=ArrayFormula({SPLIT(TRANSPOSE(SPLIT(TEXTJOIN("\", TRUE, IF(B2:D4="x", REPT(A2:A4&" "&B1:D1&"\", MMULT(N(F2:I4="x"), TRANSPOSE(COLUMN(F1:I1)^0))), "")), "\")), " "), TRANSPOSE(SPLIT(JOIN(" ", REPT(TRIM(TRANSPOSE(QUERY(TRANSPOSE(IF(F2:I4="x", F1:I1, "")), , COLUMNS(IF(F2:I4="x", F1:I1, "")))))&" ", MMULT(N(B2:D4="x"), TRANSPOSE(COLUMN(B2:D4)^0)))), " "))})
You should be able to have a scope of any size and just replace the corresponding ranges to get a complete list. |
H: Hiding and Unhiding columns based on prompt
I'm trying to make a template that hides and unhides columns based the value in G2. When a user will value from 1-5 in G2, certain columns will be shown, and certain columns will be hidden. Specifically, I'm looking to show only columns 1-3 when G2 is "1", show only columns 1-6 when G2 is "2", show only columns 1-9 when G2 is "3" and so on.
Here's my attempt. It doesn't produce an error, but nothing happens when I run it.
function showColumns() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getActiveSheet();
var COLUMN = sheet.getRange('G2').getValue();
if (COLUMN=='1') {
sheet.showColumns(1,3);
sheet.hideColumns(4,12);
}
if (COLUMN=='2') {
sheet.showColumns(1,6);
sheet.hideColumns(7,9);
}
if (COLUMN=='3') {
sheet.showColumns(1,9);
sheet.hideColumns(10,6);
}
if (COLUMN=='4') {
sheet.showColumns(1,12);
sheet.hideColumns(13,3);
}
if (COLUMN=='5') {
sheet.showColumns(1,15);
}
}
I only have 5 sets of 3 columns, with the number of sets showing up depending on G2, hence why I tried the simplistic approach of showing/hiding specific rows depending on the input, although I'm positive there's an easier way to do this.
I greatly appreciate any advice!
AI: It's very likely that the problem is due that the code is comparing the value of COLUMN with Strings rather than Numbers, replace '1' by 1, '2' by 2, and so on.
By the other hand it could be a good idea to use a switch statement of use if..else if instead of several independent if, also it could be a good idea to check that G2 value has the correct data type. |
H: Query using date range doesn't work for specific data
I have a spreadsheet (URL below). I've set up a query to make sure I understand how to do a query with a date range. Then I tried to create a similar query on the "real" data. The "Week 1" worksheet feeds the "Week 1 data" worksheet, where I manipulate the data and it contains the query. The data range query returns no results. All other queries work.
my spreadsheet
AI: ={B1:F1; QUERY(ARRAYFORMULA({B2:D, TO_DATE(VALUE(E2:E)), F2:F}),
"select * where Col4 >= date '"&TEXT($G$1, "yyyy-mm-dd")&"'
and Col4 <= date '"&TEXT($G$1+5, "yyyy-mm-dd")&"'", 0)} |
H: How to pull the page number and the number of images listed from one sheet and then populate cells in another sheet accordingly?
Sorry, I didn't know how to summarize it in the title. Basically, I have a spreadsheet where I'm keeping track of the number of images that need to be on each page of a document I'm working on.
On the first tab, I have a sheet to keep track of how many images are on each page. On the second tab, I have a sheet to write out what the image concept is for each image. To keep track of which page and image number it is, I've been writing them as [page #] - [image #] on the second tab.
This is super time-consuming, and so far the best solution I've come up with is to copy and paste a column of 5 rows that say x-1, x-2, x-3, etc and then select them and do a find and replace x for the page number.
I'm wondering if there's a way I can pull the page number from Tab 1 and the number of images listed and then populate cells in Tab 2 accordingly.
e.g. - Cell with page number 11 + cell with image number 4 would produce 4 rows with:
11-1
11-2
11-3
11-4
Thanks in advance!
EDIT: Here's a link to a copy of the spreadsheet
AI: create a hidden auxiliary sheet (let's call it AUX)
paste this formula into A1 and drag down (when done - hide sheet)
=IF(LEN(Main!A1), ARRAYFORMULA(IFERROR(TO_TEXT(TRANSPOSE(
SPLIT(Main!A1&"-"&ROW(INDIRECT("A1:A"&Main!B1))&" ", " "))), )), )
paste this formula into cell A1 on Concepts sheet
={QUERY({AUX!A1:A8;AUX!B1:B8;AUX!C1:C8;AUX!D1:D8;AUX!E1:E8},
"select Col1 where Col1 is not NULL", 0);
QUERY({AUX!A9:A;AUX!B9:B;AUX!C9:C;AUX!D9:D;AUX!E9:E},
"select Col1 where Col1 is not NULL", 0)} |
H: Is it possible to make comments visible only to author and owner on Google Docs?
I've been thinking about using Google Docs to share a novel with a few beta-readers because it is simpler than sending every one of them a separate text file and keeping track of the comments across files.
For this to work, though, I would need the comments of each reader to be visible only to them and to me, so they can't relapse into a "herd mentality". Each of them should read the novel and comment by themselves, with no influence from the others.
Is there any way to achieve this in Google Docs?
AI: Unfortunately, this is not possible in Google Docs. All comments are visible to all commenters. |
H: Calculate Work Hours
Given work hours for each weekday (let's say 9:00:00-17:00:00 Monday through Friday), a start timestamp (e.g., 1/15/2019 6:15:15) and end timestamp (e.g., 1/21/2019 14:35:10)...
How can I get the total work hours between start and end, excluding all other hours (i.e., weekends, 17:00:01-8:59:59)?
I'm in need of a basic, reusable formula that does the following for many cases:
Start: 1/15/2019 6:15:15
End: 1/21/2019 14:35:10
Work Hours: 37:35:10
Note again here that I don't want all hours for each day counted, only those within the work hours for each day.
NETWORKDAYS sadly does not give the exact decimal needed.
AI: =NETWORKDAYS(TO_DATE(A2), TO_DATE(B2)) * (E2-D2) -
IF(INDEX(SPLIT(A2, " "), 1, 2) > D2, D2 - INDEX(SPLIT(A2, " "), 1, 2), ) -
IF(INDEX(SPLIT(B2, " "), 1, 2) < E2, E2 - INDEX(SPLIT(B2, " "), 1, 2), )
column A and column B formatted as Date time
column D and column E formatted as Time
column C formatted as Duration |
H: How do I conditionally highlight cells
Not sure if I'm sharing this right but below is a link to my sheet. Cell C3 is past today so it is red. What I'm trying to do is have it go back to white when I enter the next "Last change" date in cell A4 and continue in this manner. This possible?
AI: =IF(AND(C3 < TODAY(), C3<>"", A4=""), 1) |
H: Automatic currency conversion in Google Sheets
I have a personal accounting sheet that is mainly accounting in Euros, but for every manual Euro (EUR) entry I do, I want to have that entry converted to USD in the previous column next to it automatically, fixed at that moment's EUR -> USD rate (and not fluctuate with the currency exchange rate over time), and rounded up to the nearest dollar.
Currently, I only enter the converted amount manually, based on the output from a calculation cell with the =GOOGLEFINANCE("CURRENCY:EURUSD") function.
For each accounting entry, today's date is manually entered in column A, the EUR figure manually entered in column F, and I would like the automatically converted EUR -> USD figure (rounded up to the nearest dollar) to appear next to that EUR entry in column E, and remain unchanging. As a reference the =GOOGLEFINANCE("CURRENCY:EURUSD") function lives in cell J1, which is part of where I currently do the aforementioned manual currency conversions in the small calc table I1:L2.
Link to sample sheet here
Many thanks for any help!
Reference: Automatically store updated GOOGLEFINANCE values with a script
AI: Formula variation without ARRAYFORMULA:
=IF(LEN(F3); ROUND(F3 * IFERROR(VLOOKUP(A3;
{DATEVALUE(QUERY(GOOGLEFINANCE("currency:eurusd"; "price"; A3; A3+1);
"select Col1 where Col1 is not null"; 0))\
QUERY(GOOGLEFINANCE("currency:eurusd"; "price"; A3; A3+1);
"select Col2 where Col2 is not null"; 0)}; 2; 0);
GOOGLEFINANCE("currency:eurusd")); 0); ) |
H: Pie chart with sub-slices per category in Google Sheets?
I have a sheet that contains a list of books, with metadata about those books. Two columns that exist are the library within which the book is stored, and the condition of the book. I'd like to create a chart showing the number of books in each condition, per the library.
The table looks something like this (excluding other non-relevant metadata)
Book Library Condition
1 Example1 New
2 Example2 VG
3 Example1 Fair
4 Example3 VG
I'd like a table that used the Library column as labels, and had a display for each possible condition in each library. A cluster bar graph would work, but an ideal solution would be something like a double pie chart (where the large slice is the breakdown by the library, and that is the sliced by condition).
AI: your dataset of A1:C is not in "good" shape for creating a chart, so first, you will need to re-shape it by adding few formulas in auxiliary columns which you can hide when done
in cell E1 paste this formula and create a base pie chart. this will create even ratio between Libaries. select primary color for each libary and maximze chart style
={"Libaries"\""; {TRANSPOSE(SPLIT(REPT(1&" ";
COUNTA(UNIQUE(FILTER(B2:B; B2:B<>""))));" "))\
UNIQUE(FILTER(B2:B; B2:B<>""))}}
if you got #ERROR! paste this into E1 cell:
={"Libaries",""; {TRANSPOSE(SPLIT(REPT(1&" ",
COUNTA(UNIQUE(FILTER(B2:B, B2:B<>""))))," ")),
UNIQUE(FILTER(B2:B, B2:B<>""))}}
paste this formula in G1 cell to create labels:
=ARRAYFORMULA(SPLIT(JOIN("×";
TRANSPOSE(REPT(UNIQUE(FILTER(B2:B&"×"; B2:B<>"")); 2))); "×"))
then paste this formula in G2 to create dataset for 2nd chart:
=ARRAYFORMULA(QUERY(TO_TEXT($A$2:$C);
"select count(Col3), Col3
where Col1 is not null and Col2='"&G1&"'
group by Col3
label count(Col3)''"; 0))
after this you will need correction formula which can correct position of the first set of pie slices. paste this in G6 cell and create 2nd pie chart from range G2:H. then play with colors and set color of the correction pie on None
=IF(SUM(ARRAYFORMULA(QUERY(TO_TEXT($A$2:$C);
"select count(Col3)
where Col1 is not null and Col2='"&G1&"'
group by Col3
label count(Col3)''"; 0)))>3;
SUM(ARRAYFORMULA(QUERY(TO_TEXT($A$2:$C);
"select Col3, count(Col3)
where Col1 is not null and Col2='"&G1&"'
group by Col3
label count(Col3)''"; 0)))*2; 6)
when done, overlay 1st chart with 2nd chart
then paste this formula in i4 cell (this will be dataset for 3rd chart)
=ARRAYFORMULA(QUERY(TO_TEXT($A$2:$C);
"select count(Col3), Col3
where Col1 is not null and Col2='"&I1&"'
group by Col3
label count(Col3)''"; 0))
next you need correction again. this time twice. paste this formula in i2 and i7
=SUM(ARRAYFORMULA(QUERY(TO_TEXT($A$2:$C),
"select Col3, count(Col3)
where Col1 is not null and Col2='"&I1&"'
group by Col3
label count(Col3)''", 0)))
now you can construct 3rd pie chart from range i2:J. again play with colors and hide correction slices. when done overlay it on top of 1st and 2nd chart
when done paste this formula in K4 cell (this will be dataset for the 4th pie chart)
=ARRAYFORMULA(QUERY(TO_TEXT($A$2:$C);
"select count(Col3), Col3
where Col1 is not null and Col2='"&K1&"'
group by Col3
label count(Col3)''"; 0))
and again you need to correct the position with this formula pasted in K2 cell
=IF(SUM(ARRAYFORMULA(QUERY(TO_TEXT($A$2:$C);
"select count(Col3)
where Col1 is not null and Col2='"&K1&"'
group by Col3
label count(Col3)''"; 0)))>3;
SUM(ARRAYFORMULA(QUERY(TO_TEXT($A$2:$C);
"select Col3, count(Col3)
where Col1 is not null and Col2='"&K1&"'
group by Col3
label count(Col3)''"; 0)))*2; 6)
create 4th pie chart from range K2:L, play with colors, hide correction slice, possition it on all previous charts
if you want to put up some labels then you can insert drawings and overlay it once again
demo spreadsheet |
H: Shortcut to put focus at end of value in cell
Is there a way to do this without using a mouse?
I'm in Google Sheets, with the focus on a specific cell, which already has content in it. I want the focus to move to the very end of the value in the cell so that I can start appending more content.
I've tried to find a way to do this without a mouse, but haven't found anything. It would sure save a lot of back and forth between keyboard/mouse.
AI: From what you described the shortcut you are looking for is ARROW DOWN (if the cell is active)
if the cell is not active: ENTER + ARROW DOWN
if the formula/content of the cell is on more rows: ENTER + END
also you can try F2 + ARROW DOWN
or ultimate shortcut F2 + END |
H: Creating a parent ID cell in Google Sheets
I've got a spreadsheet of various categories and I'd like to create a column which gets the parent name of that particular category.
They are currently broken down as follows:
01.01 Category 1
01.02 Category 1a
01.02.01 Category 1aa
01.02.02 Category 1ab
01.02.03 Category 1ac
01.03 Category 1c
I've put the numbers into a seperate column using =LEFT(A2,(FIND(" ",A2,1)-1))
and I've put the names of the categories into another column using =MID(A2,FIND(" ",A2)+1,256)
but I've not managed to get the parent name into a column yet so was hoping someone could help.
AI: B2: =ARRAYFORMULA(IFERROR(LEFT(A2:A, (FIND(" ", A2:A, 1)-1)), ))
C2: =ARRAYFORMULA(IFERROR(MID(A2:A, FIND(" ", A2:A)+1, 256), ))
D2: =ARRAYFORMULA(IFERROR(RIGHT(B2:B, LEN(B2:B)-3), ))
E2: =ARRAYFORMULA(IFERROR(IF(LEN(B2:B)>3, LEFT(B2:B, 5), ), ))
F2: =ARRAYFORMULA(IFERROR(VLOOKUP(
IFERROR(IF(LEN(B2:B)>3, LEFT(B2:B, 5), ), ),
{IFERROR(IF(LEN(B2:B)>3, LEFT(B2:B, 5), ), ),
IFERROR(MID(A2:A, FIND(" ", A2:A)+1, 256), )}, 2, 0), )) |
H: Import Bitcoin price in EUR using the IMPORTXML fucntion
Hello does anybody know how to import the Bitcoin price in euro into a Google Sheets document by using the IMPORTXML function?
I am as far as I get the Bitcoin USD price -
=IMPORTXML("https://coinmarketcap.com/currencies/bitcoin/";
"//span[@class='h2 text-semi-bold details-panel-item--price__value']")
by inspecting the CoinMarketCap site I can see the Bitcoin euro price is shown but I do not understand how to refer to it?
<span class="h2 text-semi-bold details-panel-item--price
value" data-currency-value="">€3.211,55</span>
AI: That won't be possible because button which switches between currencies is controlled by JavaScript and Google Sheets can't read JS. A workaround would be to use a different site for scraping or convert USD to EUR directly in the spreadsheet:
=IMPORTXML("https://coinmarketcap.com/currencies/bitcoin/";
"//span[@class='h2 text-semi-bold details-panel-item--price__value']")
*GOOGLEFINANCE("currency:usdeur")
If the GOOGLEFINANCE currency rate isn't satisfactory you can try to find a better one and IMPORTXML it too - like: =IMPORTXML(usd) * IMPORTXML(currency rate) |
H: Combing two ranges with identical column structure from two different sheets (in same spreadsheet)
I'm doing a simple ticketing system, where I have two sheets, "Form Responses" and "Email Responses" both of which are populated automatically as their names imply (one from a form, one from an email by using Zapier). Both sheets have the same header columns (e.g.: Timestamp, Email Address, Subject, Description).
I want to create a third sheet that has the same headers again but has content from both "Form Responses" and "Email Responses", sorted by Timestamp.
I tried ={'Form Responses 1'!A2:H18,'Email Responses'!A2:H18} but it puts the sheets next to each other.
AI: you need to separate them with ;
=SORT({'Form Responses 1'!A2:H18; 'Email Responses'!A2:H18}, 1, 1)
if you want to keep one header try:
=SORT({'Form Responses 1'!A1:H18; 'Email Responses'!A2:H18}, 1, 1)
if you want to go full dynamic try:
=SORT({FILTER('Form Responses 1'!A1:H, 'Form Responses 1'!A1:H<>"");
FILTER('Email Responses'!A2:H, 'Email Responses'!A2:H<>""), 1, 1)}
you can also use a query like:
={'Form Responses 1'!A1:H1;
QUERY({'Form Responses 1'!A2:H18; 'Email Responses'!A2:H18},
"select * where Col1 is not null order by Col1", 0)} |
H: Query Formula excludes results with new line character
It seems there may be a bug in Google Sheets' Query formula where results with a new line character (char 10) are excluded when the column is filtered. Is there any way around this or am I doing something wrong?
AI: this is not a fault of CHAR(10) nor bug
by examining the whole range with =ARRAYFORMULA(ISNUMBER(A2:C7)) you can see that CHAR(10) causes cells with numbers to act like TEXT which makes sense because there is not a number like 19 68 it's either 19, 68 or 1968
therefore, you will need to use such query that works with text not with numbers:
=QUERY(A1:C7, "select A,B,C where B contains '2'") |
H: How to quickly re-arrange sheet order in Google Sheets?
If I have a Google Sheets document (Workbook in Excel terms) with 20 sheets (Worksheet in Excel terms) and I want to rearrange the order of the sheets currently the only way I know to do this is to drag them horizontally.
This works fine when you have a few sheets, but with 20 or more sheets its very slow if I want to take sheet 20 and put it next to sheet 1. Ive also noticed that if you right click a sheet you have the option to move it left or right, but this only moves in one sheet "slot" at a time, so no quicker than the dragging method.
Is there a quicker way to do this than just dragging a sheet horizontally along the bottom bar?
AI: You could use Google Apps Script to reorder the sheets. First you should activate the sheet to move, either manually or by the script, then use the moveActiveSheet(position) method of the Class Spreadsheet.
Example
This moves the active sheet to the position 1
function moveSheetToPos1(){
SpreadsheetApp.getActiveSpreadsheet().moveActiveSheet(1);
}
Related
Anyway to change the sheet order? (Stack Overflow) |
H: How to multiply a query column by a cell refference on Google Sheets?
Below is the query that I use, and it works:
=QUERY(Input!A2:I33;
"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT(Input!L8;"dd/mm/yyyy")&"', 0.6*H
WHERE I='I'
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT(Input!L8;"dd/mm/yyyy")&"' '', 0.6*H ''")
My question is: How can I multiply H by a cell refference? For instance, here's what I tried, but it did not work ("Input!L9" reffers to a cell with the value 0.6):
=QUERY(Input!A2:I33;
"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT(Input!L8;"dd/mm/yyyy")&"', "&Input!L9&"*H
WHERE I='I'
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT(Input!L8;"dd/mm/yyyy")&"' '', "&Input!L9&"*H ''")
AI: try H*"&Input!L9&" with label H*"&Input!L9&"''
=QUERY(Input!A2:I33,
"select '000',A,B,C,D,E,' ',F,' ',' ',' ',G,' ',' ',' ','"&TEXT(Input!L8,"dd/mm/yyyy")&"',H*"&Input!L9&"
where I='I'
label '000''',' ''',' ''',' ''',' ''',' ''',' ''',' ''','"&TEXT(Input!L8,"dd/mm/yyyy")&"''',H*"&Input!L9&"''")
note: EU syntax will need to have SUBSTITUTE(Input!L9; ","; ".") instead of Input!L9 |
H: Conditional formatting rule that compares against a range of values
I have a list of 2019 dates (col A) and holiday dates (col G). Wherever there's a date in col A that matches any date in the range G2:G20, I would like to highlight it in grey. See this sample spreadsheet
So far I have this custom formula
=$A:$A=$G$2:$G$20
...which only marks the first instance of the date range. Is there any way I can solve this without having to create a separate rule for each element of col G?
AI: custom formula:
=ARRAYFORMULA(IF(NOT(ISNA(VLOOKUP(A2:A, G$2:G, 1, 0))), 1))
for row highlight (A:E) try:
=ARRAYFORMULA(IF(NOT(ISNA(VLOOKUP($A2:A,$G$2:G,1,0))),1)) |
H: YouTube - 4k 60fps - Dropping frames (Stutter/Lag/Freezes)
I'm trying to watch 2160p (4k 60fps) content on YouTube, however, I experience large amounts of dropped frames... i.e. the video freezes/stutters completely (the sound is fine).
The YouTube example I use: Costa Rica - 4k 60fps - Youtube
If I watch the video in 1440p it plays fluently without any dropped frames. However, when switching to 2160p the video freezes/stutters because of the huge amount of dropped frames (80%), see below.
Hence, my internet is stable and fine (via cable) and I'm using the VP9 codec in combination with HTML5 and Mozilla Firefox/Microsoft Edge (same result). I'm not using hardware acceleration.
My PC specs.:
MSI H97M-G43
Intel Core i5-4460 Boxed
MSI GeForce GTX 1080 GAMING X 8G
Crucial Ballistix Tactical BLT2C4G3D1608ET3LX0CEU
Seasonic M12II Evo 620W
LG 27UK850-W Zilver
Windows 10 Education (is pro version) - Version 1803 - Build 17134.590
Nvidia driver - 25.21.14.1771 (NVIDIA 417.71)
Hence, in my opinion, it should be enough to watch 2160p videos on YouTube? The CPU is stressed a bit, but utilization is around 80%. GPU is barely running since 2160p content requires a lot of decoding from the CPU.
Current (after 28 sec.) - Min - Max:
Does somebody have a clue what is wrong/how to fix it (software setting or is it really the CPU)? Thanks for any information!
AI: The answer which solved the OP's issue:
try chrome and toggle hardware acceleration |
H: Reset Google Search layout
I'm using Chrome on a Mac and all of a sudden my Google search layout switched back to its old interface with a black bar on top.
I've tried logging out and logging in my account, cleared all navigation data, cache and cookies but to no avail.
It's clearly a Chrome issue since navigation with Safari is fine and I'm on a really fast connection.
Do you how I could get back to the new layout?
AI: In the end I've decided to reset Chrome back to its defaults, when you do that all extensions are automatically disabled. Everything appeared to be fixed but when I enabled them again I was back to the old layout.
Turns out I had an extension called Quick Javascript Switcher and I must've accidentally clicked the button to disable javascript for that page. D'oh. |
H: How can I check my storage on my OneDrive for business account?
How can I check my storage on my OneDrive for a business account?
https://faq.oit.gatech.edu/content/how-do-i-check-my-storage-usage-onedrive-business says:
but I don't have the "site settings" option in my setting menu:
and searching for "site" in the settings doesn't return anything:
AI: log in to your account
go to https://onedrive.live.com/?v=managestorage
or click on the progress bar:
then you can click on What's taking up space? |
H: Return first vertical value that matches given criterion
On Google Sheets, I would like to figure out a way to have a cell return the first value in column C where the same row in column D matches the criterion ("Blue" for example, as opposed to "Red"). I only need the value that is vertically the highest in column C whose row fits the criterion, since the column is already sorted. Additionally, I will be using this formula on a given sheet (ex. "Sheet A") but referring to data from another sheet which contains the criteria ("Sheet B" for example). Sorry, I'm a bit new to arrays and/or complicated formulae in Sheets.
AI: for numbers:
=QUERY(C:D, "select C where D = 5 limit 1", 0)
for text:
=QUERY(C:D, "select C where D = 'red' limit 1", 0) |
H: Query returning #VALUE error when the column has no values
The below query returns #VALUE error when the column H is completely empty:
=QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!A4;"dd/mm/yyyy")&"', H*"&substitute('Input Longo'!A5;","; ".")&"
WHERE H IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!A4;"dd/mm/yyyy")&"' '', H*"&substitute('Input Longo'!A5; ","; ".")&" ''")
How do I make it only ignore this query and not give the value error? Because this query is only for one month, I have code for the other 11 months and wanted to simply omit the months without values. The current fix I found is to put a 0 on each column, to make the query run.
Find below the copy of the spreadsheet, with the full query. The formula is on the ZDP08 sheet, cell A2:
spreadsheet cc
AI: wrap it in IFERROR and add fake columns for false part
IFERROR(your-query-here; {""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""})
full formula in ZDP08!A2 cell:
={
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!A4;"dd/mm/yyyy")&"', H*"&substitute('Input Longo'!A5;","; ".")&"
WHERE H IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!A4;"dd/mm/yyyy")&"' '', H*"&substitute('Input Longo'!A5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!B4;"dd/mm/yyyy")&"', H*"&substitute('Input Longo'!B5;","; ".")&"
WHERE H IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!B4;"dd/mm/yyyy")&"' '', H*"&substitute('Input Longo'!B5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!C4;"dd/mm/yyyy")&"', I*"&substitute('Input Longo'!C5;","; ".")&"
WHERE I IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!C4;"dd/mm/yyyy")&"' '', I*"&substitute('Input Longo'!C5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!D4;"dd/mm/yyyy")&"', I*"&substitute('Input Longo'!D5;","; ".")&"
WHERE I IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!D4;"dd/mm/yyyy")&"' '', I*"&substitute('Input Longo'!D5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!E4;"dd/mm/yyyy")&"', J*"&substitute('Input Longo'!E5;","; ".")&"
WHERE J IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!E4;"dd/mm/yyyy")&"' '', J*"&substitute('Input Longo'!E5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!F4;"dd/mm/yyyy")&"', J*"&substitute('Input Longo'!F5;","; ".")&"
WHERE J IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!F4;"dd/mm/yyyy")&"' '', J*"&substitute('Input Longo'!F5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!G4;"dd/mm/yyyy")&"', K*"&substitute('Input Longo'!G5;","; ".")&"
WHERE K IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!G4;"dd/mm/yyyy")&"' '', K*"&substitute('Input Longo'!G5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!H4;"dd/mm/yyyy")&"', K*"&substitute('Input Longo'!H5;","; ".")&"
WHERE K IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!H4;"dd/mm/yyyy")&"' '', K*"&substitute('Input Longo'!H5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!I4;"dd/mm/yyyy")&"', L*"&substitute('Input Longo'!I5;","; ".")&"
WHERE L IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!I4;"dd/mm/yyyy")&"' '', L*"&substitute('Input Longo'!I5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!J4;"dd/mm/yyyy")&"', L*"&substitute('Input Longo'!J5;","; ".")&"
WHERE L IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!J4;"dd/mm/yyyy")&"' '', L*"&substitute('Input Longo'!J5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!K4;"dd/mm/yyyy")&"', M*"&substitute('Input Longo'!K5;","; ".")&"
WHERE M IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!K4;"dd/mm/yyyy")&"' '', M*"&substitute('Input Longo'!K5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!L4;"dd/mm/yyyy")&"', M*"&substitute('Input Longo'!L5;","; ".")&"
WHERE M IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!L4;"dd/mm/yyyy")&"' '', M*"&substitute('Input Longo'!L5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!M4;"dd/mm/yyyy")&"', N*"&substitute('Input Longo'!M5;","; ".")&"
WHERE N IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!M4;"dd/mm/yyyy")&"' '', N*"&substitute('Input Longo'!M5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!N4;"dd/mm/yyyy")&"', N*"&substitute('Input Longo'!N5;","; ".")&"
WHERE N IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!N4;"dd/mm/yyyy")&"' '', N*"&substitute('Input Longo'!N5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!O4;"dd/mm/yyyy")&"', O*"&substitute('Input Longo'!O5;","; ".")&"
WHERE O IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!O4;"dd/mm/yyyy")&"' '', O*"&substitute('Input Longo'!O5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!P4;"dd/mm/yyyy")&"', O*"&substitute('Input Longo'!P5;","; ".")&"
WHERE O IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!P4;"dd/mm/yyyy")&"' '', O*"&substitute('Input Longo'!P5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!Q4;"dd/mm/yyyy")&"', P*"&substitute('Input Longo'!Q5;","; ".")&"
WHERE P IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!Q4;"dd/mm/yyyy")&"' '', P*"&substitute('Input Longo'!Q5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!R4;"dd/mm/yyyy")&"', P*"&substitute('Input Longo'!R5;","; ".")&"
WHERE P IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!R4;"dd/mm/yyyy")&"' '', P*"&substitute('Input Longo'!R5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!S4;"dd/mm/yyyy")&"', Q*"&substitute('Input Longo'!S5;","; ".")&"
WHERE Q IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!S4;"dd/mm/yyyy")&"' '', Q*"&substitute('Input Longo'!S5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!T4;"dd/mm/yyyy")&"', Q*"&substitute('Input Longo'!T5;","; ".")&"
WHERE Q IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!T4;"dd/mm/yyyy")&"' '', Q*"&substitute('Input Longo'!T5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!U4;"dd/mm/yyyy")&"', R*"&substitute('Input Longo'!U5;","; ".")&"
WHERE R IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!U4;"dd/mm/yyyy")&"' '', R*"&substitute('Input Longo'!U5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!V4;"dd/mm/yyyy")&"', R*"&substitute('Input Longo'!V5;","; ".")&"
WHERE R IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!V4;"dd/mm/yyyy")&"' '', R*"&substitute('Input Longo'!V5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!W4;"dd/mm/yyyy")&"', S*"&substitute('Input Longo'!W5;","; ".")&"
WHERE S IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!W4;"dd/mm/yyyy")&"' '', S*"&substitute('Input Longo'!W5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""});
IFERROR(QUERY('Input Longo'!A8:S;"SELECT '000', A, B, C, D, E, ' ', F, ' ', ' ', ' ', G, ' ', ' ', ' ', '"&TEXT('Input Longo'!X4;"dd/mm/yyyy")&"', S*"&substitute('Input Longo'!X5;","; ".")&"
WHERE S IS NOT NULL
LABEL '000' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', ' ' '', '"&TEXT('Input Longo'!X4;"dd/mm/yyyy")&"' '', S*"&substitute('Input Longo'!X5; ","; ".")&" ''");{""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""\""})} |
H: Getting data from another Google sheet that isn't in the same order
I have a very basic knowledge of deeper functions of Google sheets and solving this has been a little bit of pain in the butt so far.
I have a spreadsheet A
column A contains ID
column I that has the info that I need to receive
I have spreadsheet B
in my column X I need to get the exact data that is in spreadsheet A, column I
the thing is these two spreadsheets don't have the same order of IDs so basically I need it first look for the correct ID, THEN to duplicate data into my spreadsheet B, column X.
Column A in both sheets contain IDs, just assorted compared to each other.
Hopefully, this explanation is understandable enough.
AI: =ARRAYFORMULA(IFERROR(VLOOKUP(W2:W;
IMPORTRANGE("17FPRpPL0ieLGAw1971urLUu_egG7bMBqDtpzRk6-_ic";
"Sheet1!A2:I"); 9; 0); ))
W2:W in your case A1:A
17FPRpPL0ieLGAw1971urLUu_egG7bMBqDtpzRk6-_ic needs to be changed for yours (spreadsheet A)
Sheet1!A2:I will need to have actual sheet name (the part before !)
9 is column number of column I
if you get #REF! error first use =IMPORTRANGE("ID-or-URL", "Sheet1!A2:A") and allow access and then use that array formula with vlookup from above |
H: How to return all values (horizontal array) in B that has the same key stored in A?
Sample Sheet 1:
A B
1 a x
2 a y
3 a z
4 b i
5 b h
6 b w
Formula result, in Sheet 2, I am looking for:
A B C D
1 a x y z
2 b i h w
AI: ={UNIQUE(FILTER('Sheet 1'!A1:A, 'Sheet 1'!A1:A<>"")),
ARRAYFORMULA(SPLIT(TRANSPOSE(
QUERY(TRANSPOSE(IF(TRANSPOSE(
QUERY(TRANSPOSE(
QUERY({'Sheet 1'!A1:B}, "select count(Col1)
where Col1 !=''
group by Col1
pivot Col2", 0)),
"select Col2, Col3", 0))>=1,
QUERY({'Sheet 1'!A1:B}, "select count(Col1)
where Col1 !=''
group by Col1
pivot Col2
limit 0"), ))&"♥", ,
COLUMNS(TRANSPOSE(A2:B)))), "♥ "))} |
H: Why is the total number of comments is larger than the counted number in Reddit?
I have seen this several times, for example, this post. At the moment of asking this there are only 6 visible comments, but the total number says it's 7. Why is that?
AI: It's probably because of removed comment(s). Among possible reasons are: removal by Reddit's site-wide automated spam filters, or if a user is shadowbanned in Reddit.
A shadowban is the tool we currently use to ban people when they are caught breaking a rule. It causes their submitted content and user profile page to be visible only to themselves while logged in. Moderators can see their comments within their subreddit (since they can see "removed" comments in the subreddit they moderate), but no other users can see their content, and nobody else can see their userpage.
Moderators of a subreddit can also remove comments within the subreddit they moderate. They can also automate removal of comments, including all comments by a specific user through AutoModerator.
From Reddit's FAQ page:
There are missing comments in a thread
If you find a thread that says
there are more comments than you can see in the thread, the "missing"
comments were probably removed - by the moderators of that subreddit,
by the reddit spam filter, or by the subreddit's local AutoModerator.
A comment which is removed in this way actually stays in the thread;
it is merely hidden so that readers can't see it. So, reddit counts a
removed comment in the total comments for a thread, but doesn't
display it. |
H: How to get price of specific cryptocurrencies at specific times?
I have an assortment of cryptocurrency transactions over time. Various currency pairs at various prices. I need to figure out what the price of those currencies was, in Bitcoin, at the time that I purchased them.
The manual solution is to look up a historical price chart of each pair (ETH/BTC, LTC/BTC, XRP/BTC, etc.) at the moment of purchase and record that. But needless to say, this is an extremely time consuming and tedious process.
I have the date & time of each purchase, along with the currency purchased and the amount, in a spreadsheet already. I would like to be able to fetch the final data I need from an API of some sort directly in my sheet.
I've gotten something similar using
https://blockchain.info/frombtc?value=100000000¤cy=USD&time=1468858800000&textual=false&nosavecurrency=true
but it only returns the value of BTC in USD. I need to get the value of other currencies in BTC.
I have made some dummy data available here.
AI: this concludes historical Bitcoin value relative to history records
if you want to go full-pro-mode try CRYPTOFINANCE
=CRYPTOFINANCE(C8&"/BTC", "price", B8) * D8
installation: https://cryptofinance.ai/how-to-install
test out: https://chrome.google.com/cryptofinance
limitations: maximum of 10 historical calls per day
price: $39/month, $374/year | 34.51€/month, 330.91€/year
workarounds: https://medium.com/cryptofinance-ai |
H: Nested IF with FIND
I have a list of transactions in column A that I want to categorize.
I want to search A1 for, say, "Shoprite" and if found return "Groceries", otherwise search for "Shell" and return "Gas", otherwise search for "Netflix" and return "Entertainment"
I tried (among other things):
=IF(FIND("Shoprite",A1), "Groceries", IF(FIND("Shell",A1),"Gas", IF(FIND("Netflix", A1),"Entertainment")))
AI: try like this:
=IF(A1="Shoprite", "Groceries",
IF(A1="Shell", "Gas",
IF(A1="Netflix", "Entertainment", )))
if A1 doesn't say exactly Shoprite, but rather Shoprite on 7th, then use this:
=IF(A7=IFERROR(FILTER(A7, (ISNUMBER(SEARCH("Shoprite", A7)))), ), "Groceries",
IF(A7=IFERROR(FILTER(A7, (ISNUMBER(SEARCH("Shell", A7)))), ), "Gas",
IF(A7=IFERROR(FILTER(A7, (ISNUMBER(SEARCH("Netflix", A7)))), ), "Entertainment", ))) |
H: Is Google Maps's "Popular Times" feature only for restaurants?
Is Google Maps's "Popular Times" feature only for restaurants, or is there a way to enable/view it for non-restaurants?
AI: The Popular Times feature is available for any business for which Google has sufficient data to generate the graph. I can see popular times for a swimming pool, a zoo and a shopping centre for example with a quick search.
The Google My Business Help page for the feature has the following to say:
Popular times, wait times, and visit duration are shown for your business if it gets enough visits from these users. You can’t manually add this information to your location, and it appears only if Google has sufficient visit data for your business.
As a user there isn't a way to toggle this feature on or off for a business. |
H: Formula for combining text if there are duplicate numbers
I have a table to combine text with conditions if in column A there is a duplicate number, then in the text in column B combined.
The formula that I have made like this:
=IF(COUNTIF($A:$A,A2)>1,TEXTJOIN(",",TRUE,B2:B),"")
But the results do not match, the results I want in column E.
AI: paste in a cell on the first row:
=ARRAYFORMULA(IF(IF(LEN(A2:A), IF(((COUNTIF(A2:A, A2)<>
COUNTIF(INDIRECT("$A$2:A"), A2:A))+(MATCH(A2:A, $A$2:$A, 0)<
ROW(A2:A)-1))>1, TRUE, ), )=TRUE,
{""; IF((COUNTIF($A$2:$A, $A$2:$A)>1), B2:B, )&
IF((COUNTIF($A$2:$A, $A$2:$A)>1), B3:B, )}, )) |
H: Conditional IMPORTRANGE
In Google Sheets, I'm using IMPORTRANGE to pull in data from to a large sheet.
One field is a dollar amount. I would like to import the dollar amount and replace any zero amount with a specific dollar amount. For example, if the number is $100, I want to import $100. But if the number is $0, I want to import it but replace the $0 with $50.
AI: you can use simple IF formula for that, like:
=IF(IMPORTRANGE("ID", "Sheet1!A1")="$0", "$50", IMPORTRANGE("ID", "Sheet1!A1"))
=ARRAYFORMULA(IF(IMPORTRANGE("ID", "Sheet1!A1:A")="$0", "$50",
IMPORTRANGE("ID", "Sheet1!A1:A")))
to avoid #N/A wrap it into IFERROR |
H: Sum value in cells that contain both number and text
I need to sum a range of cells with text in them.
Example:
a1= "25,00 market" b1="24,00 credit card" c1="75,11 food"
a2= "10,00 sweets" b2="9,00 market" c2="24,00 keyboard"
I want to sum all the numbers in cells that contain "market" in this range. Something like:
=SUMIF(a1:c2; "*market*"; a1:c2 )
But this always returns the value 0.
What am I doing wrong?
AI: US syntax:
=SUMPRODUCT(ARRAYFORMULA(REGEXREPLACE(REGEXEXTRACT(FILTER({A1:A;B1:B;C1:C},
ISNUMBER(SEARCH("*market*", {A1:A;B1:B;C1:C}))), "[0-9]*\,[0-9]+[0-9]+"), ",", ".")))
EU syntax:
=SUMPRODUCT(ARRAYFORMULA(REGEXEXTRACT(FILTER({A1:A;B1:B;C1:C};
ISNUMBER(SEARCH("*market*"; {A1:A;B1:B;C1:C}))); "[0-9]*\,[0-9]+[0-9]+"))) |
H: How can I view my reviews on Amazon?
I'd like to view my reviews on Amazon.
Does anybody know how can do that?
How I can see all my reviews on Amazon?
Note: I have had to make this question a bit repetitive because the simple question of "I'd like to view my reviews on Amazon" with similar one or even two line body, gets flagged as "this question does not meet our quality standards"
Added 19th november 2019
I can't see a profile option where the option would be to see reviews
AI: You can view your reviews from your profile
go to your profile by clicking on your name
click on Profile under Ordering and shopping preferences section
find the review you want to view
and view it, edit it or delete a review you wish |
H: Query function problem
When using a query function that selects two columns from another sheet, I get two results in one cell. It looks like it doesn't respect the initial structure of the selected data. Any idea, please?
AI: =QUERY(ARRAYFORMULA(TO_TEXT(A1:C6)), "select Col1, Col2 where Col3 !='0'") |
H: IMPORTXML not updating for unknown reason
Doing a web scrapping exercise I found that after I was able to view the table in the aim sheet with IMPORTXML the formula stopped pulling/scrapping and an #N/A tag show up in its place.
AI: remove = operator
press ENTER
and then again add =
=IMPORTXML("http://finance.yahoo.com/quote/%5EAEX/components?p=%5EAEX", "//thead/tr") |
H: How do I log into Discord?
Every time I go to Discord, it asks me to claim an account. I click the button to claim the account and enter my username & password, but it says the email is already taken. That's because I already have a Discord account! So how do I actually log into Discord instead of always registering? There is no login button! It always forces you to register, even if you already have an account!
AI: I went to User Settings (Gear Icon at bottom) > Logout > Logout > then was able to log in, then click on the Discord link from the original web site to 'accept invitation' to that site's channel. |
H: Combining numbers based on a separate cell
I'm trying to make a sheet that records every 'player's' balance. Transactions come from a form, and I was wondering if I could run a script that
Reviews each incoming data set
Adds an amount [what the form said] to the player's balance.
AI: ={"NAME", "TOTAL BALANCE";
QUERY({Sheet1!A3:B},
"select Col1, sum(Col2)
where Col1 is not null
group by Col1
label sum(Col2)''", 0)}
={"NAME", "TOTAL BALANCE";
QUERY({'Form Responses 1'!C2:D},
"select Col2, sum(Col1)
where Col2 is not null
group by Col2
label sum(Col1)''", 0)}
={"NAME", "TOTAL BALANCE";
QUERY({'Form Responses'!C2:D},
"select Col2, sum(Col1)
where Col2 is not null
group by Col2
label sum(Col1)''", 0)}
={"NAME"; "TOTAL BALANCE"\
QUERY({'Form Responses 1'!C2:D};
"select Col2, sum(Col1)
where Col2 is not null
group by Col2
label sum(Col1)''"; 0)}
={"NAME"; "TOTAL BALANCE"\
QUERY({'Form Responses'!C2:D};
"select Col2, sum(Col1)
where Col2 is not null
group by Col2
label sum(Col1)''"; 0)} |
H: ProtonMail turn off auto-copy of conversation
When I reply in ProtonMail it automatically includes a copy of the entire conversation so far. I can manually delete all of that every time, but is there a way to turn off this behaviour?
It's especially useless behaviour because ProtonMail already has a conversation styled layout.
AI: Unfortunately no, there isn't any option in ProtonMail which could turn-off this behaviour. (fyi it's a standard behaviour supported by majority email providers - Gmail included)
Your options are to manually delete it each time you wish (as you mentioned) or submit a request for a new future: https://protonmail.com/support-form |
H: When I edit a table in Google Sheet, it auto-changes my data
When I put '4.8.8' into a cell in Google Sheets, it automatically converts it to '4.8.2008'. How do I avoid it?
AI: Did you try clicking on format options on the tool bar. Check the image the below where I have it highlighted. Highlight your cells,columsn,rows,etc. and make sure the format is set to number or automatic. Use the format you need. |
H: Strange "DuckDuckGo dork" takes me to random website
I don't know if this is the correct place to share this, but here goes:
If I search this phrase:
\t _ _\n\t|_||_|\n\t _ _\n\t| |_| |\n\t\\_____/
with DuckDuckGo, it takes me to https://login.i-ready.com/. The phrase is a compressed ascii-art of a smiley face.
Any ideas what on earth causes this strange thing to happen?
I don't even really know if this is suitable for stack exchange, I'm just curious why this happens.
EDIT: It really is random, not just a single website.
AI: This is a "feature" called "!Bang"... as documented here: here and here. There is nothing special about this string (try cutting it down), aside from the very first \.
Specifically giving a ! or \ at the beginning of your query will have a special effect... ! goes to a registered site for quick access, while \ goes to the first search result.
A couple of examples they give are:
!youtube or !yt
!g
If you type your "query" character by character, then you'll see the autocomplete options appear below.
Fundamentally, entering \stackexchange in the search box is equivalent to searching for stackexchange and then immediately clicking the top link.
Equally, entering \t _ _\n\t|_||_|\n\t _ _\n\t| |_| |\n\t\\_____/ will take you to the first result of the query t _ _\n\t|_||_|\n\t _ _\n\t| |_| |\n\t\\_____/. |
H: See the number of comments in a Google Doc
How can I see the number of comments made on a Google Doc?
Apart from manually counting them, of course...
AI: Go to your document
In the address/url/search box of your web browser replace the edit from the document URL with mobilebasic
The comments will be numbered with letters.
Let a = 1, b = 2 and so on...
Go to the last comment.
If it has two letters:
Multiply the first number by 26 then add the second number.
Take [ad]:
1 * 26 = 26 + 4 = 30
That is the total comment number. |
H: Google Apps Script: print, open or download as PDF a Google Doc?
I have created a Form that will run a script on submit to dynamically generate a google doc. So far so good.
What I miss is a way to:
Print the document (open the printing preview in browser)
Preview document (Google doc preview)
Download document
Apparently there's no way to let the script interact with the browser. Is this true?
AI: Yes, that is true for server-side code. Some people published Chrome Extensions or used client side code to make it possible to automate some web browser tasks like the one suggested by Jacob Jan Tuinstra on his answer to Print all Gmail messages between specific dates
Related
How to get and use a value of a cell in the PDF file name exporting using that script
Export PDF link sheet ID auto change
Custom function to export a google sheet to PDF |
H: Extract Value from Poorly formed JSON result
I have a Google script that returns the following result set, but when I try to get the value for asking_price or asking_price_condition it comes back undefined. I assume it's because of some {} subsets are nested in the result. any help.
{manheim_sequence=30, option_air_conditioning=true, option_rear_park_aid=false, gross_vehicle_weight=6950, year=2017, option_tilt_tele_wheel=true, intake_date_old=null, seats=Cloth, manheim_maa=5208221, option_non_factory_exhaust=false, option_power_windows=true, manheim_submitted_on=2018-11-28T15:04:57.000-05:00, transmission=Automatic, ext_paint=White, option_cd=true, option_power_door_locks=true, product_id=88423, needs_transport=false, vin=1C6RR7LM7HS874776, model=1500, id=88495, fuel_type=Diesel, option_airbags=true, arrival_date=2018-11-15, mileage=8098, option_adj_pedals=false, option_air_susp=false, option_chrome_wheels=true, option_pan_roof=false, option_wireless_cell=false, option_alum_wheels=false, option_dvd=false, drivetrain=4 Wheel Drive, option_dual_climate_control=true, engine_cylinders=6 Cylinder, option_alloy_wheels=false, option_altered_suspension=false, condition=4.3, active_admin_comments=[Ljava.lang.Object;@35547aa4, option_cruise_control=true, option_power_steering=true, manheim_auction_number=14, option_running_bd=true, style=Big Horn 4x4 Crew Cab 5'7" Box, option_premium_sound=false, option_moonroof=false, custom_description=Bought from AB , option_power_mirrors=true, option_rear_window_defroster=false, option_addl_rear_seat=false, trim_level=Big Horn, has_unibody_damage=false, option_power_seats=true, option_tinted_glass=false, has_title=null, option_child_seat_anchors=false, clean_code=TD, owner_partner={website=, bill_address_id=5168, manheim_auction_price=100, role=0, is_active=true, ship_address_id=5169, qb_edit_sequence=1550083245, sales_contact=BRIAN PIGER 717-553-3080, created_at=2016-05-19T14:41:00.000-04:00, qb_list_id=80000983-1463508945, manheim_maa=5208221, client_id=4, alt_phone=, account_id=KELL3, resale_number=5208221, updated_at=2019-02-13T13:43:46.000-05:00, phone=7175533080, partner_category=1, name=KELLER BROS DODGE, manheim_auction_highline_price=150, id=4609, fax=7176261885, email=bpiger@kellerbrosdodge.com}, option_power_brakes=true, option_rear_ac=false, option_heated_seats=null, oem_int_color=Diesel Gray/Black, option_heated_p_seat=true, make=Ram, manheim_lane_number=9, option_antilock_brakes=false, option_sat_radio=true, product={custom_option_assignments=[Ljava.lang.Object;@3a5e5ef2, notes=, system_stock_number=10050730, expense_total=10, buyer_id=51, product_category_id=4, sale_note=, external_url=, product_status_updated_by=Jimmy Harish, id=88423, estimated_value=30300, payment_received=false, total_spent=10, product_status_id=2, location_vendor_id=null, owner_partner_id=4609, sold_to_partner_id=null, as_product_type=Car, payment_reference=, created_by=Charlie Null, stock_number=10050730MS, report_value_adjustment=0, location_notes=, product_status_updated_at=2019-02-18T15:34:03.000-05:00, retail_user_id=null, purchase_price=0, updated_by=Bill Spencer, purchase_date=2019-02-18, payment_deposit_date=null, asking_price_condition=, transport_partner_id=null, created_at=2018-11-15T08:44:29.000-05:00, buyback=false, intake_date=null, gl_payment_line_id=null, product_images=[Ljava.lang.Object;@445d7c3a, purchase_fee=0, primary_image_id=null, updated_at=2019-02-21T12:29:50.000-05:00, sale_date=null, price_bid=0, location_customer_id=null, sale_reference=, gl_payment_line_payment_index=null, sale_fee=0, vendor_partner_id=null, in_arbitration=false, payment_status=0, serial_number=1C6RR7LM7HS874776, location_vendor_name=, sale_price=0, location_type=1, location_customer_name=, current_product_purchase_id=55783, asking_price=32800, record_complete=true}, general_description=BRIGHT WHITE CLEARCOAT, A/T, CLOTH, DIESEL, 4WD, V6, AIRBAG S/C, A/C, DUAL CLIMATE, PWRDL, PMIRRORS, PSEATS, PWRW, CHROME WHEELS, HTD D SEAT, HTD P SEAT, CD, SAT RADIO, RUNNING BD, 6950GVW, BOUGHT FROM AB , option_heated_d_seat=true, option_backup_cam=false, option_air_bag_side_curtain=true, option_active_susp=false, title_date=null, option_non_factory_wheels=false, option_dual_moonroof=false, option_child_seat=false, option_sun_moon_roof=false, oem_ext_color=Bright White Clearcoat, int_color=Gray, option_navigation=false, option_conv_ht=false, option_altered_intake=false}
AI: =REGEXEXTRACT(FILTER(
TRANSPOSE(SPLIT(SUBSTITUTE(A1, ", ", "×"), "×")), ISNUMBER(SEARCH("*"&"asking_price="&"*",
TRANSPOSE(SPLIT(SUBSTITUTE(A1, ", ", "×"), "×"))))), "=(.+)") |
H: Google Sheets Formula for Attendance Records
I have a very overwhelming and large attendance sheet of 350+ people that I need to keep track of. I have a very simple attendance record of 0 if you weren't there and 1 if you were. For one of our events, in particular, people sign in through a Google sheet document. I would like to be able to take the names of the people that I have in one sheet and add a 0 or 1 to the "main" attendance sheet if their name appears on the sign-up sheet. Is there a formula that I could use to do this?
I have created a "mock" attendance record of something similar to what I need. Here are the images:
But notice how I have a separate sheet entitled 2/21 General Meeting of all the people who attended that specific event.
So for the "Official Attendance" sheet, I would like to add a 1 next to Bob Smith, etc5, etc11, etc2, and etc12 and a 0 to everyone else in the 2/21 General Meeting column.
Is this possible? How would I do this?
AI: =ARRAYFORMULA(IF(LEN(A6:A),
IF(IFERROR(VLOOKUP(A6:A, '1/17 Callout Meeting'!C1:C, 1, 0), )<>"", 1, 0), )) |
H: How to make a formula so it repeats istself indefinetly
I have a formula that does exactly what I need except for that, for now, I need to manually expand the range for which it applies.
What do I need to add so I only have this in one cell and it automatically applies for an infinite amount of rows?
=AND(D3:D=TRUE;E3:E>0;F3:F>0)
AI: Use formula:
=ARRAYFORMULA((D3:D=TRUE)*(E3:E>0)*(F3:F>0)=1)
Even shorter:
=ARRAYFORMULA((D3:D)*(E3:E>0)*(F3:F>0)=1)
If you need to combine an arbitrary number of AND / OR operations, simply add (1-...) and parentheses as needed.
See this. |
H: Extract Information from Webpage onto Google Sheets
I've been trying to grab some data from this webpage: https://seekingalpha.com/symbol/BZUN. I want to import the follower count (under the add to portfolio button) into a cell on google sheets. For example, the data I'd try to import under this page would be the (22,201 followers).
I think that I need to use =importXML with this. However, it's not working. From the research that I've done, it's because that value isn't static and comes from another source.
I believe that the remedy to my problem is do use Regex Extract, but I have no idea how to do this.
AI: From the research that I've done, it's because that value isn't static and comes from another source
You are not wrong there. after disabling JavaScript you can observe that followers count case to exist, and therefore not even regex will help. |
H: What is 'legacy search' on Reddit?
As the comment beneath was posted to answer the question titled "Why is the Reddit search engine so awful?", I'm inferring that 'legacy search' is better than Reddit's standard search? How?
This is a good time to remind people, especially those with newer accounts, that you can enable the much superior legacy search by going to preferences>display options>show legacy search page
AI: Long story short, Reddit developers thought that Reddit needs some fresh look and new modern design futures, so they redesigned it and in this process they kind of killed a lot of useful futures of Reddit which were vastly used by Reddit users even moderators. It was a major issue and it got the attention of many angry users to get back things as they were before the update.
So Reddit decided to listen to the crowd (partially) and shortly enrolled update which would allow getting back those lost futures (subreddit karma breakdown, the gilding trophy privacy setting, easier and faster navigation, no hidden responses deeper in threads, etc.) if the user would manually add/append &feature=legacy_search to the end of the URL. Then the anger of folks was redirected on: "Why we always need to modify the URL to get it as we want?!!" ...and the next Reddit update added a checkbox in the settings called show legacy search page which when ticked/checked would automatically append &feature=legacy_search chunk to the URL.
https://www.reddit.com/r/changelog/
https://www.reddit.com/r/comments/legacy_search/ |
H: Conditional Formatting Text with more then one value
I am looking to have a row of 20 cells change font colour based on ABC to Z being white. Then 0 to 10 being blue. Then all the symbols being red.
Is there a way to do this? I found I can do this but I would have to make a rule for each character. I would like to have in one rule something like "a" or "b" and so on
AI: for ABC...
=IF(REGEXEXTRACT(A1,"[A-Za-z]+")<>"",1)
for 123...
=IF(REGEXEXTRACT(TO_TEXT(A1),"\d+")<>"",1) |
H: How to combine two QUERY results into one column
I have the following QUERY
=query(XX!A2:A;" select A where A>'50' ")
and
=query(YY!A2:A;" select A where A>'50' ")
how do I combine these two data sources so I don't have to have two separate columns they process data to?
best would be if the 1st row from XX is followed by the 1st row of YY, 2nd row followed by 2nd row... and so on
If the above option is not easily possible, it is OK for one query to be followed by the second one (if I expect correctly that the start of the second will be moved with newly added data into the first one)
AI: the most easier is to do:
={QUERY(XX!A2:A; "select A where A>'50'");
QUERY(YY!A2:A; "select A where A>'50'")}
={QUERY(XX!A2:A; "select A where A is not null");
QUERY(YY!A2:A; "select A where A is not null")}
to zip 2 queries you can do:
=QUERY({{ARRAYFORMULA(ROW(INDIRECT("A1:A"&COUNTA(QUERY(XX!A2:A;
"select A where A is not null")))))\QUERY(XX!A2:A;
"select A where A is not null")};
{ARRAYFORMULA(ROW(INDIRECT("A1:A"&COUNTA(QUERY(YY!A2:A;
"select A where A is not null")))))\QUERY(YY!A2:A;
"select A where A is not null")}};
"select Col2 order by Col1 asc") |
H: Adapting Conditional Formatting Formula for Cross Sheet Reference
I currently have a sheet setup for work that compares 3 columns of data with conditional formatting. The goal is to identify whether the same string of characters can be found 1 2 or 3 times across all 3 columns. I have been using the following conditional formatting formulas =countif(A:C,A1)=1 and I have 2 more formulas with =2 and =3 at the end. It works perfectly for my needs except I would like to be able to sort/filter each column separately which Google Sheets doesn't seem capable of doing. So my thought was to separate each column into a separate sheet. The only issue is I can't figure out the proper way to make the conditional format work cross-sheet and still give me the needed results of identifying the same information 1-2-3 times spread out over 3 sheets. I tried something like =countif(Sheet1!:A,A1)=1 but it doesn't seem to be a valid formula and I'd need to check all 3 sheets, not just one. What I essentially want to do is replace the A:C part of the original formula with Sheet1:Sheet3 but I'm not sure how or if that's possible. It may not even be a possibility but figured this was the place to ask.
AI: conditional formatting can't intake a cross-sheet reference without INDIRECT therefore try:
=COUNTIF(INDIRECT("Sheet1!A1:A"), A1)=1
and from there you can build an array:
=COUNTIF({INDIRECT("Sheet1!A1:A");
INDIRECT("Sheet2!A1:A");
INDIRECT("Sheet3!A1:A")}, A1)=1 |
H: Conditionally format rows with partial matches
I have a Google Sheets table that looks like this:
(col a) (col b) (col c) (col d)
Company Cohort Session Count Group
--------------------------------------------
Acme Jan2019 4 Foo
Acme Jan2019 3 Bar
Fairview Jan2019 3 Baz
Fairview Jan2019 3 Buzz
Warner Feb2019 2 Buzz
I want to highlight rows were A and B are the same but C is not. Bonus points if it can highlight only the row with the lower number, but not necessary.
example:
Company Cohort Session Count Group
--------------------------------------------
Acme Jan2019 4 Foo
Acme Jan2019 3 Bar (this row gets highlighted)
Fairview Jan2019 3 Baz
Fairview Jan2019 3 Buzz
Warner Feb2019 2 Buzz
Can I accomplish this with Conditional Formatting, or do I need to write some JS to process this? I am not savvy with conditional formatting and would love some help. I can, of course, solve it with JS but would prefer not to if possible.
AI: you will need to establish an auxiliary column and then set up conditional formatting from there:
={"AUX"; ARRAYFORMULA(REGEXREPLACE(IFERROR(VLOOKUP(A2:A&B2:B&" "&C2:C,
TRANSPOSE(QUERY(TRANSPOSE(VLOOKUP(QUERY(QUERY(QUERY(QUERY(
{INDEX(IF(LEN(A2:A), IF(COUNTIF(A2:A&B2:B, A2:A&B2:B)>1=TRUE, A2:C, ), ), , 1)&
INDEX(IF(LEN(A2:A), IF(COUNTIF(A2:A&B2:B, A2:A&B2:B)>1=TRUE, A2:C, ), ), , 2),
INDEX(IF(LEN(A2:A), IF(COUNTIF(A2:A&B2:B, A2:A&B2:B)>1=TRUE, A2:C, ), ), , 3)},
"select Col1,Col2,count(Col1) where Col1 is not null group by Col1,Col2"),
"where Col3 <2"), "select Col1,count(Col1) group by Col1"), "select Col1"),
QUERY(QUERY(
{INDEX(IF(LEN(A2:A), IF(COUNTIF(A2:A&B2:B, A2:A&B2:B)>1=TRUE, A2:C, ), ), , 1)&
INDEX(IF(LEN(A2:A), IF(COUNTIF(A2:A&B2:B, A2:A&B2:B)>1=TRUE, A2:C, ), ), , 2),
INDEX(IF(LEN(A2:A), IF(COUNTIF(A2:A&B2:B, A2:A&B2:B)>1=TRUE, A2:C, ), ), , 3)},
"select Col1,Col2,count(Col1) where Col1 is not null group by Col1,Col2"),
"where Col3 <2"), {1, 2}, 0)), , 99999)), 1, 0), ), ".+", "1"))}
custom formula is: =$H1="1" |
H: Find song and artist names with special characters in Google Play
When I try to use Google Play's search functionality to find special characters such as "-", "." or "[" it doesn't filter results by these characters.
How can I search for songs and artists that contain special characters like these?
AI: You can do this in JavaScript using the IndexedDB that Google Play uses. Just change out the "-" below with whatever string (including special characters) that you want to search for.
Currently it only searches the track and artist names. If you want it to also search the album, add t[4].includes(specialChar) to the if statement. If you want it to also search the genre, add the same thing but using 11.
(function () {
const specialChar = "-";
console.log("=====Songs and artists containing " + specialChar + ": =====");
indexedDB.databases().then(info => {
const name = info.find(db => db.name.indexOf("music_") === 0).name;
indexedDB.open(name).onsuccess = e => {
const t = e.target.result.transaction("tracks", "readwrite");
t.oncomplete = () => {
console.log("=====All tracks listed.=====")
}
t.objectStore("tracks").openCursor().onsuccess = e => {
if (e = e.target.result) {
let data = JSON.parse(e.value);
Object.values(data).forEach(t => {
if(t[1].includes(specialChar)
|| t[3].includes(specialChar)) {
console.log(t[3] + " - " + t[1]);
}
});
e.continue();
}
}
}
}).catch(e => console.log(e));
})() |
H: VLOOKUP needs to find value from a list and if its equivalent then
I have a problem where I'm currently using a VLOOKUP function on this sheet. LINK
What I wanted to happen is VLOOKUP would search on the List on G column and compare it to B column and if it matches. It will return a value y. The problem I encountered is it can't search from a list.
If anyone can help me. That would be great.
AI: your VLOOKUP should look something like this:
=ARRAYFORMULA(IF(IFERROR(VLOOKUP(B2:B; List!G2:G; 1; 0); )<>""; "y"; )) |
H: How to use custom function with arrayformula?
I'd like to use a Google Apps Script custom function in conjunction with arrayFormula so this may be applied to a range. How do I achieve this?
Let's say I have wrote a function that will return current cell coordinates and wish to apply/run the custom function on each cell in a range (A1:A), what syntax should I use?
Cell value:
=arrayFormula(testFunction()) // works only on one cell
Code:
function testFunction(){
return SpreadsheetApp.getActiveRange().getA1Notation();
}
AI: In order to use a custom function with array formula, it should be able to return to get as input and return as result array of values.
The custom function provided as example has no input parameter and return a single value. Please checkout https://developers.google.com/apps-script/guides/sheets/functions. It shows how to write a simple function, DOUBLE(), and also explains how to enhance it to make it able to return an array of values, in this case, by using the Array.prototype.map JavaScript method:
/**
* Multiplies the input value by 2.
*
* @param {number} input The value or range of cells to multiply.
* @return The input multiplied by 2.
* @customfunction
*/
function DOUBLE(input) {
if (input.map) { // Test whether input is an array.
return input.map(DOUBLE); // Recurse over array if so.
} else {
return input * 2;
}
} |
H: Why does Airbnb raise the price of a house $90/night when you go to check out?
This house is listed at $210/night. When my sister went to book the house, the price suddenly jumped to $300/night. Why?
This is the listing:
https://www.airbnb.com/rooms/20618733
AI: Airbnb has a "bug" that fails to add up per night prices and only displays the lowest base price × # nights.
When you are the establishment/host and trying to set up an offer on Airbnb, there is only one field where you can enter the price for the night which will be displayed on the website, so it happens that Airbnb in some cases shows in preview the initial/minimum price per night (to avoid further "confusion" while browsing which then takes you by surprise when you check out) because it assumes that hosts have this price set as static (as they should and as they have in most cases). Prices are given by host and they are not necessary to be static as you can notice in this scenario where the price for the night depends on other aspects of total pricing like:
Service fee which is dependent on a day of the week you trying to stay over. For example, if you trying to book a night from:
Monday to Tuesday the fee is 48$
Tuesday - Wednesday = 48$
Wednesday - Thursday = 48$
Thursday - Friday = 54$
Friday - Saturday = 61$
Saturday - Sunday = 61$
Sunday - Monday = 61$
Based on this trend, you can notice what's going on... There's a fee for the frequency. Casual, uninteresting days are for 48$ while weekends/holidays (individual holidays may have their own "holiday" fee) when is expected the higher interest for a stay-over, prices are highest (61$) - which kind of makes sense from "small business perspective" (only bigger hotel companies can afford to drop these kinds of dynamic fees and by "dropping" you should understand - setting a maximum price for all days(nights) to not look so fishy)
Service fee statement: This helps us run our platform and offer services like 24/7 support on your trip. It includes VAT
Then you have Occupancy taxes and fees which is the same deal because the tax part is calculated based on day of the week and fee part is calculated as last, based of everything else mentioned above.
Occupancy taxes and fees statement: Accommodations Tax (New Hampshire) |
H: Using Google Sheets to dynamically add entries to column based on logic?
I have a list of people that I have a drop down for if they are attending or not to an event.
If "Yes" I want them to be added to another column on sheet 2. Except I don't know how to add them dynamically. So if I have 50 people and only 10 say yes, how do I have the first 10 rows populate with the people?
I think excel has a table/object ability but I don't see this in excel.
Any ideas?
AI: =FILTER(A:A, B:B="yes")
=QUERY(A:B, "select A where B='yes'") |
H: Are there different types of releases on GitHub?
I have just noticed that there seem to be different ways to present releases on GitHub:
https://github.com/rg3/youtube-dl/releases:
https://github.com/exiftool/exiftool/releases:
These two ways can also be mixed in the same project, as seen here,
https://github.com/rg3/youtube-dl/releases?after=2016.06.16:
What is the significance of these differences, and how can the author influence this? Is the only difference being a "verified" release? Why does exiftool not have a "Latest release"? And, finally, is this related to me not getting any release notification for exiftool, although I am watching exiftool releases and keep getting release notifications for youtube-dl?
AI: The answer is, according to the GitHub support, that
the "Releases" page (https://github.com/rg3/youtube-dl/releases and https://github.com/exiftool/exiftool/releases) will show tags and releases.
exiftool is actually not making any formal releases - what is shown are tags. That is also why there is no "Latest release".
Also, this explains why I don't get any release notification:
We don't currently send release notifications for tags, even with "Watching releases" enabled. |
H: How to date/timestamp for modifications in Google Sheets?
I have a sheet that has information in 8 columns starting in row 14. I would like I14:I310 to date stamp anytime there is an update in the corresponding row. I have tried a couple of different ways and haven't found anything to be successful as of yet. Ideas?
AI: add this script to your sheet and change format and time zone if you need so ("GMT+1", "dd.MM.yyyy"):
function onEdit(event)
{ var sheet = event.source.getActiveSheet();
// note: actRng = the cell being updated
var actRng = event.source.getActiveRange();
var index = actRng.getRowIndex();
var cindex = actRng.getColumnIndex();
var dateCol = sheet.getLastColumn();
var lastCell = sheet.getRange(index,dateCol);
var date = Utilities.formatDate(new Date(), "GMT+1", "dd.MM.yyyy");
lastCell.setValue(date);
}
demo spreadsheet |
H: If cell contains a text string assign a value to another cell
This is my Google Sheet.
I have a number of "shopping" cells formatted to have a dropdown list of products/words using the (right-click) "data validation" function.
I have another cell I want to come up with a total price of all the products chosen from the various "shopping" cells, given each product/word has a defined number value/price.
e.g.
cell 1 chooses "widget1"
cell 2 chooses "widget4"
cell 3 chooses "widget7"
widget1 costs 10
widget4 costs 13
widget7 costs 25
Finally, I want a total price cell to show the total price of all the products chosen.
AI: ={"Price";
ARRAYFORMULA(IF(LEN(A8:A),
IFERROR(VLOOKUP(A8:A, E2:F4, 2, 0), 0)+
IFERROR(VLOOKUP(B8:B, G2:H4, 2, 0), 0)+
IFERROR(VLOOKUP(C8:C, I2:J4, 2, 0), 0), ))} |
H: View all validation rules
I've just created Data Validation for the named range. How can I edit the validation? I tried to click Data Validation... on the range, but there is a new validation rule, but not existing for the range (selected ranges are equals). Is there possible to view all validation rules for the sheet?
AI: Not possible, there is no Data validation preview in Google Sheets where you would see the list of all rules you created (like in Conditional formatting, Protected ranges or Named ranges). |
H: Return a list of unique values based on part of the string - Google Sheets
I have a list of values as follows:
Maestro purchase 28.02.2019 18:54 Coop-4853 ZH Bombach Card number: 79090775
Payment order
Maestro purchase 27.02.2019 08:29 VBZ FRANKENTAL Card number: 79111775
Maestro purchase 27.02.2019 17:48 VBZ SIHLQUAI/HB Card number: 79111775
Maestro purchase 27.02.2019 08:29 VBZ FRANKENTAL Card number: 79111775
Debit LSV+ VISECA CARD SERVICES SA
Maestro purchase 27.02.2019 18:36 Coop-4853 ZH Bombach Card number: 79111775
Maestro purchase 25.02.2019 14:32 VBZ ZURICH VERKEHRSB Card number: 79111776
Maestro purchase 25.02.2019 16:21 Gemeinde Oberengstri Card number: 79111776
Maestro purchase 23.02.2019 14:39 VBZ FRANKENTAL Card number: 79111776
Maestro purchase 23.02.2019 15:27 VBZ MEIERHOFPLATZ Card number: 79111776
Credit
Maestro purchase 23.02.2019 15:21 Coop-1906 ZH Höngger Card number: 79111776
Maestro purchase 22.02.2019 11:12 VBZ FRANKENTAL Card number: 79111776
Maestro purchase 21.02.2019 07:36 VBZ FRANKENTAL Card number: 79111775
I'd like to have one function that returns a list of all unique occurrences based on this rule:
IF the string starts with Maestro extract the string in between the first 34 chars and the last 22
[34 chars] "String to be extracted" [22 chars]
IF the string does not start with Maestro, then get the full string.
I was able to extract the strings based on the rule above with this function IFERROR(MID(A2,35,LEN(A2)-56),A2) but somehow I got stuck because I might have to wrap everything in an array formula or something.
If it helps here's a spreadsheet with the data:
https://docs.google.com/spreadsheets/d/1SPsZSVRMVZDDlYV7MovJ__0hkIMlXHTWg4Eq5_20gxw/edit?usp=sharing
AI: =UNIQUE(ARRAYFORMULA(REGEXREPLACE(A2:A,
"Maestro purchase \d+.\d+.\d+ \d+:\d+ | Card number: \d+", ""))) |
H: Is it possible to filter Google search results on response headers?
Is there any way to tell Google "give me all the results that contain some response header/value X?
For example, I would like to search for content on a topic, but only include results that have the header and value Access-Control-Allow-Origin: *.
AI: Google Search is not able to provide search results of that type, but there are other search engines which could pull this off like:
https://nerdydata.com/
https://publicwww.com/
https://searchcode.com/ |
H: Is there a way to display named ranges with a space?
Sample spreadsheet here.
In the spreadsheet, there is a dependent drop-down list in the first column, which automatically populates a data validation for the second column using the named range from the first column. This works fine, but any named range with space (e.g. Eating Out) has to be displayed as (Eating_Out or Eating.Out) since named ranges do not accept spaces. Is there any sort of workaround for this?
AI: No, there is no workaround for getting a named range with space.
Range names:
Can contain only letters, numbers, and underscores.
Can't start with a number, or the words "true" or "false."
Can't contain any spaces or punctuation.
Must be 1–250 characters.
Can't be in either A1 or R1C1 syntax. For example, you might get an error if you give your range a name like "A1:B2" or "R1C1:R2C2."
But, there is a workaround for it with auxiliary column and formula:
=IF(A2="Eating Out", {F2:F},
IF(A2="Misc", {G2:G},
IF(A2="Groceries", {H2:H}, ))) |
H: Ignore "joined the Hangout" notifications
I am in a Google Hangout conversation.
All messages are interesting, so I enabled notifications.
Unfortunately, many people join and leave (more than actual messages), and I receive a notification each time.
Question: How to disable Google Hangout notifications for join/leave events?
AI: Currently, there is no option to disable/ignore only "joined/left the Hangout" notifications. |
H: Filtering Pivot table by multiple values
I have a pivot table below that I am trying to filter dynamically based on a separate list and am trying to figure out how to do this by referencing the relevant field. In the below example I have the same data set and I would like to filter column B (referral) by G3:G4 (12.com and ab.com). Ideally, the final result would be the pivot table would display everything aside from "xyz.com" found under rt.com
In the pivot table editor I've tried to choose filter -> referral -> filter by condition by a few different ways including:
=regexmatch(B3,"12.com|ab.com")
=MATCH("ab",B3,1)=1
If I run the above formulas outside the pivot table's filter it works fine, but inside nothing seems to work, even replacing B3 with B:B
If anyone has any advice on how to get this to work I would be highly appreciative.
AI: use this formula to filter out stuff you need and then construct pivot table from there:
={E829:H829; FILTER(E830:H837, COUNTIF(B830:B837, G830:G837))} |
H: Flagging empty cells if date in another cell has passed
Good afternoon!
I've created a test sheet to help visualize this - https://docs.google.com/spreadsheets/d/1-qHH4GfeIZz-7OBHFpp4trrFNg7l-gBHDT2MHg9tFmE/edit?usp=sharing
I'm aiming to have cells highlight only if all the following conditions are met -
The cell in Column C is empty
The date in Column B is not empty
The date in Column B has passed
I've thrown together a few things that partially work but will either highlight cells in Column C even if Column B's date is blank or will highlight all cells in Column C that are past Column B's date - even if the cell in Column C is populated.
Ideally, in the example sheet, cells C2 and C3 would be highlighted while C5-C7 remain blank.
This seems incredibly simple but I'm at the end of my rope with it... Any pointers?
AI: =COUNTIFS(C2,"=",B2,"<>",B2,"<"&TODAY()) |
H: Named range in Data validation
I am having trouble getting a named range to work in the data-validation criteria selection.
Given that my named range is "ContactRecord" and the rangeid=1234567890, in the data-validation criteria selection it should be able to support named ranges:
For example:
instead of
'SheetX'!B60:B70
I should be able to use the named range as the reference like:
'SheetX'!rangename=ContactRecord
'SheetX'!rangeid=1234567890
Is this just not possible in Google Sheets?
AI: when referencing a Named range in Data validation, you don't need to include sheet name: |
H: check if cell is empty OR has a value, AND cell in row isn't empty then assess as true or false
I'm trying to format a column so that if the column A cell is NOT empty, AND the column H cell is either empty OR "no"
=AND(NOT(ISBLANK($A$1:$A)), (OR(ISBLANK($H$1:$H)), (LOOKUP("no", $H$1:$H))))
AI: custom formula: =IF((A1<>"")*((H1="")+(H1="no")),1) |
H: Duration to seconds calculation
There are 3 columns in my google sheet with heading Start time (col C), End Time (col D) and time taken (col E). Column E is arrived by finding the difference between col D and col C. Now when I try to convert col E into seconds, I am not getting the required output. Pls help me in solving this query by having the correct value in column E
Example Worksheet
AI: Set your start and end fields to time format (Format -> Number -> Time) and your time difference calculation field to duration format (Format -> Number -> Duration).
Once you have done that you can just add and subtract times like normal number to get the time difference. However, you will get a negative time if one event stretches past midnight. So, apply if condition and add 24 hours whenever the event stretches midnight.
=IF(F13-E13>0, F13-E13, F13-E13+1)
or you can manually prevent this condition like here.
A time value is stored as a fraction in google sheet, where 1 would be exactly 24 hours. E.g. 12 o'clock midnight is 0, 6 o'clock in the morning is 0.25 12 o'clock midday is 0.5 and 18 o'clock is 0.75
To calculate the number of seconds, you can use the Hour(), Minute() and Second() functions on that field.
=(((HOUR(G14))*60+(MINUTE(G14)))*60 +SECOND(G14))
Here is the link to illustration sheet. |
H: How to rotate a curve in Draw.io?
I know how to rotate an object in Draw.io because usually there is an anchor where my mouse changes into the rotation mode. This is also explained in this tutorial:
https://support.draw.io/display/DO/Tutorial+3+-+Connectors%2C+Waypoints%2C+and+Altering+Shapes
However, a curve does not have this option:
Naturally, I could manually move every vertex, but I would prefer to have options to flip/rotate it as a whole.
I tried grabbing the curve with Ctrl, or Alt, or Shift, hoping that it would change from "move object mode" to "rotate object mode" but it does not work that way.
AI: add one more object
press down and hold CTRL
select your curved line and that object
press CTRL + G
rotate it as you desire with that rotational arrow
when done delete that extra object |
H: How can I find and replace color in Draw.io?
I want to replace all the red in these shapes with blue. Is there a fast way to do that?
Maybe replace "FF0000" with "0000FF" but I'm not sure how to do that on Draw.io
AI: select them holding CTRL key
click on color under Fill section
change color and Apply |
H: Cell with multiple color formatting results only to first color being applied
If a Google Sheet cell has 2 Conditional formattings, one which changes only font color, one which changes only the background, only the first conditional formatting affects the cell.
The reason might be because when the color is set to NONE, it is not interpreted as transparent.
When I set a font or background color to NONE, it should be transparent, so other conditions could affect the transparent part.
Demo sheet attached:
https://docs.google.com/spreadsheets/d/1AFX8PBlKEJszK3MotTompP9OufD4OrMUrOz8E-mC5jk/edit?usp=sharing
An idea on how to fix it?
AI: First of all, you will never get a blue background with =C4>1. you have to change it to =C4>0 or =C4=1
Conditional formatting rules are priority based and if one rule is applied the other rules just skip it. To resolve it you will need to add one more rule with: =AND(C4>0;B4>0) |
H: Can conditional formatting reference other sheet?
I needed to check which indexes exist on another sheet.
So for the A:A range, I made conditional formatting with the following formula:
=COUNTIF('Other Sheet'!A:A;A1)
That had a red error outline.
Then I filled column X with ='Other Sheet'!A:A and used the formula
=COUNTIF(X:X;A1)
It worked instantly.
What am I doing wrong?
AI: It can, but you need to wrap it in INDIRECT:
=COUNTIF(INDIRECT("'Other Sheet'!A:A"); A1) |
H: All text in a cell before the " - " or " : "
Is the Query function capable of taking the contents of a cell and returning everything before the first instance of - or :?
Here is a screenshot of what I mean:
Obviously, this isn't my actual data, just an example of how the data is written.
AI: =ARRAYFORMULA(IFERROR(INDEX(TRIM(SPLIT(SPLIT(A:A, ":"), "-")), , 1))) |
H: Where are files that I shared with someone going after he deleted them
I recently discovered a really weird behavior with Google Drive.
So here is my folder structure:
Folder 1
`-- Folder 1-1
`--- File 1-1-1
`-- Folder 1-2
Folder 2
Folder 1 is shared with a friend User 1 of me and he has access to edit anything containing in this folder. Now he removed File 1-1-1 by accident and I first thought 'Well okay no problem, it will be in my bin or he just removed his access to the file by himself.'.
But non of these cases where actually really true.
I looked in the activity log and saw 'User 1 moved File 1-1-1', I clicked on the file in the activity log and I was still able to access it (It still exists), but I just can't find it in any folder nor the bin. The file also has no Location-label anymore.
We were able to reproduce this x times.
Short: I share a file -> The user who gained access removes the file -> He loses his access -> The file is no longer in the folder in which it was before, nor my or his bin -> The only way to find the file now is from Google Drive search or the activity log.
Also weird: If I share a folder with someone -> He uploads files into the folder -> I remove his access from the folder -> He can't see his uploaded files from the folder anymore, but they still exists and he is only able to find the files via the Google Drive search or activity log.
Edit: I can find the file with advanced search and is:unorganized (https://drive.google.com/drive/search?q=is:unorganized%20owner:me)
AI: If a Google Drive folder editor, not the owner, deletes a file then file becomes an orphan. Use the Google Drive features like Recents or the search engine to find them a return to the corresponding folder.
Instead of adding editors to folders add viewers.
Related
How to view orphans in Google Drive
Is there a "best way" to send Google feedback? |
H: How can I navigate inside a spreadsheet cell immediately after typing text?
This seems like it's a blindingly simple question with an obvious answer yet I cannot figure out how to do it nor find solutions online.
If I type some text into a Google Sheets spreadsheet cell and make a typo, what is the least number of key presses to navigate back to the place where the typo is so I can edit it? For example: this s some text
Normally you would press Home, Ctrl+→, →, i. However whenever you press left or right after immediately entering text in a cell it will navigate away from the current cell.
If the cell content is not new then you can navigate the text using normal text navigation shortcuts but needing to leave a cell and coming back adds more key presses.
I've tried different combinations of modifier keys and cannot figure out how to navigate within a cell without first leaving. The quickest way I've found is to leave the cell and come back to it which adds at least 3-key presses (←+→+Enter, Enter+↑+Enter, etc.)
AI: As you already found out the far quickest is to leave the cell with some arrow and then return. But also there is another way (however it depends on how and where exactly you want to return). Let's say you made a typo in xxxxaaxx (a instead of x), you are able to "return" only by mouse clicking into the overview field which is not always plausible especially when you don't wanna do that extra hand move.
And also is worth to mention the possibility of mouse clicking directly into fx field right where you need to. fx field/box can be extended beyond one row in case of long formulas. |
H: Github pages are not generating
The https://github.com/wolfv6/wfpb repository has four .org files:
1_wfpb_basics.org
2_wfpb_implementation.org
3_wfpb_advanced.org
nutrition_confusion.org
I am attempting to publish the above four .org files using github pages.
I followed the "Project site" instructions on https://pages.github.com/.
The root index page renders as expected at https://wolfv6.github.io/wfpb/.
What are the URLs to the pages generated from the four .org files?
https://wolfv6.github.io/wfpb/1_wfpb_basics.html gets 404 File not found.
The video on https://pages.github.com/ shows two buttons that are missing from my Settings page:
2:38 "Launch automatic page generator" button is missing.
Use the automatic page generator to create your first site.
Guthub will populate your page with basic content that you can customize with markdown.
2:46 "Load README" button is missing.
If your project already has a README file, you can you can import its content too.
Those two buttons in the video are not mentioned in the instructions.
Github renders the .org files nicely. Can github pages render the same .org files?
AI: The "Automatic Page Generator" button was retired some time ago, which is why it can't found in the current doco (unfortunately they haven't updated the video to match).
The same process can be kicked off by using the "Choose Theme" option in Settings, which then allows you to choose a theme and will run Jekyll in the background to generate your Github Pages site.
The bad new is that orgmode isn't a supported format - to generate that format would require a plugin which isn't on the supported list. Only Markdown and HTML are supported out of the box. |
H: How can I compute the permutations multiplication "like" table to a linear list?
I have a table that is structured like this.
I would like to transform the table into the permutations of the table if we treated like a multiplication table. Into a list that looks like this.
Please note I am using a multiplication table as an example. The actual data I am parsing is random. The reason I choose to use a multiplication table data is the lookup method for my table data is performed by the same method. e.g where you check where two different inputs on the x-axes and y-axes and where they converge gives you the value.
AI: You want to convert the values of above image to the values of below image.
If my understanding is correct and you use Google Apps Script, how about this sample script? I think that there are several solutions for your situation. So please think of this as just one of them.
In this sample script, it supposes that the initial values are put to the cells of "A1:D4" in the active sheet. And the result is put to the cells of "A6:C23".
The point of this sample script is that all patterns are retrieved by transposing the values.
Sample script:
var sheet = SpreadsheetApp.getActiveSheet();
var values = sheet.getRange("A1:D4").getValues(); // Retrieve the initial values
var ar = [];
for (var loop = 1; loop >= 0; loop--) {
var temp = [];
for (var i = 1; i < values.length; i++) {
for (var j = 1; j < values[i].length; j++) {
temp.push([values[0][j], values[i][0], values[i][j]]);
}
}
ar[loop] = temp;
values = values[0].map(function(_, i) {return values.map(function(f, j) {return f[i]})}); // Transpose the initial values.
}
var res = Array.prototype.concat.apply([], ar);
sheet.getRange("A6:C23").setValues(res); // Put the result
Result:
"A1:D4" is the initial values.
"A6:C23" is the result values.
Note:
This is a simple sample script. So please modify it for your situation.
If I misunderstood your question, I apologize. |
H: Generate custom sequence in Google Sheets
I would like to create a column with a custom sequence: A-Z,a-z,0-9. (Essentially the Base64 character set with the last two characters, + and /, left out) So, A1 would be AAA, A2 would be AAB ... continuing to AAZ, AAa, ..., AA8, AA9, ABA, ABB etc.
Note that AAA would be numerically the same as A (both equal 0), but I need to keep the same number of digits across the whole sequence.
Doing this with only numbers is simple: =A1+1 and copy it all the way down the column.
Is there a simple and efficient way to do this either in sheets (maybe use an array formula?) or using a function? I will need to go at least to 40000 iterations (40000=KZK, if I did the calculation correctly).
Eventually, it will look something like this:
article_AAA
article_AAB
article_AAC
...
article_KZI
article_KZJ
article_KZK
I'm not much of a mathematician, but I suspect this site could help:
https://www.dcode.fr/base-n-convert
AI: =ARRAYFORMULA(REGEXREPLACE(TRANSPOSE(QUERY(TRANSPOSE((CHAR({{
TRANSPOSE(SPLIT( TEXTJOIN(",",1,REPT(ROW(INDIRECT("A"&65&":A"&68))&",",3844)),","));
TRANSPOSE(SPLIT(","&TEXTJOIN(",",1,REPT(ROW(INDIRECT("A"&69&":A"&72))&",",3844)),","));
TRANSPOSE(SPLIT(","&TEXTJOIN(",",1,REPT(ROW(INDIRECT("A"&73&":A"&74))&",",3844)),","));
TRANSPOSE(SPLIT(","&TEXTJOIN(",",1,REPT(75&",",1561)),","))},{
TRANSPOSE(SPLIT(REPT(TEXTJOIN(",",1,REPT({ROW(INDIRECT("A"&65&":A"&90))&",";
ROW(INDIRECT("A"&97&":A"&122))&",";ROW(INDIRECT("A"&48&":A"&57))&","},62)),2),","));
TRANSPOSE(SPLIT(REPT(TEXTJOIN(",",1,REPT({ROW(INDIRECT("A"&65&":A"&90))&",";
ROW(INDIRECT("A"&97&":A"&122))&",";ROW(INDIRECT("A"&48&":A"&57))&","},62)),2),","));
TRANSPOSE(SPLIT(REPT(TEXTJOIN(",",1,REPT({ROW(INDIRECT("A"&65&":A"&90))&",";
ROW(INDIRECT("A"&97&":A"&122))&",";ROW(INDIRECT("A"&48&":A"&57))&","},62)),2),","));
TRANSPOSE(SPLIT(REPT(TEXTJOIN(",",1,REPT({ROW(INDIRECT("A"&65&":A"&90))&",";
ROW(INDIRECT("A"&97&":A"&122))&",";ROW(INDIRECT("A"&48&":A"&57))&","},62)),2),","));
TRANSPOSE(SPLIT(REPT(TEXTJOIN(",",1,REPT({ROW(INDIRECT("A"&65&":A"&90))&",";
ROW(INDIRECT("A"&97&":A"&122))&",";ROW(INDIRECT("A"&48&":A"&57))&","},62)),2),","));
TRANSPOSE(SPLIT(TEXTJOIN(",",1,REPT({ROW(INDIRECT("A"&65&":A"&89))&","},62)),","));
TRANSPOSE(SPLIT(TEXTJOIN(",",1,REPT(90&",",11)),","))},{
TRANSPOSE(SPLIT(TRANSPOSE(REPT(TEXTJOIN(",",1,{ROW(INDIRECT("A"&65&":A"&90));
ROW(INDIRECT("A"&97&":A"&122));ROW(INDIRECT("A"&48&":A"&57))})&",",150)),","));
TRANSPOSE(SPLIT(TRANSPOSE(REPT(TEXTJOIN(",",1,{ROW(INDIRECT("A"&65&":A"&90));
ROW(INDIRECT("A"&97&":A"&122));ROW(INDIRECT("A"&48&":A"&57))})&",",150)),","));
TRANSPOSE(SPLIT(TRANSPOSE(REPT(TEXTJOIN(",",1,{ROW(INDIRECT("A"&65&":A"&90));
ROW(INDIRECT("A"&97&":A"&122));ROW(INDIRECT("A"&48&":A"&57))})&",",150)),","));
TRANSPOSE(SPLIT(TRANSPOSE(REPT(TEXTJOIN(",",1,{ROW(INDIRECT("A"&65&":A"&90));
ROW(INDIRECT("A"&97&":A"&122));ROW(INDIRECT("A"&48&":A"&57))})&",",150)),","));
TRANSPOSE(SPLIT(TRANSPOSE(REPT(TEXTJOIN(",",1,{ROW(INDIRECT("A"&65&":A"&90));
ROW(INDIRECT("A"&97&":A"&122));ROW(INDIRECT("A"&48&":A"&57))})&",",45)),","));
TRANSPOSE(SPLIT(TRANSPOSE(TEXTJOIN(",",1,ROW(INDIRECT("A"&65&":A"&75)))&","),","))}}))), ,
40001)), " ", "")) |
H: What doest "x HTTPS upgrades" mean in Brave browser?
I have just discovered Brave browser and one of the features is called HTTPS upgrades. I tried to find out what it means, but could not find any relevant information:
AI: Brave browser implemented directly this extension (or modification of it) HTTPS Everywhere into itself, which basically tries to force sites to be loaded as HTTPS if it's possible (the reason is that many websites are poorly designed and even if they claim to support HTTPS, they are not (or not aware) due to wrong implementation of HTTPS protocol)
HTTPS Everywhere is produced as a collaboration between The Tor Project and the Electronic Frontier Foundation. Many sites on the web offer some limited support for encryption over HTTPS, but make it difficult to use. For instance, they may default to unencrypted HTTP, or fill encrypted pages with links that go back to the unencrypted site. The HTTPS Everywhere extension fixes these problems by using clever technology to rewrite requests to these sites to HTTPS. |
H: How to import values from the 2nd sheet based on the colum of the 1st sheet?
I have two sheets -
Sheet1 includes:
col 1 | col 2
[Name] | [phones ]
Sheet2 includes:
col 1 | col 2
[Name] | [e-mail]
I want to importrange if the name on Sheet1 is equal to name on Sheet2.
AI: use VLOOKUP formula. paste this formula in cell C1 on Sheet2:
=ARRAYFORMULA(IFERROR(VLOOKUP(A:A, Sheet1!A:B, 2, 0), ))
=ARRAYFORMULA(IFERROR(VLOOKUP(FILTER(Sheet1!A1:A,
ISNUMBER(SEARCH("*"&A1:A&"*",A1:A))), Sheet1!A1:B, 2, 0), )) |
H: Search for text in multiple columns in multiple worksheets
I have 3 columns (Col1, Col2, Col3). All 3 columns are in their own worksheet (WS1, WS2, WS3).
I want to
search each cell in Col1
see if that cell matches anything within Col2 in WS2 then output "WS2"
if nothing in Col2, then see if that cell matches anything within Col3 in WS3 then output "WS3"
Hope this is enough information
AI: =ARRAYFORMULA(IFERROR(IFERROR(
IF(VLOOKUP(A2:A, 'WS2'!A1:A, 1, 0)<>"", "WS2", ),
IF(VLOOKUP(A2:A, 'WS3'!A1:A, 1, 0)<>"", "WS3", )), )) |
H: Find max value in array and return a value in a different array but in the same row
I have four columns, the two in the middle only being there to keep track of other values, not relevant to this.
I'm trying to
Search for the highest value in, say, D3:D999
Get the row of that highest value
Return the content of the cell A(row), with row being the same as found earlier
I already tried =VLOOKUP like this.
=VLOOKUP(MAX(D3:D999),A3:D999,1,0)
It works until there is no value in D3:D999 equal to a value in value in A3:A999, at which point I get an #N/A.
Additionally, I tried this:
=VLOOKUP(MAX(D3:D999),A3:D999,1,1)
It just showed the highest value it could find in A3:A999, so no solution either.
EDIT 1: Link to an editable copy of the spreadsheet: here
EDIT 2: I'll leave this spreadsheet accessible if someone else needs it.
AI: =OFFSET(INDIRECT(CELL("address", INDEX(D3:D, MATCH(MAX(D3:D), D3:D, 0), 1))), 0, -3) |
H: How can I divide row data into multiple Sheets and have sort work corretly?
Say I have a Sheet with people info, containing their names and some other info. I add a filter to this Sheet to be able to sort alphabetically by lastname, or any other column.
Now I want to add more columns, but adding them in the same Sheet makes it difficult to visualize since we might have already a lot of columns. Using a different Sheet for that seems like a good idea.
I create a new Sheet called "Positions" to add their work positions and use ARRAYFORMULA to copy the Names and Lastnames columns. Then I add a new column for Position.
The problem comes when I change the order in the original Sheet. If I set the order to be Z-A on lastname, the Position Sheet columns for Lastname and Firstname will change, but the Position column will not, and I will have a mismatch of the information.
Is there any way to achieve this?
Sample Sheet: https://docs.google.com/spreadsheets/d/1gtjKdaTrXG8IFGiwaW6Pv_eeYJbEJT2WHu5HeSTlDRY/edit?usp=sharing
AI: This is not doable as you imagine it, because the only link/reference between C column and an array of A:B column is row order which upon filter change on the first sheet is lost.
The solution would be to have all data in hidden columns of the first sheet and then call for them from the second sheet with =ARRAYFORMULA({Names!A:B,Names!D:D}) |
H: Return a value from a column if multiple criteria are met
Can anyone teach me how I can return a value from a column if multiple criteria are met where if:
a cell in a column of another sheet contains a word in a cell (referenced)
the same row in another column contains SUBMITTED
the same row in another column contains a text in a cell (referenced)
I tried doing this:
=IF(AND(Sheet1!AE2:AE="*"&B4&"*",Sheet1!G2:G="SUBMITTED",Sheet1!C2:C=D3),Sheet1!D2:D)
but this doesn't return a value. So, I tried using INDEX & MATCH using an array formula like this:
=ArrayFormula(INDEX(Sheet1!D2:D,MATCH(1,(Sheet1!AE2:AE="*"&B4&"*")*(Sheet1!G2:G="SUBMITTED")*(Sheet1!C2:C=D3),0)))
but somehow this returns an error:
Did not find value "1" in MATCH evaluation.
Am I doing something wrong with my MATCH? I'm not sure what's going on here.
And also would this be heavy if I were to do this to 10k cells? Would a script/using QUERY be better in returning these fields?
AI: =ARRAYFORMULA(IF(
(IFERROR(VLOOKUP(Sheet1!AE2:AE,
FILTER(Sheet1!AE2:AE,
SEARCH("*"&B4&"*", Sheet1!AE2:AE)), 1, 0), )<>"")*
(Sheet1!G2:G="SUBMITTED")*
(Sheet1!C2:C=D3), Sheet1!D2:D, )) |
H: Map Axis Numeric Values to Strings
I have time series data reviewing the quality of an item. The ratings are on a 1-5 scale ranging from "Very Bad" to "Very Good". How can I define this mapping so that instead of seeing marks for 1, 2, 3, 4, 5 on the Y-axis I instead see "Very Bad", "Poor", "OK", "Good", "Very Good"?
Seems like this ought to be doable. The prefix/suffix options are just not able to do what's needed but they show that there's a need for some tweaking. I wish I could just specify a formula to define the displayed value.
AI: This is not possible directly but there is a workaround for that:
enter in the editing of the chart
select Vertical axis
increase Label font size to gain some space
change Text color for pure white to hide it
go to Insert
select Drawing...
and add 5 drawings - then position them
demo spreadsheet |
H: Count attendance percentage for top 10 specific events
Data
I have an attendance sheet for multiple events and for multiple people. The sheet looks like this (mock data):
X | A | B | C | D | E | F | G | ...
1 | | | | | | | | ...
2 | X | Att. % | Evt 1 | Evt 2 | Evt 3 | Evt 4 | Evt 5 | ...
3 | Special? | - | 1 | 0 | 0 | 1 | 0 | ...
--------------------------------------------------------------------
4 | Person 1 | 60% | 1 | 1 | | 1 | |
5 | Person 2 | 20% | | | 1 | | |
...
So, I'm counting the total attendance of each person by using the following formula, for example B4: =SUM(OFFSET(A4,0,2,1,100))/COUNTIF(OFFSET(A$2,0,2,1,100),"<>")
I also have a formula for counting the attendance rate only for the events marked as "Special" in row 3, using SUMPRODUCT, for example for row 4 it is: =SUMPRODUCT(OFFSET(A$3,0,2,1,100),OFFSET(A4,0,2,1,100))/SUM(OFFSET(A$3,0,2,1,100))
However, now I need to change this formula so that it only counts attendance of the last 10 "Special" events. The events are added to the table by inserting a new column at C and moving the rest to the right, so I effectively need to count attendance for the leftmost 10 events marked as "Special".
Any clues? I'd be grateful even for a small hint regarding the function(s) I could use since my experience with Google Sheets is not that broad.
AI: so that it only counts attendance of the last 10 "Special" events
=SUMPRODUCT(QUERY(QUERY(QUERY(TRANSPOSE({$C$3:$3;C4:4}),
"where Col1=1"),
"limit 10
offset "&(COUNT($C$3:$3)-10)),
"select Col2"))/10 |
H: Why are some Gmail accounts listed as "googlemail.com"?
I use a number of Gmail accounts for different purposes (eg. family, games-related, etc). All except one is listed as gmail.com but one is listed as googlemail.com.
Have tried removing and re-adding the account, specifically entering the account name with gmail.com. But after closing Chrome, when I come back to this page the account is again displayed as googlemail.com.
Why is this and can I change it? My preference would be gmail.com for all of them.
AI: Thanks to the comment by @HazardousGlitch, I finally managed to track it down. These are the steps:
Log into the googlemail.com account
Click the Settings cog icon (upper right)
Click Accounts and Import
Find Switch to gmail.com next to Send mail as:
Following the prompts and agree to change to gmail.com
Log out of gmail
From the landing page of your accounts, click Remove an account
Remove the googlemail.com account
Close and restart Chrome
From the landing page of your accounts, click Use another account
Enter the full name of the account, including gmail.com
Enter the password
All done! |
H: Convert Text String into Date/Time Value
I'm fetching data into a Google Sheet. The date column contains multiple cells with the following text string pattern:
Mon Mar 11 19:05:32 +0000 2019
The pattern always repeat itself:
[day] [month] [date] [HH:mm:ss] [Time Zone offset] [YYYY]
Can this text string pattern be turned into a date/time value using a formula?
Ideally, I'd like to split the date/time values represented in the text string above into two columns: date & time:
date | time
DD/MM/YYYY | HH:mm:ss
AI: ={DATE(RIGHT(A1, 4), MONTH(MID(A1, 5, 3)&1), REGEXEXTRACT(A1, "\d+")),
TEXT(INDEX(SPLIT(A1, " "), 1, 4), "hh:mm:ss")}
with timezone in account:
={DATE(RIGHT(A1, 4), MONTH(MID(A1, 5, 3)&1), REGEXEXTRACT(A1, "\d+")),
TEXT(INDEX(SPLIT(A1, " "), 1, 4)+IFERROR(
TIMEVALUE(JOIN(":", SPLIT(REGEXREPLACE(REGEXEXTRACT(A1, "\+(\d+)"),
"(.{2})", "/$1"),"/"))),
TIMEVALUE(JOIN(":0", SPLIT(REGEXREPLACE(REGEXEXTRACT(A1, "\+(\d+)"),
"(.{2})", "/$1"),"/")))), "hh:mm:ss")} |
H: Insert column into Google sheet generated from a Google form to calculate the difference between two columns of data
I have a Google form where people track their company mileage and input "Mileage In" and "Mileage Out."
I want to insert a column next to Mileage In and Mileage Out that shows the difference between those numbers, which would be the total miles driven by that user.
I understand that I should be using an array formula and have tried to use one from this article: https://www.benlcollins.com/formula-examples/array-formulas-forms/
I inserted a column next to the two mileage columns and put this formula in the header:
=ArrayFormula(IF(ISBLANK($O$2:$O),"",SUM("$N$2:$N"-"$M$2:$M")))
It doesn't work and returns an error about circular dependency.
I don't understand this formula well enough to continue troubleshooting on my own. Any advice?
AI: =ARRAYFORMULA(IF(LEN(O2:O), QUERY(M2:N, "select N-M label N-M''"), )) |
H: How to count how often a value is submitted to a Google sheet via Google Forms per day, and put that count in different Google Sheets workbook
I have two Google Sheets workbooks, Workbook A and Workbook B.
Workbook A is generated from a Google form that collects email addresses submitted from users. Workbook A has two columns next to each other, one with a timestamp (formatted with date and time like this: 3/11/2019 8:16:51) and the other with the email address.
I want to count the number of days each email address has been submitted. I want to put that number in Workbook B.
So here is the formula I put in Workbook B (edited for privacy):
=(SUM(COUNTIF(IF(IMPORTRANGE("https://linktosheetA", "Nameoftab!A:A")=TODAY(-1)))"emailIamlookingfor.com"))
I was going to change the email and put that formula in a cell for each person whose response rate I wanted to count.
I have two questions:
First, that formula doesn't work at all. Can it be fixed?
Second, is there a better way, overall, to accomplish what I'm trying to do?
AI: =COUNTA(QUERY(IMPORTRANGE("16nnuzNRxkGGJm1EBVX7kBT2bfW12TYwSiuaLFQIA",
"Sheet1!A2:B"), "where Col2 matches 'x@mail.com'"))/2
=ARRAYFORMULA(COUNTA(UNIQUE(IFERROR(REGEXEXTRACT(TO_TEXT(IFERROR(
SPLIT(TO_TEXT(IFERROR(QUERY(IMPORTRANGE("ID", "FormResponses1!A2:B"),
"select Col1 where Col2 matches 'email@address.com'")))," "))),"\d+"))))) |
H: Extract and graph information from a days-hours-minutes-seconds format
I'm working in Google Sheets, and I have data for race finish times in "8d 3h 40m 13s" format and I'm want to extract that information so I can plot it in a chart. Any ideas for how to achieve this? I'm not an expert on Google Sheets so any assistance is appreciated!
AI: User0 did an amazing job of breaking down how to convert your race times into different durations that can be used to create a graph.
You will need to use one of those formulas (i would suggest the last one which is in seconds), so cut this:
=INT(TO_TEXT(QUERY(ARRAYFORMULA(VALUE(REGEXEXTRACT(SPLIT(A1, " "), "\d+"))),
"select (Col1*24)+Col2 label (Col1*24)+Col2''")&":"&
JOIN(":", QUERY(ARRAYFORMULA(REGEXEXTRACT(SPLIT(A1, " "), "\d+")),
"select Col3,Col4")))*86400)
and add it to the column beside your list of race times. It is important with an array formula not to press enter, you MUST press Ctrl + Shift + Enter (Cmd + Shift + Enter on a Mac) and Google Sheets will add the ArrayFormula. Then copy the formula down so there is one beside every race time, again press Ctrl + Shift + Enter.
If that worked okay you should see the amount of seconds beside each racetime, if not please start again from the beginning.
If you have a suitable list of converted race times, you can create a graph and use the column with seconds as the data range. |
H: How to add every Sunday in sequential order?
So I tried using the simple formula:
=date(2019,3,10)
=date(2019,3,10)+7
=date(2019,3,10)+14
=date(2019,3,10)+21
... etc.
But when I highlight the first top 3-4 cells to drag down and formulate the pattern it doesn't work in this case. My goal is for my sheet to auto-populate all Sunday's date in the year, even continuing to the next couple years in the future.
Any recommendations?
AI: instead of =DATE(2019,3,10)+7 use this formula and drag it down
=DATE(2019,3,10)+ROW(A1)*7 |
H: Use of IMPORTRANGE to juxtapose variable-length lists
Let's say I have two Google sheets, Doc1 and Doc2, both having only one sheet featuring two lists with the same schema, say two columns Name and Age. The lists have an unknown number of entries, but if it makes the task easier, we can assume that they have a maximum of 5 entries:
I want to collate both lists and show them in a third "Summary" document, one after the other. I can show them using these formulae, in Summary's cells A1 and A6, respectively:
=IMPORTRANGE("1cLqgopAWG...","Sheet1!A1:B5")
=IMPORTRANGE("1564EXoW-s...","Sheet1!A1:B5")
However, this leaves an annoying variable number of blank lines between the two:
whereas I would like to show them one directly above the other, like so (values manually copied here to show what I want):
If I try and use IMPORTRANGE on two contiguous rows (i.e. A1 and A2), I get a #REF! error ("Array result was not expanded because it would overwrite data in A2."):
Is it possible to achieve what I want?
(Bonus points for removing the constraint about max number of items.)
AI: all you need to do is QUERY out empty rows:
=QUERY({IMPORTRANGE("1cLqgopAWG...", "Sheet1!A1:B5");
IMPORTRANGE("1564EXoW-s...", "Sheet1!A1:B5")},
"where Col1 is not null") |
H: Using CHOOSE with ArrayFormula has different results from Excel
Function CHOOSE within an ArrayFormula seems to yield different results in Google Sheets, compared to Excel. Note how only the first column is shown. Should I report it as a bug, or am I missing something?
Excel:
Google Sheets:
AI: it's not clear what you are after but to mimic Excel behaviour do this:
=CHOOSE({1;2}, {{11,22,33};{44,55,66}}) |
H: How to get a Sample Standard Deviation values that match condition?
I am trying to get the standard deviation of a subset of data. I have two sheets
Name Value
a 1
a 2
a 1
b 5
b 5
In a separate sheet I have:
Name StdDev
a
b
GOAL: I am trying to get:
Name StdDev
a .57
b 0
I tried:
=query('Sheet1'!A1:B999,"select STDEV(B) where A='"&A1&"'")
Error:
Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " "(" "( "" at line 1, column 13. Was expecting one of: "where" ... "group" ... "pivot" ... "order" ... "skipping" ... "limit" ... "offset" ... "label" ... "format" ... "options" ... "," ... "" ... "+" ... "-" ... "/" ... "%" ... "" ... "/" ... "%" ... "+" ... "-" ...
AI: first of all, there is no STDEV(Col) parameter in Google Sheets' QUERY so you need to create it from:
=SQRT(SUM(ARRAYFORMULA((QUERY({Sheet1!$A$2:$B}, "select Col2 where Col1='"&D2&"'")-
AVERAGE(QUERY({Sheet1!$A$2:$B}, "where Col1='"&D2&"'")))^2))/
(COUNTIF(Sheet1!$A$2:$A, "="&D2)-1)) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.