text
stringlengths
83
79.5k
H: How can I allow results from a Google Sheets 'filter' action to be mutable? Brief: The results of a filter are not mutable. I cannot directly add/edit rows to the cells in and around a filter result due to a #REF Error: not expanded because it would overwrite data error. I have two tabs of Sheets. I'm referencing a range of columns from Sheet A onto Sheet B by using the filter function. Here are two images illustrating the above statement: The functionality I'm going for, as shown in Image A/Sheet A, is being able to change the dropdown value in the Category column to Bug, and having certain values from that row be transferred over to the Sheet B. As shown in Image B/Sheet B, I can add columns to the right, due to it not interacting with the filter results. My problem is in trying to find these two things: A way to directly edit the contents of the filter results of Sheet B. A way to freely & manually add rows around the filter results, and continuously have filter results be transferred over to this sheet without issue. Attempting to do 1 or 2 will result in some or all of the data to disappear or a #REF error to occur. How can I achieve the desired results with or without filter? AI: On Google Sheets formulas results aren't mutable. One alternative is to replace the formula by it's results. This can be done "manually" with the help of copy > paste as values. Another alternative is to use a macro or script either. The way to turn update the filtered results is to remove the filter, put back the formula, then reapply the filter. A third alternative is to use use a Google Sheets add-on, as the one that I made that is called Spreadsheet Freezer, this do the copy - paste as values / put again the formula with few clicks. The remove/reapply a filter isn't included on the current version. Putting again the formula in the same place, implies to remove the values and those that were edited could be lost. To keep the edited values, before placing the formula you should copy them so some place then adding them again. This also could be automated by using Google Apps Script. It's worth to note that Google Apps Script can be used to filter the data. Maybe all the above makes to rethink about your solution either applied a "spreadsheet thinking" of by looking for another app like Google App Maker. Related Recalculate google sheet on demand:
H: Google Maps - places want to go On my phone, I have several places marked under "want to go". When I log into my account on another device, those places are not there. How can I see the "want to go" on my phone and on my computers? AI: You should be able to find it under Your places > SAVED > Want to go
H: Joining Two Working Formula's I have the following working formula Located in K2 =IF(INDEX(Details!B18:B81,MATCH(C2,C2,0))<>C2,S30,"0") So I want it to only use the number in S30 if the date in C2 is not in a range of dates on the Details Page within B18:B81 Now I need to use this formula on the below cells, however, there is an additional check that needs to be done This working formula is Located in K3 =IF(AND(C3 < TODAY()+1, J2<>""), K2+S$30, ) So I am wanting the above formula to do what it does if the date in C3 is not in the range on the Details Page within B18:B81 (The date range is either Sunday's or days closed) If C3 is in the range I want it to add Zero instead of the number from S30 The attached image gives you the cells referenced and for this formula, S30 is equal to 2 AI: SOLVED Ended up using the following formula (after creating an Open/Closed Status column) =IF(AND(C2="Open",D3""),L2+T$29, IF(AND(C2="Closed",D3""),L2+0,""))
H: Funny alignment in Google spreadsheet This is driving me crazy. I have searched the web for an answer, without success. All results are simple pointers on how to use the formatting on the sheets. This misalignment seems to be something Google Sheets just decided to do on its own. I have a spreadsheet with some numerical data and some cells with values which are functions of other cells. The inputs are horizontally centred, and the outputs are right-justified. But some of these output cells have a small right margin, and I cannot make it go away or figure out what causes it. If I specify right-justified, they shift a little to the left (red cells) If I specify centred, they misalign, but by less. (green cells) If I specify left-justified, they line up. (blue cells) DETAILS FOLLOW: Description of cells: C10 through I29 are the inputs (not all are filled in). (Red) B32 =sum(C10:I10,C21:I21,C29) --> Has margin (Red) D32 =AVERAGE(C10:I10,C21:I21,C29:D29) --> Has margin (Blk) D34 =average(C21:I21) --> Has no margin (Blk) other nearby cells also --> no margins Interesting fact: if I click cell D32 (has a margin), and then the PaintBrush (to copy the format) and apply it to D34, D34 gets that margin, too! But without doing that, D34 has no margin. Here is a link to the example sheet: https://docs.google.com/spreadsheets/d/18lNIA3wBX5EOfvOD2EL5QmLxvKSDslqIfLsFFBWz7rE/edit#gid=0 AI: This is caused because the format of cells is not unified and can be fixed either with: buttons or button Select range B32:E34 and set it as Currency:
H: How do I make one filter take into consideration the order of other columns? I'm using the Filter (the one you create with the button in 'menus') to sort my table, but when I click the filter icon in a column's header and select "Sort A→Z", it only applies to that column. Current behavior: As you can see, Column 1 is sorted from A→Z, while column 2 goes "ABACA" - it's not being sorted. Intended behavior: Column 1 is sorted from A→Z, while columns 2-6 are also sorted from A→Z. Basically, can I sort all of these columns from A→Z, with an interactable header button like the filter one? I'm pretty sure Excel can do something similar (while also letting you sort the individual columns), although I've never used the program. AI: This is standard behaviour and can not be changed. If you want to sort multi-column range at once where sorting is not performed per single column but rather per whole rows in a given range, you are supposed to select a range you wish to sort and choose from here:
H: Google Sheets populate X cells with formulas based on single cell containing value X? Google sheets dynamically populate cells based on single cell value. I don't know what the term would be called and a bunch of searching hasn't resulted in any lead on what it would be called. What I would like to do is populate X number of rows with the formulas based upon a cell that has the number value of X. An example would be an amortization sheet for a loan. If you have a cell that contains the term years 15 that's 180 periods (15*12). The formula is the same for each column and dragging them down 180 rows would give me the same results it would auto-populate the cells. If I then changed the term cell value to 30 years loan I would have to drag it another 180 rows for a total of 360. Instead, I'm trying to figure out how to have the sheet auto-fill the values based on the term cell number. It would then auto-populate the rows based on that value. What is this term called or how could I go about doing this? Do I need to create my own macro in the sheets script? AI: You are supposed to use a cell reference of the cell you have a value in so instead =15*12 you do =A$1*12 and drag down: if you don't want to play with dragging you need to use array formula: =ARRAYFORMULA(IF(ROW(A1:A10), A$1*12, ))
H: Copy Sheet To New Spreadsheet I want to copy one sheet in the Spreadsheet file into a new Spreadsheet file. The sheet that I want to copy contains formulas, I want to just copy the value to a new Spreadsheet file. I have made the script like this: function makecopyto() { const folderId = '1Y7RmeF9sluTndSUr2KQT8wlOL9oUkLVU'; const ss = SpreadsheetApp.getActiveSpreadsheet(); const sheet = ss.getSheetByName('Sheet1'); const newSsName = sheet.getRange('Sheet2!F1').getValue().toString(); const resource = { title: newSsName, mimeType: MimeType.GOOGLE_SHEETS, parents: [{ id: folderId }] }; const fileJson = Drive.Files.insert(resource); const targetSs = SpreadsheetApp.openById(fileJson.id); const targetSheet = sheet.copyTo(targetSs); } But the results are not appropriate. The results I want should be like this: AI: You want to copy a sheet from the active Spreadsheet as new Spreadsheet. You want to copy only the values of the sheet. You want to keep the format of cells. If my understanding is correct, how about this modification? Please think of this answer as just one of several answers. In this modification, I used the following flow. Copy the active Spreadsheet. Rename the copied Spreadsheet. Copy only values of "Sheet1" to "Sheet1". Delete sheets except for "Sheet1". Modified script: function makecopyto() { const folderId = '1Y7RmeF9sluTndSUr2KQT8wlOL9oUkLVU'; const ss = SpreadsheetApp.getActiveSpreadsheet(); // I modified the following script. var newSpreadsheet = DriveApp.getFileById(ss.getId()).makeCopy(DriveApp.getFolderById(folderId)); newSpreadsheet.setName(ss.getRange('Sheet2!F1').getValue()); var newSs = SpreadsheetApp.openById(newSpreadsheet.getId()); var sheets = newSs.getSheets(); var range = newSs.getSheetByName("Sheet1").getDataRange(); range.copyTo(range, {contentsOnly: true}); for (var i = 0; i < sheets.length; i++) { if (sheets[i].getSheetName() != "Sheet1") { newSs.deleteSheet(sheets[i]); } } } References: copyTo(destination, options) deleteSheet(sheet) If I misunderstood your question and this was not the result you want, I apologize.
H: Query with dropdown not working In my Google sheet I'm getting an error: Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: I've added a dropdown so the formula will auto-update depending on the tab selected. Here's the formula that I'm getting an error: =AVERAGE(query(""&B1&""&C1&"!!A2:I","Select Col9 where Col2='"&A5&"'")) And here's the formula that's working: =AVERAGE(query('2019年5月'!A$2:I,"Select I where B='"&A5&"'")) Can somebody help me with this, please? AI: =AVERAGE(QUERY({INDIRECT(B1&C1&"!A2:I")}, "select Col9 where Col2 = '"&A5&"'"))
H: How to print selected range of a sheet? Can someone help me to print a selected range of cells in a current sheet in Google Sheets? AI: Actually, I solved the issue with the creating hyperlink that downloads selected range with all the parameters. For my purposes download PDF even better. So instead of script-button, I placed a hyperlink to a cell and it downloads PDF perfectly.
H: Google Sheets Formula Import Range with Indirect I have this formula and want the reference to Archery to reference Archery which will be in Cell E1. I tried using the indirect formula but can't get it to work with the formatting for Google Sheets. =QUERY(IMPORTRANGE("SheetLocation", "Archery!A4:E3000"),"SELECT Col3,Col2 WHERE Col1 like '%TRUE%'") AI: If E1 contains the word Archery you need to do this: =QUERY(IMPORTRANGE("ID", E1&"!A4:E3000"), "select Col3,Col2 where Col1 like '%TRUE%'")
H: Сopy cells depending on values in another cell In Google Sheets I try to copy cells B2:B4 depending on values in other cells C2:C4. For example - example.xlsx made in Excel. But stuck and can't find a solution on how to do it in Google Sheets. I will be very grateful for the help! AI: =TRANSPOSE(SPLIT(JOIN(","; ARRAYFORMULA(REPT(SPLIT( INDIRECT("B2:B"&COUNTA(B2:B)+1); ",")&","; INDIRECT("C2:C"&COUNTA(C2:C)+1)))); ","))
H: Ampersand causing issues in Google Sheets Formula I was trying to use the hyperlink formula to create an automatic e-mail creation, however, when i try to pull an information that has Ampersand in it the formula doesn't end. Note that the formula should bring the full name (Research & Innovation) but it stops at Research. Would you have any suggestion for me to try to fix this? Thank you! AI: The first argument of the HYPERLINK function is not well constructed as it includes a semicolon ; before the question mark ? and an ampersand & after the question mark ? and the ampersand & on cell A7's value is not escaped. Replace it with %26 Reference Escaping ampersand in URL mailto
H: Query select all values of specific month A have a table where Column A has dates. I want to get all values of a specific month I have the following query for May for example =query(Database!A1:AD,"Select A,E,F,U,V,W,X,AB,AC where Month(A) = 5",1) but it does not work. Where I am wrong? Query =query(Database!A1:AD,"Select A,E,F,U,V,W,X,AB,AC where A > date '2019-05-01' and A < date '2019-05-31'",1) works fine but I have a separate drop-down list with the months' number 01 02 03 .... and I want the query to change when I change the month number. But even when I put the month number directly into query it shows nothing. No any mistake - just no rows with values, only header AI: months in QUERY starts from 0 so you need to fix it with +1 =QUERY(Database!A1:AD, "select A,E,F,U,V,W,X,AB,AC where month(A)+1 = 5", 1)
H: How do I turn a SQL database downloaded table into a Google Sheets multi-line chart? I want to turn this table (comes from an SQL database) ...into a line chart in Google Sheets that looks like this AI: first you will need to pivot out series with QUERY formula and then plot the chart =QUERY(A1:C11, "select A,C,sum(C) where A is not null group by A,C pivot B", 1)
H: Google Sheets Pivot Table, Summary by Day I have a sheet with 2500 dates & times of when customers have placed their order. I want to do a heatmap or a bar graph to show which days of the week are the busiest. I rounded the exact times using mround to round up or down to the nearest whole hour. But when I pivot on the data, for example, The 'Sunday 10:00 AM' at the beginning of the column I guess is not the same as the 'Sunday 10:00 AM' for the following week, and so on. I tried converting the date to_text. Which worked, but then the pivot table couldn't be sorted in chronological order. AI: instead of your formula in B column and the whole pivot table, use: =ARRAY_CONSTRAIN(ARRAYFORMULA(REGEXREPLACE(QUERY(IF(LEN(A2:A), {WEEKDAY(A2:A), TEXT(A2:A, "dddd am/pm hh:00 am/pm")}, ), "select Col2,count(Col2),Col1 where Col2 is not null group by Col2,Col1 order by Col1 label count(Col2)''", 0)&"AM ", "PM |AM ", "")), 999^99, 2)
H: Changing cells formatting based on another cells date I've been looking and can't quite find the answer I'm looking for. I have a spreadsheet with columns Monday through Saturday with data lining up underneath. I would like the current day to highlight so I can read it easier. I can get the date cell to turn but not the rest. You'll see what I mean in the picture. I want all the cells under Wednesday to change color, then for it all to shift when the next day comes. P.S. I'm a newb. AI: custom formula applied to whole range: =IF(A$1=TODAY(),1)
H: How to count cell with upper leter in array? I need to count the upper letter if exist in a particular cell. So my results should be as on the image below. important is ignore in count empty cell. I noticed that task is simple if I can use languages like JavaScript, or Java function. There, operation on a string is easy, but if I must use a function in google calc this task for me it becomes difficult. EDIT I Found solution but it is ugly, long, not readable, and I can't see on that, but works (in PL language) =LICZ.JEŻELI(ARRAYFORMULA(CZY.LICZBA(JEŻELI(CZY.PUSTA(F8:AL8);"";ZNAJDŹ(F8:AL8;"A")))*1) ; 1) + LICZ.JEŻELI(ARRAYFORMULA(CZY.LICZBA(JEŻELI(CZY.PUSTA(F8:AL8);"";ZNAJDŹ(F8:AL8;"B")))*1) ; 1) + LICZ.JEŻELI(ARRAYFORMULA(CZY.LICZBA(JEŻELI(CZY.PUSTA(F8:AL8);"";ZNAJDŹ(F8:AL8;"C")))*1) ; 1) AI: =ARRAYFORMULA(IF(LEN(A1:A&B1:B&C1:C&D1:D&E1:E), MMULT(IFERROR(LEN(IFERROR(REGEXEXTRACT(A1:E, "[A-Z]+")))/ LEN(IFERROR(REGEXEXTRACT(A1:E, "[A-Z]+"))), 0), TRANSPOSE(COLUMN(A1:E1)^0)), ))
H: Convert a text of a specific cell or exclude one cell from all text convertion to UPPERCASE How to adapt this function to exclude a specific cell or how to apply just to one cell? function onEdit(e) { if (typeof e.value != 'object') { e.range.setValue(e.value.toUpperCase()); } } AI: Convert a text of a specific cell ... to UPPERCASE try like this which should upper Sheet1!A2 cell: function onEdit(e) { var sheet, sheetName, colToCapitalize; sheet = e.source.getActiveSheet(); colToCapitalize = 1; sheetName = 'Sheet1'; if (sheet.getName() !== sheetName || e.range.rowStart = 2 || e.range.columnStart !== colToCapitalize || typeof e.value == 'object') return; e.range.setValue(e.value.toUpperCase()) }
H: Conditional formatting cells with multiple conditions and relative references over a range I have a Google spreadsheet with arbitrary data. Three adjacent columns (let's say A, B and C) have been set up with Data Validation to only allow values from 1 to 10. I'm looking for a way to validate that if all three columns of a single row (e.g. A4, B4 & C4) have a value of 10, all three cells should get formatted differently, let's say a different background color for the sake of simplicity. This formatting should apply to an entire range from A1/B1/C1 to A300/B300/C300, and here lies the problem. I've tried many ways to do this with data validation, built-in functions and conditional formatting, but other than going row by row applying the formatting, I haven't found an actually effective way to do this. Had to resort to the script editor and write a function called when onEdit() gets triggered, but this is slow and the coloring can actually be seen being applied when the code triggers because each row needs to be checked individually. Is there any way to do this without having to resort to scripting, and without having to do it row by row? AI: custom formula for all 3 rules: =(A1=10)*(B1=10)*(C1=10)
H: How to return values in a formula, from rows of latest 4 nonconsecutive dates recorded Using an ARRAY_CONSTRAIN formula we want to capture the latest 9 records (rows) over a period of nonconsecutive dates. =ARRAY_CONSTRAIN(sort(vlookup(query({row(EBPP!D:D),sort(EBPP!A:E)},Q15,0), {row(EBPP!D:D),sort(EBPP!A:E)},{2,3,4,5,6},0),4,0),R8,5) Points to consider: Cell Q15 holds the query Cell R8 will hold the part we need for the dates. Please have a look at the image. Spreadsheet added. AI: We finally came up with an eloquent solution using the ARRAY_CONSTRAIN, SORT, QUERY functions. This is the final formula, small, flexible (both variables out of the formula), row expandable, robust (works with empty cells): =ARRAY_CONSTRAIN(SORT( QUERY(A2:E, "select * where D >= date '" & text(J21, "yyyy-mm-dd") & "'"), 4,FALSE,5,),M21,5) You can try and play with it on the spreadsheet.
H: Conditional Highlight: color change cell only if multiple others filled in I have a shift sign-up sheet in which I would like the cells in column A to be highlighted only once there is a value (name) in the corresponding cells in columns B:D. In this example, I would like cell A1 to be highlighted as all shifts are assigned, but cell A2 to not be highlighted as not all shifts are accounted for. I tried =countif(B6:D6, "<>"), but this highlighted column A even if only one cell was filled in. AI: custom formula: =NOT(COUNTBLANK(B2:D2))
H: SUMPRODUCT inside ArrayFormula I have a fixed vector, say $A$1:$E$1 I also have a vector per row, say A2:E2, A3:E3, A4:E4... Now I want output in Column F as F2 = sumproduct(A1:E1,A2:E2) F3 = sumproduct(A1:E1,A3:E3) F4 = sumproduct(A1:E1,A4:E4) ... Now I want to put these into one array formula, but I don't know how to do it. For example F2 = Arrayformula(sumproduct($A$1:$E$1,A2:A:E2:E)) Meaning multiply A1-E1 vector with A2:E2, then A3:E3 and so on. How do I do this? AI: =ARRAYFORMULA(IF(LEN(A2:A&B2:B&C2:C&D2:D&E2:E), MMULT(A1:E1*A2:E,TRANSPOSE(COLUMN(A1:E1)^0)), ))
H: How do I make something the first option when searching? So, say I am going to try searching up Twitter for example, but when I type in the letter t a Google search for tilt appears as the first option. How can I make it so that when I type in the letter t, Twitter is the first option? So I can just type t and then enter. AI: paste this into your address bar: chrome://settings/searchEngines add your search engine: https://twitter.com/search?q=%s usage: type t press spacebar key type the term you search for press enter key
H: How can I create a shared URL pointing to an achor in a Google Docs document's TOC? I have a Google Docs document which I share with other users through the Share through hyperlink feature. On that document, on every heading level 1, 2... I use Format > Paragraph style > Title 1, 2... for creating pretty formatted titles and at the same time automatically building the TOC. I'd like to generate an hyperlink which allows me to share the document but also that the user opening the document lands directly on one of the headings. Like a traditional web URL with #anchor. Is it possible? AI: This is possible, when you click the header in the table of contents you'll see a string starting with heading appended to the URL like so: Share out the URL with the #heading string at the end and when users open the doc it will open directly to that heading.
H: Create KML file from Google Earth URL I've been emailed the following https://earth.google.com/web/@30.0867484,-97.29304982,148.9215598a,284.21410691d,31.95361314y,0h,0t,0r Is there a way to turn this into a KML file? I have downloaded Google Earth Pro, but don't see a way to open this URL using it. Any advice? AI: go to My Maps click on + CREATE A NEW MAP button copy coordinates from your link 30.0867484,-97.29304982 paste them into the search bar and hit Enter key optional: zoom in and change to satellite view click on 3 dots select Export to KML/KMZ tick the KML instead of KMZ checkbox and Download
H: How to get and use a value of a cell in the PDF file name exporting using that script How can I get and use a value of a cell to the PDF file name, when exporting/saving using that script. I would like to use a string written in a cell, I mean, put that information in a variable and automatic use it as the pdf file name. At this moment, when I execute the script, a window is opened and in the file name field there are something like this: "Spreedsheet name" - "sheet name".pdf. And I have to rewrite to the name that I already have in a cell. function ExportPDF() { SpreadsheetApp.flush(); var spreadsheet = SpreadsheetApp.getActiveSpreadsheet().getId(); var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1").getSheetId(); var pagina = 'https://docs.google.com/spreadsheets/d/' + spreadsheet + '/export?exportFormat=pdf&format=pdf&gid=' + sheet + '&portrait=false&scale=4'; var html = "<script>window.open('" + pagina + "');google.script.host.close();</script>"; var userInterface = HtmlService.createHtmlOutput(html); SpreadsheetApp.getUi().showModalDialog(userInterface, 'Open Tab'); }; AI: I used the script below, located in https://stackoverflow.com/q/56215898/7108653, like suggested for @Tanaike, and adjusted with just a few things (lines 3, 4 and 5). function downloadSheetAsPDF2() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheetId = ss.getSheetByName("RECEITA PARA IMPRESSÃO").getSheetId(); var valor = SpreadsheetApp.getActiveSheet().getRange('M3').getValue(); var filename = valor; // Creat PDF file as a temporary file and create URL for downloading. var url = "https://docs.google.com/a/mydomain.org/spreadsheets/d/" + ss.getId() + "/export?exportFormat=pdf&gid=" + sheetId + "&portrait=false&scale=4&access_token=" + ScriptApp.getOAuthToken(); var blob = UrlFetchApp.fetch(url).getBlob().setName(filename); var file = DriveApp.createFile(blob); var dlUrl = "https://drive.google.com/uc?export=download&id=" + file.getId(); // Open a dialog and run Javascript for downloading the file. var str = '<script>window.location.href="' + dlUrl + '"</script>'; var html = HtmlService.createHtmlOutput(str); SpreadsheetApp.getUi().showModalDialog(html, "sample"); file.setTrashed(true); // This is used for closing the dialog. Utilities.sleep(3000); var closeHtml = HtmlService.createHtmlOutput("<script>google.script.host.close()</script>"); SpreadsheetApp.getUi().showModalDialog(closeHtml, "sample"); }
H: Pivot Table Filters - Custom Formula In my pivot table, I want to only display the entries in the column "Which Event" if the name contains "Baseball" or "Softball". I can very easily do part of this by adding a filter for the field "Which Event" then set Text Contains > Softball. But I cannot figure out the custom formula to do this for Softball or Baseball. AI: instead of your pivot table use QUERY: ={QUERY(Master!A:A, "select A,count(A) where A contains 'Softball' or A contains 'Baseball' group by A label count(A)'Number of Signups'", 1); "Grand Total", SUM(QUERY(Master!A2:A, "select count(A) where A contains 'Softball' or A contains 'Baseball' group by A label count(A) ''", 0))}
H: Time not formatting as expected in Google Sheets I imported a report to Google Sheets and the duration column shows 7 h 37 m or 14 h 5 m a similar format. When I replace h with : it still does not properly format to time duration and so I cannot average the time in total. It appears oddly where some are formatted but others are not or look non-uniform. AI: =ARRAYFORMULA(TEXT(SUBSTITUTE(SUBSTITUTE(A2:A, " h ", ":"), " m", ":00"), "[h]:mm"))
H: How to find a string then find the sum of all cells next to the found string So I'm trying to get G4 to automatically find "Bananas" in all of C and for every time it finds a value it adds up the corresponding number in D. AI: =QUERY(C4:D, "select C,sum(D) where C <>'' group by C label sum(D)''") =SUMIF(C$4:C, F4, D$4:D)
H: Averaging cells that have both blanks and numbers for values that are in non continous columns with nine columns in between them I need help averaging cells that contain numbers ranging from -1200 to 1200 approximately, or blank values only. I will be averaging them by groupings of 100 increments ie. -1200 to -1100, -1100 to-1000 etc...the cells are contained in 16 columns that are non-continuous or adjacent. There are 9 columns between each column that contains values to be averaged. My attempts either give me a divide by zero error or when I attempt to resolve blanks with if statements and " " I get text cannot be coerced into numbers. I read a solution that involves frequency and index functions that looks like this =SUM(B3:B7,D3:D7,F3:F7)/INDEX(FREQUENCY((B3:B7,D3:D7,F3:F7),0),2) but have not been able to get it to work for my application it was an Excel solution and my issue is in Google Sheets so? https://docs.google.com/spreadsheets/d/1kwGbFd88cgifQRK_ZqsahQt1aDLzMTnmxHKs7mML5jA/edit?usp=sharing So (C4:C67, D4:D64, J4:J:67, K4:K67, Q4:Q:67, R4:R67) I would like to have an average value of all numbers say from -200 to -300 and for it to be entered in the destinations (b:120,b:137) AI: =TRANSPOSE(INDEX(QUERY(TRANSPOSE(A3:I5), "select avg(Col1), avg(Col2), avg(Col3)"), 2, )) =SUM(A3:A5, C3:C5, E3:E5, G3:G5, I3:I5)/ COUNTA({A3:A5, C3:C5, E3:E5, G3:G5, I3:I5}) =ARRAYFORMULA(AVERAGE(IF(({C4:C67,J4:J67,Q4:Q67}>=-150)* ({C4:C67,J4:J67,Q4:Q67}< -125), {C4:C67,J4:J67,Q4:Q67}, )))
H: Google Exchange Rates build I am trying to make a currency exchange rate Google sheet. I want a cell to give me a value of conversion based on the value of another cell. Currency type can be selected from the Dropdown List and then value under it. Kindly help to make this formula. My Google Currency Exchange Sheet Link AI: =IFERROR($C5*GOOGLEFINANCE("currency:"&$C4&D6), $C5)
H: None of the above checkbox in Google Forms I would like to create a multiple choice checkbox question in Google Forms with a 'None of the above' option and validate that if that option is selected, none of the other options are selected. For example: Choose your favourite fruits: Apple Pear Orange Banana None of the above I can't see how to perform that sort of validation using the built-in validation options. Is there a way of performing such validation at data entry time? AI: On Google Forms there isn't a way to do that validation. The alternative is to change your questions, maybe use a multiple choice (radio button) asking do you like any of these fruits? . If the respondents select Yes send them to a checkbox question, if they select No, send the to another section or submit the form.
H: Why doesn't Skype want to acknowledge working in Firefox? Skype has a web interface at web.skype.com that implements both voip and video calls, alongside chatting, and it all works well. Officially, it claims to work only in Google Chrome and Edge. Tech-wise, it works in Firefox 100%, but only under the condition that you locally change your user agent to either Edge's or Chrome's. In Opera, on the other hand, Skype works out-of-the-box (user agent intact), regardless that Opera isn't listed as a "supported browser". I realise Microsoft is porting Edge to a Chrome-base, and i realise they wish you would use their browser rather than anything else, thus the bias towards Edge and Chrome is understandable. But having no warning in Opera sounds like a beef with Mozilla. Because if they had written their condition as "if user agent isn't Edge or Chrome, show warning", then it would have shown in Opera as well. So is there some "strategic" reason for this? AI: Microsoft claim to be prioritising Edge and Chrome due to "customer value". Blocking other browsers is one way to stop bug reports from an unsupported browser. Opera is Chromium based as well, so may not get picked up by the user-agent block. In a statement to VentureBeat, a Microsoft spokesperson said the service requires “calling and real-time media” technology that is “implemented differently across various browsers.” So the company “decided to prioritize bringing Skype to [the] web on Microsoft Edge and Google Chrome based on customer value.” https://venturebeat.com/2019/03/08/microsoft-confirms-skype-for-web-does-not-work-in-safari-firefox-and-opera/
H: Link to a date cell in QUERY criteria I have the following formula and it works fine =unique(query(ARRAY_CONSTRAIN(ARRAYFORMULA(QUERY( {Database!A1:AB, (Database!N1:N)-(Database!M1:M)}, "where Col9 <> '' AND Col1 >= date'2019-05-13'",1)), 999^99, 29) , "Select Col1,Col9,Col29,Col13,Col14,Col21,Col22,Col23,Col24 label Col29 'Horas de Trabajo'",1)) And I have cell C55 that has same data 13 May 2019. But when I refer to this cell in my formula like this: =unique(query(ARRAY_CONSTRAIN(ARRAYFORMULA(QUERY( {Database!A1:AB, (Database!N1:N)-(Database!M1:M)}, "where Col9 <> '' AND Col1 >='"&TEXT(C55,"yyyy-mm-dd")&"'",1)), 999^99, 29) , "Select Col1,Col9,Col29,Col13,Col14,Col21,Col22,Col23,Col24 label Col29 'Horas de Trabajo'",1)) I have an empty query (not an error, but empty). Why? AI: =UNIQUE(QUERY(ARRAY_CONSTRAIN(ARRAYFORMULA(QUERY( {TEXT(Database!A1:A, "yyyy-MM-dd"), Database!B1:AB, (Database!N1:N)-(Database!M1:M)}, "where Col9 <> '' and Col1 >= '"&TEXT(A1, "yyyy-MM-dd")&"'", 1)), 999^99, 29), "select Col1,Col9,Col29,Col13,Col14,Col21,Col22,Col23,Col24 label Col29 'Horas de Trabajo'", 1))
H: Apps Script to search for names and file paths in folders by name I'm making apps script to find files that don't contain the names "Done" and "InProgress". The script that I have created is like this: function testSearch(){ var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var parentFolder = DriveApp.getFolderById('1gr0RIGIt0AEzEqIxJigGxYlxQGy8yLqp') var allFile = parentFolder.getFiles() var filter = parentFolder.searchFiles('fullText not contains "Done"' && 'fullText not contains "InProgress"'); var cnt = 0; while (allFile.hasNext()) { var filter = allFile.next(); cnt++; var data = [ filter.getName(), filter.getUrl(), ]; sheet.appendRow(data); } } After I run the script, the results do not match. AI: You want to retrieve files in the specific folder. You want to retrieve all files with the filenames which don't include Done and InProgress. If my understanding is correct, how about this modifiaction? Modification point: You can directly retrieve files with the filename using the search query of not title contains 'Done' and not title contains 'InProgress'. Modified script: function testSearch(){ var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var parentFolder = DriveApp.getFolderById('1gr0RIGIt0AEzEqIxJigGxYlxQGy8yLqp') var files = parentFolder.searchFiles("not title contains 'Done' and not title contains 'InProgress'"); // Modified var cnt = 0; while (files.hasNext()) { // Modified var file = files.next(); cnt++; var data = [ file.getName(), file.getUrl(), ]; sheet.appendRow(data); } } Note: I'm not sure about cnt in your script. Reference: Search for Files This is for Drive API v3. When you use Class DriveApp, please use the parameter for Drive API v2. In your case, the filename is title. If I misunderstood your question and this was not the result you want, I apologize. Edit: When you want to retrieve files in the subfolders, please use the following script. Sample script: function testSearch(){ var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var parentFolder = DriveApp.getFolderById('1gr0RIGIt0AEzEqIxJigGxYlxQGy8yLqp') function getFiles(folder){ var files = folder.searchFiles("not title contains 'Done' and not title contains 'InProgress'"); while (files.hasNext()) { var file = files.next(); var data = [ file.getName(), file.getUrl(), ]; sheet.appendRow(data); } var folders = folder.getFolders(); while (folders.hasNext()) getFiles(folders.next()); } getFiles(parentFolder); }
H: Entering new date in a column does not autoformat I've already done Format > Number > More Formats > More Date and Time formats for the entire column but the new date entries are still not auto formatted, how can I make it auto format? Here's the spreadsheet: https://docs.google.com/spreadsheets/d/1O1rZUstDNSXPdUVXvaDfPO4rAQs2cJWHimfGxbddtNU/edit#gid=0 AI: select A7 cell press CTRL + C select A8 cell or A8:A range press CTRL + LEFT ALT + V to make it automatic after you pre-format the range you need to input hours too like: 2/2 8:00 5/28 0:00 etc.
H: Counta unique string on filtered list I'd like to count unique string values on a filtered list (For example, the value should be 3 in this screenshot): How can this be done in google sheets? Here's the spreadsheet: https://docs.google.com/spreadsheets/d/1O1rZUstDNSXPdUVXvaDfPO4rAQs2cJWHimfGxbddtNU/edit#gid=0 AI: you will need a helper column with SUBTOTAL to evaluate hidden rows expand/cancel your filter paste this in C3 cell and drag down: =SUBTOTAL(103, B3) then paste this into B1 cell: =COUNTA(IFERROR(UNIQUE(FILTER(B3:B, C3:C=1))))
H: Left join 2 sheets on 2 key values, add constant value I'd like to join by date on these 2 sheets (Income & Expense), on key values month and day and add constant value from FixedCost sheet, Income: Expense: Add FixedCost to every row/date: Desired result, with subtotal on Dashboard sheet: Example sheet: https://docs.google.com/spreadsheets/d/1O1rZUstDNSXPdUVXvaDfPO4rAQs2cJWHimfGxbddtNU/edit#gid=1037187610 How can this be done? I've seen the array formula solution, but it looks like an inner join instead of a left join here: LEFT JOIN two and more tables in Google Sheets AI: =ARRAYFORMULA({Income!A1:E1, Expense!C1:D1, "FixedCost", "SubTotal"; INDIRECT("Income!A2:E"&COUNTA(Income!A2:A)+1), IFERROR(VLOOKUP(TRANSPOSE(QUERY(TRANSPOSE(INDIRECT("Income!A2:B"& COUNTA(Income!A2:A)+1)),,999^99)), {TRANSPOSE(QUERY(TRANSPOSE(Expense!A2:B),,999^99)), Expense!C2:D}, {2, 3}, 0), 0), TRANSPOSE(SPLIT(REPT(FixedCost!A2&"♠", COUNTA(Income!A2:A)), "♠")), ARRAY_CONSTRAIN(Income!C2:C-IFERROR(VLOOKUP(TRANSPOSE(QUERY(TRANSPOSE( INDIRECT("Income!A2:B"&COUNTA(Income!A2:A)+1)),,999^99)), {TRANSPOSE(QUERY(TRANSPOSE(Expense!A2:B),,999^99)), Expense!C2:D}, 2, 0), 0)- FixedCost!A2, COUNTA(Income!A2:A), 1)})
H: Insert literal text that begins with = sign I would like to add text that begins with an equal sign in a cell but I get the following error: #NAME? Question: How can I set a cell's text to a string that begins with the = sign? AI: In Google Sheets, as in some other spreadsheet apps, typing a single apostrophe at the beginning of your entry will prevent the software parsing your input. Type '=Hello and =Hello will appear in the cell.
H: Copy the contents of a row to another sheet based on a specific value I have a Google sheet with various rows of data, in one column (Column E), the values for each row follow the following pattern: A1 A2 B1 B2 C1 C2 etc. I want to copy the rows containing all "A" values to one sheet, "B" values to another sheet and "C" to another, and so on for all other values (leaving the original data in a 'master' sheet). Is this possible in Google Sheets? So far the closest I have is: =filter("Sheet1"!A:E,"Sheet1"!E1:E1000="A1") but this doesn't work for me unfortunately AI: assuming that A1, A2, B1, etc. are values not cell references you need to fix your syntax: =FILTER(Sheet1!A:E, Sheet1!E1:E=REGEXEXTRACT(Sheet1!E1:E, "A.*")) if the sheet name has spaces then it would be: =FILTER('Sheet 1'!A:E, 'Sheet 1'!E1:E=REGEXEXTRACT('Sheet 1'!E1:E, "A.*")) also you could use QUERY: =QUERY(Sheet1!A:E, "where E contains 'A'", 0)
H: Comparing Unique Values to a Range I have the following formula =CONCATENATE (FILTER(boxmod!AC2:AC, boxmod!I2:AB=concatboxmod!C2 )) The intention of this formula is to take a range and compare it to a list of unique identifiers on tab sheet concatmodbox which SHOULD look like this upon entering a formula (right now column D is empty): DESIRED OUTPUT (COLUMN D): Note that Column C is using a =UNIQUE formula to pull the info from boxmod column AC. But my formula isn't working in column D In tab sheet boxmod I have the unique IDS in column AC, and the data to append to them in columns I-AB. This sheet looks like: However my formula cannot grab the entire range of I2:AB, so it only works if I write the formula for a single column. Does anyone know how to make a range work in the area {boxmod!I2:AB}? AI: cell C1: =UNIQUE(boxmod!AC2:AC) cell D1: =ARRAYFORMULA(TRIM(TRANSPOSE(QUERY(TRANSPOSE(IFERROR( VLOOKUP(C1:C, {boxmod!AC:AC, boxmod!I:J}, {2, 3}, 0))), , 999^99))))
H: Boolean test of whether a time is before or after midnight in Google Sheets? I'm having a job trying to create a Google sheet which calculates the difference between the time I fell asleep and the time I woke up. Here's what I want to happen: Sleep time Wake time Difference 23:30 6:00 6.50 00:00 6:00 6.00 00:30 6:00 5.50 Here's what actually happens: Sleep time Wake time Difference 23:30 6:00 -17.50 00:00 6:00 6.00 00:30 6:00 5.50 The formula for the Difference column is = (B2 - A2) * 24 as per this answer. It's formatted as a number. The problem is, of course, the midnight boundary - in my head, it's clear that 23:30 means 11.30pm of Day 1, whereas 6:00 is 6 am of Day 2, but that's not clear to Gsheets. So I tried a super messy workaround where I add one to the date of the wake time, but that doesn't work either: Date Sleep time Sleep date time Wake date Wake time Wake date time Difference 29/05/2019 23:30:00 29/05/2019 23:30:00 30/05/2019 06:00:00 30/05/2019 06:00:00 6.50 30/05/2019 00:00:00 30/05/2019 00:00:00 31/05/2019 06:00:00 31/05/2019 06:00:00 30.00 31/05/2019 00:30:00 31/05/2019 00:30:00 01/06/2019 06:00:00 01/06/2019 06:00:00 29.50 It calculates correctly for the scenario where I fall asleep before midnight, but not when I fall asleep on or after midnight. I think this solution would be possible if I knew how to test whether a time is before midnight or after midnight. Doing a simple comparison does not work, as in either of these options: = A1 < A2 (where A2 is '00:00:00' formatted as time) = A1 < "00:00:00" The first one returns all FALSE whether A1 is "23:30", "00:00" or "00:30", and the second one returns all TRUE for the same parameters. I'm sure I'm missing something obvious, but I simply don't know how to test whether a time is before midnight or after midnight in this context. Is there a way? I'm aware of this answer which proposes formatting the time as 24:30 after midnight, which I would prefer to avoid so that it's easier to input the time, or "splitting the event in two", which I don't really understand what that means practically. If there is a boolean solution, that might be easier. AI: =ARRAYFORMULA(IF(LEN(A2:A), TEXT(B2:B-A2:A, "hh:mm"), )) =ARRAYFORMULA(IF(LEN(A2:A), TEXT(B2:B-A2:A, "hh:mm")*24, ))
H: How to get a true when a character is NOT in range I want to filter all cells in a range which are not empty and does not contain a certain character. So I tried everything with regexmatch =filter(Planning!G$5:G$37; regexmatch(Planning!G$5:G$37 ; "![a]")) =filter(Planning!G$5:G$37; regexmatch(Planning!G$5:G$37 ; "<>a")) =filter(Planning!G$5:G$37; regexmatch(Planning!G$5:G$37 ; "\a")) but not even my simplified formula where I cut out the " ! not empty" part, doesn't give me any result. My question: So what is the proper way to show the cells that don't contain the letter 'a' AI: =QUERY(A1:A10, "where not A contains 'a' and A is not null")
H: Reset Gmail settings to default Is it possible to reset Gmail settings to the default settings? Which will be like the settings you get when opening your account. AI: It is possible but only manually by looking at reference pictures of fresh account. These tutorials can be used as those references: https://youtu.be/UaX15zFXCRc https://youtu.be/0D7H4p_luvs In other words, Gmail does not have any "reset to default" button so the only way is to track back those settings from various online sources or by creating a new account and checking and using those settings as the reference point.
H: Concatenating cell values to a matching cell In the following sheet I am trying to grab a list of GUID keys from tab sheet1 and concatenate them to their respective order in tab sheet2. My expected output is in tab sheet2 column B as follows: Example: Order1 and Order3 both have a 2 in their columns so the resulting output for 2 on tab sheet2 should be both GUID keys bbb and ccc. As is shown in tab sheet2 column B I used the following filter to get the unique order numbers in tab sheet2 column A. =sort(unique(transpose(split(arrayformula(concatenate (if(len(Sheet1!A2:C)>0,Sheet1!A2:C&";",""))),";")))) I tried to use the following =CONCATENATE (FILTER(Sheet1!D2:D, Sheet1!A2:C=Sheet2!A2 )) but it just errors out saying: FILTER range must be a single row or a single column So is there a way to write this in order to get the range and concatenate the results? I also played around with some app script to make it work but that couldn't do the trick and it seems like a simple sheets function would do what I need. This relates to the following but its the inverse of that function more or less. AI: =ARRAYFORMULA({SORT(TO_TEXT(UNIQUE(FILTER( {Sheet1!A2:A; Sheet1!B2:B; Sheet1!C2:C}, {Sheet1!A2:A; Sheet1!B2:B; Sheet1!C2:C}<>"")))), TRIM(TRANSPOSE(QUERY(TRANSPOSE(QUERY(IF( QUERY(TO_TEXT(SPLIT(TRANSPOSE(SPLIT(QUERY(TRANSPOSE( QUERY(TRANSPOSE(IF(LEN(Sheet1!A2:C), "♠"&Sheet1!A2:C&"♦"&Sheet1!D2:D, )) ,,999^99)),,999^99), "♠")),"♦")), "select Col1,count(Col1) group by Col1 pivot Col2 order by Col1", 0)<>"", INDEX( QUERY(TO_TEXT(SPLIT(TRANSPOSE(SPLIT(QUERY(TRANSPOSE( QUERY(TRANSPOSE(IF(LEN(Sheet1!A2:C), "♠"&Sheet1!A2:C&"♦"&Sheet1!D2:D, )) ,,999^99)),,999^99), "♠")),"♦")), "select Col1,count(Col1) group by Col1 pivot Col2 order by Col1", 0), 1, ), ), "offset 1", 0)),,999^99)))})
H: Google Sheets conditional formatting for Max value that meets a second condition I'm working with a baseball statistics spreadsheet in Google Sheets, and I want to highlight the maximum value in my batting average column, but only if that value is for a player who has satisfied the proper criteria to qualify as a leader — their plate appearances must be greater than or equal to the maximum number of games played in the Games Played Column multiplied by 2.1. In my sheet, Column B=Games Played, Column E=Plate Appearances, Column O=Batting Average. I think I've got the logic to isolate the games played and plate appearance condition: $E:$E>=max(D2:D1000)*2.1 But I don't know how to show only the max value of that subset. I tried an AND function: =AND($E:$E>=max(D2:D1000)*2.1)+($O:$O=max(O:O)) ...but that gets everyone who meets that condition and the current max in that column. I then tried to write logic to show the max IF: =max(O2:O100)=IF($E:$E>=max(D2:D1000)*2.1) ...but I think this probably will make me look silly because I'm only just starting to learn how to do this! :) Would be so appreciative of your help. AI: =AND(E2>=MAX(D2:D)*2.1,O2=MAX(O2:O),O2<>"") =ARRAYFORMULA(MAX(IF(E$2:E>=MAX(D$2:D)*2.1, O$2:O)))
H: How can I have onEdit trigger when specific cells are selected? I can't seem to figure out how to get my script to trigger only on the edit of specific cells and on the current sheet. I've tried just about everything and it just refuses to run the script at all if I change anything. I've created new variables to try and select the specific cells, then trigger with an if statement all to no avail. The script below is the only current version I have working which triggers should I edit anything anywhere. Please someone help me out, I've no idea what I've done wrong. Edit: Updated the code I've been trying... Still not doing anything. function onEdit(e) { var sheet = SpreadsheetApp.getActiveSheet(); var r = sheet.getRange("D11"); if (r == 'Hide'){ r.hideRows(11); }} AI: Add getValue() to var r = sheet.getRange("D11");. The resulting code line is: var r = sheet.getRange("D11").getValue(); The above because getRange returns Range object which not return directly it's value/values. Also replace r.hideRows(11); by sheet.hideRows(11); For further details checkout https://developers.google.com/apps-script/guides/sheets
H: Google Sheets Conditional Formatting custom formula not working I am trying to shade all rows that are associated with a specific value of column B as =$B2="BAMS", yet custom formula keeps saying the wrong formula. Any idea? AI: try it like this: =$B1="BAMS" .
H: High performance Google Apps Script version? I am planning a Web app tightly integrated with the Google platform. Calendar, Drive, Docs, you name it. My only concern is GAS processing time, as it is well known that script execution is slow. Testified. I wonder if is there any professional grade version (paid?) that allows faster script execution... AI: If you get lucky, the best you can have is Early Access otherwise it will cost you $12+/month (https://gsuite.google.com/pricing.html) https://developers.google.com/apps-script/guides/services/quotas
H: Web app to search and download high quality music from YouTube I'm looking for a web app that lets you do the following: User types in the name and artist of a song. The search component: app goes to YouTube and fetches the video of that song with the highest quality audio. (Most likely this will be an unofficial lyrics video or picture video someone uploaded as a tribute to the original artist. Sometimes, the official music video.) The download component: app strips the audio from the video, converts the audio to a format selected by the user, such as mp3, ideally applies correct tags to the audio file, and provides a link for the user to click to download the audio file. Does such a web app or service exist? AI: go to https://www.youtube.com/ search for the video you need add gen before youtube so the URL will look like: https://www.genyoutube.com/watch?v=TMVt7_7Uni8 hit the ENTER key select what you want to download:
H: Change default values when Google Forms autofills a Google Sheets There's a Google form that's linked with a Google sheet: whenever a response is posted to the forme, a new line is added to the sheet (here's a quick tutorial just in case). Is it possible to have this newly added line to include some formulas? As an example, say the web form asks for Name Date of birth Then I'd like the output Google sheet to look like Name | Date of Birth | Age <from form> <from form> =TODAY() - B2 While by default, the third column is created with no value AI: You will need an array formula for that purpose: =ARRAYFORMULA(IF(LEN(B2:B), TODAY()-B2:B, )) or in the first row: ={"header"; ARRAYFORMULA(IF(LEN(B2:B), TODAY()-B2:B, ))}
H: Is it possible to add an IF condition to create a comment if a condition is met? I have a sheet connected to a form and my users sometimes add cases many times which causes duplicates, I solved this by adding conditional coloring to the duplicated sheets. Now I want to know if it's possible to add an IF rule in a case that duplicates found in the red color (which represents a duplicate) to add a comment automatically? AI: =ARRAYFORMULA(IF(COUNTIF(A2:A, A2:A)>1, "Duplicate", ))
H: Looking for a way to get the current date represented as a numbered month with decimals Essentially I'm hoping to find a formula that would return the current date as a month in decimal form. So if it's October 15th, the number returned would be 10.48. September 10th would come back as 9.33. I'm looking for this because I'm hoping to have the year's current sales presented as a monthly average without only dealing with completed months. If you have another way to do that, I'd love to hear it. AI: =ARRAYFORMULA(IF(LEN(A2:A), TEXT(MONTH(A2:A)+(DAY(A2:A)/DAY(EOMONTH(A2:A, 0))), "0.00")*1, ))
H: Google Sheets' MONTH function on an empty cell returns 12 Is this an expected behaviour that month(ref) returns 12 when the ref is an empty cell? I would have thought that this is a serious bug. Am I correct? No mention of that behaviour in the official docs: https://support.google.com/docs/answer/3093052?hl=en AI: In fact, yes it is expected behavior. All of the time/date based formulas default to lowest/highest value when there is no real reference. To prevent it, you are supposed to perform a simple logic check for real data: =IF(LEN(A1), MONTH(A1), ) =IF(A1<>"", MONTH(A1), ) Also, Google Documentation is way too empty!
H: Select from current cell to end of row (a la SHIFT + END) When I have a cell selected, how can I select from that cell to the end of its row? SHIFT + END works in most spreadsheet programs, but I can't get it to work in Google Sheets. I use Chrome on Linux. AI: try: CTRL + SHIFT + RIGHT ARROW for Mac keyboards it would be: COMMAND⌘ + SHIFT + RIGHT ARROW and same applies for the rest of the directions
H: How to create a line break in WhatsApp web? The web interface does not respect the setting where 'enter' sends a message (or not); pressing 'enter' does indeed send the message. I have composed letters in Word (including line breaks) and then pasted the text into the web interface, but this is overkill. So how does one create a line break in WhatsApp web? AI: You can press Shift+Enter to create line breaks in WhatsApp web: Documented: https://gadgets.ndtv.com/apps/features/whatsapp-keyboard-shortcuts-mac-windows-app-browser-full-list-2409260 Many desktop applications and websites exhibit this behaviour as well; one of the examples is Stack Exchange's own chat server.
H: How do I refer to data in a column under this month? In the below screenshot, I'm trying to get B42 to show the value of whichever cell on row 40 is under the current month's column: As the dates are automatically generated using a transpose(arryaformula) function, each month is actually written as DD/MM/YYYY. However, I've formatted it so only the M and Y show. The formula in the bar was lifted from another answer on here but, understandably, it can't find today's date as each column name is actually the first of each month. Could someone help me, please? AI: =INDIRECT(ADDRESS(40, MATCH(DATE(YEAR(TODAY()), MONTH(TODAY()), 1), C33:33, 0)+2))
H: Set link in email body I have script that sends an email from google sheet and want to have link in the email's body but code like var html_link = "google.com"; var body = "<a href=" + html_link + ">Google</a>" MailApp.sendEmail(email1,subject ,body, {attachments:[{fileName:"RdS "+datet+ ".pdf", content:contents, mimeType:"application//pdf"}]}); give me same code in email body, not the link. So email body looks like this Google Where I am wrong? AI: ok, I learned that you need to apply htmlbody like var contentHTML = "<body> <font color='red'> <b>SUPERVISOR!</b> \n \n <p> <b> REVISA EL PLAN/FACT DE LA SEMANA</font></b> </p><br> <a href='" + urlsheet + "'>CLICK PARA SIGUIR A LOS REPORTES DEL TURNO</a> </p><br> </body>" GmailApp.sendEmail(email1,subject ,body, {htmlBody: contentHTML}); now it works
H: Full Join 2 lists with 3 key values I'd like to fully join 2 tables on 3 key values, there doesn't need to be 0 value on blank cells if it makes it easier to understand (Some Array Formulas can be really confusing) I have income: I have expense: I'd like to fully join the 2 tables so it results like this: How can I achieve this in Google Sheets? Here's the example sheet: https://docs.google.com/spreadsheets/d/1O1rZUstDNSXPdUVXvaDfPO4rAQs2cJWHimfGxbddtNU/edit#gid=490516150 AI: =ARRAYFORMULA({QUERY(SORT(UNIQUE({Income!A2:C; Expense!A2:C})), "where Col1 is not null"), {IFERROR(VLOOKUP(TRANSPOSE(QUERY(TRANSPOSE(QUERY(SORT(UNIQUE({Income!A2:C; Expense!A2:C})), "where Col1 is not null")),,999^99)), {TRANSPOSE(QUERY(TRANSPOSE(Income!A2:C),,999^99)), Income!D2:D}, 2, 0), 0), IFERROR(VLOOKUP(TRANSPOSE(QUERY(TRANSPOSE(QUERY(SORT(UNIQUE({Income!A2:C; Expense!A2:C})), "where Col1 is not null")),,999^99)), {TRANSPOSE(QUERY(TRANSPOSE(Expense!A2:C),,999^99)), Expense!D2:D}, 2, 0), 0)}})
H: How to see all files shared to a specific user Google Drive? Context: You want to find all the files/folders that you have access to or are part of your organization which are shared to a specific user. This is an important ability to security if you need to revoke access to a user who is not part of your organization. AI: On the Google Drive search bar write to:usanername@example.com where usanername@example.com is the email address of the user that want to see the files shared with them and that you have access too.
H: Is it possible to edit the column a Google Form response saves to? I have a client who uses a Google Form to save data to a Google Sheet. They deleted and recreated one question, and the responses to that question are now being stored in a new column. This messes up existing formulas and pivot tables that are in place. Is it possible to change where questions responses are saved to within a Google Sheet? The only thing I can see that is configurable is the Sheet where the responses are stored... AI: Unfortunately, this is not supported in Google Sheets. A common practice (workaround) is to QUERY the Form Response output into the separate sheet and then feed the formulas and pivot tables from there.
H: Perform functions (AVERAGE, STDEV) on rows grouped by unique values in Google Sheets I would like to be able to group rows based on unique values and then output the AVERAGE and STDEV values for those groups. Using the table below as an example, I would like to determine the AVERAGE and STDEV for each unique ID and type (1a, 1b, 2a, 2b, 3a, 3b). One possible solution is to create a new column and use CONCATENATE to combine the ID and Type together to create unique IDs to work from, but I'd like to try to avoid extraneous columns if possible. I feel like this could be accomplished using some combination of the QUERY, UNIQUE, and FILTER functions, but I haven't been able to figure it out. 1 a 5 1 a 7 1 a 9 1 b 2 1 b 4 1 a 6 1 a 9 1 b 8 1 a 1 2 a 5 2 a 2 2 a 4 2 b 6 2 b 7 2 a 8 3 b 1 3 b 7 3 a 5 3 a 6 3 a 8 3 a 9 3 b 4 3 b 6 3 b 3 AI: ={QUERY(A1:C, "select A,avg(C) where A is not null group by A label avg(C)'Averages'", 0); QUERY(A1:C, "select B,avg(C) where B is not null group by B label avg(C)''", 0)} ={"Stdev"; STDEV(FILTER(C:C, A:A=E2)); STDEV(FILTER(C:C, A:A=E3)); STDEV(FILTER(C:C, A:A=E4)); STDEV(FILTER(C:C, B:B=E5)); STDEV(FILTER(C:C, B:B=E6))} ______________________________________________________________ =ARRAYFORMULA(QUERY({A1:A&B1:B, C1:C}, "select Col1,avg(Col2) where Col1 is not null group by Col1 label avg(Col2)'Averages'", 0)) ={"Stdev"; STDEV(FILTER(C:C, A:A&B:B=E2)); STDEV(FILTER(C:C, A:A&B:B=E3)); STDEV(FILTER(C:C, A:A&B:B=E4)); STDEV(FILTER(C:C, A:A&B:B=E5)); STDEV(FILTER(C:C, A:A&B:B=E6)); STDEV(FILTER(C:C, A:A&B:B=E7))}
H: How can I merge drop-down columns in Google Sheets? Please see Investment Portfolio Tracker - TMOAP Official Version 5.2. If the three columns (in red rectangles) remain the same for rows 5-20, it's obviously foolish and unproductive to click on the drop-down menu and pick the same three specifics (VA, Buy, RRSP) 48 (16 x 3) times. Thus how can I be more productive, and click on the drop-down menu and pick merely 3 times (once for each of the three columns)? AI: Instead of doing it individually for each cell, you are able to apply it to the whole range at once by adding :C at the end like: To override multiple cells in the range you are able to reference the start point and then manage the whole area just from one cell. For example, if you paste =C$5 into C6 cell and drag down to reach C15 then you are able to influence C6:C15 directly from C5 cell:
H: Google Sheets sort question I used to know this a few years ago and for the life of me can't figure it out and can't find an answer in Google help. I know how to sort columns, but only by the default A-Z format, how can I sort some columns by that and secondary ones by words that aren't alphabetical, like military rank? I know a couple of ugly workarounds, but I'd like the real deal. AI: There are two ways how to do it. Either use Create a filter or Create new filter view under Data after you select all columns: The 3rd option would be to use a formula to sort the data based on a custom sequence which needs to be priorly defined =ARRAYFORMULA(ARRAY_CONSTRAIN(QUERY({Sheet21!A2:N, IFERROR(VLOOKUP(Sheet21!C2:C, {Z2:Z, ROW(Z2:Z)}, 2, 0))}, "order by Col4,Col5,Col15", 0), 9^232, 14))
H: Create named Versions of Google Sheets (or other documents) automatically on a schedule I'm trying to create named versions of a file on a schedule, say once per week. Refer here for an example. The named version should be something like the file name + date so that it can be searchable. I feel like this should be possible with something like Google's App script, but I'm not sure how to access the "name version" feature. Does anyone know if something like this is possible? AI: It's not possible to handle named versions of Google Spreadsheets by using Google Apps Script and Google Drive API as they haven't methods to do this. This could be possible by using a tool that simulate the user actions like opening a spreadsheet by using a web browser and doing the click and type actions. Please ask on Software Recommendations for a tool like this. References https://developers.google.com/apps-script https://developers.google.com/drive
H: dynamic borders for columns I have this script that sets borders for range if first cell is not empty function borders() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheetmon = ss.getActiveSheet() var rows = sheetmon.getRange('A55:AY177'); var numRows = rows.getNumRows(); var values = rows.getValues(); var testvalues = sheetmon.getRange('A55:A177') rows.setBorder(false, false, false, false, false, false, "black", SpreadsheetApp.BorderStyle.SOLID_MEDIUM); for (var i = 0; i <= numRows - 1; i++) { var n = i + 55; Logger.log(testvalues[i] > 0); if (testvalues[i] == '') { } else { Logger.log(testvalues[i]); sheetmon.getRange('A' + n + ':AY' + n).setBorder(true, true, true, true, true, true, "gray", SpreadsheetApp.BorderStyle.SOLID); } }} Question - how to set dynamic final column for setBorder? Instead of column AY I want to set the one where the last cell in row 53 is not empty. AI: To get the last cell in a row that isn't empty, try this based on a JavaScript trick that I found on an answer to Determining the last row in a single column var values = SpreadsheetApp.getActiveSheet().getRange("53:53").getValues(); var last = values[0].filter(String).length; The above assumes that all the row cells are continuos (no blank cells between two non-blank cells).
H: Perform different functions depending on if a call is blank using Google Sheets I want to determine the area of objects in each row. If values for length and width are present, I want to multiply the values to determine the area of the object. However, for circular objects, the length value indicates the diameter, and the width column is left blank. If there is a value in the length column, but not the width column, the calculation should be PI()*(F2/2)^2 So, given the example table below, the 1st, 2nd, and 4th rows should simply multiply the length by width, while the 3rd and 5th rows should output the PI()*(F2/2)^2 formula. I tried using conditional formatting along with ISBLANK, but couldn't get it working correctly. Length | Width 5 | 6 3 | 4 6 | 2 | 6 5 | AI: =ARRAYFORMULA(IF(LEN(A2:A), IF(LEN(B2:B), A2:A*B2:B, PI()*(A2:A/2)^2), ))
H: How to disable auto-pause for YouTube Originally I thought this was a browser issue, but it turns out to be an actual YouTube issue. I'm using Brave Version 0.62.51. Every time I play YouTube, after 10 minutes the video will pause and ask if I am still listening. Video paused. Continue watching? YES How do I disable this feature? Or at least extend the timeout. AI: I don't believe you can. Apparently it exists in YouTube Red as well. There's a Chrome extension however. No idea about Brave. YouTube NonStop
H: How to get data to fill alternative cells when data is present in a zigzag pattern https://docs.google.com/spreadsheets/d/1kwGbFd88cgifQRK_ZqsahQt1aDLzMTnmxHKs7mML5jA/edit?usp=sharing How to get data entered in one cell to fill another cell in a different location with same values simultaneously when it is above or below certain values but when data is already present there to default to second or third alternative location that will be located either directly to the right or to the right and below present in a zigzag pattern. the link has a detailed description of the question AI: E141: =QUERY({$C$5:$C$110; $J$5:$J$110; $Q$5:$Q$110}, "where Col1 is not null order by Col1 limit 1", 0) F141: =QUERY({$C$5:$C$110; $J$5:$J$110; $Q$5:$Q$110}, "where Col1 is not null order by Col1 limit 1 offset 1", 0) F140: =QUERY({$C$5:$C$110; $J$5:$J$110; $Q$5:$Q$110}, "where Col1 is not null order by Col1 limit 1 offset 2", 0) E139: =QUERY({$C$5:$C$110; $J$5:$J$110; $Q$5:$Q$110}, "where Col1 is not null order by Col1 limit 1 offset 3", 0) F139: =QUERY({$C$5:$C$110; $J$5:$J$110; $Q$5:$Q$110}, "where Col1 is not null order by Col1 limit 1 offset 4", 0) etc. or like:
H: Does Google Sheets allow moving a chart to its own sheet? I know that Google Sheets used to allow moving a chart to its own worksheet so that nothing else is in that sheet. All the instructions I've found for how to do so are no longer relevant to the most recent UI. Can this still be done? How? AI: select the chart click on three dots select either Copy chart or Move to own sheet
H: Google slides: How to add transparency to a background image? How to add transparency to a background image in Google slides? AI: This video is the only answer I got. Insert the image as a normal image, not as a background image and make it as big as the entire background Select the image, then go format and adjust the transparency Right click on it and send to the back
H: Help using 2 parameters to output a specific category I'm looking to be able to enter an "AGE" and a "V02" in a formula that tells me what "category" the person would be in ie; good, excellent, etc. AI: =ARRAYFORMULA(HLOOKUP(I2, {VLOOKUP(I1, A2:G, {2,3,4,5,6,7}, 1); B1:G1}, 2, 1))
H: Display results of success over attempts in X/Y format I am tracking the number of successes out of the total number of attempts. So, for example, Column A would be the number of successes. Column B would be the number of fails. I would like Column C to show the number of Success over the total number of attempts. Example: A:4 B:3 C:4/7 He had 4 successes out of 7 attempts. Is this possible? Also accounting for zero entries. Example: A:0 B:7 C:0/7 AI: =A1/SUM(A1; B1) =ARRAYFORMULA(IF(LEN(B1:B); A1:A/(A1:A+B1:B); )) =ARRAYFORMULA(IF(LEN(B1:B); IF(A1:A=""; 0; A1:A)&"/"&(A1:A+B1:B); ))
H: All Google Docs URL parameters/functions/commands? Where is the official documentation for the URL parameters/arguments? There are things like /preview, /copy, /export, #headings, ?something question mark, that I stumbled on tips and tricks articles on the web. Where is the Official URL documentation that explains ALL of them? AI: There is no official Google documentation for this. Let's have unofficial one: /copy /export /edit /view /preview /create /pub? /fm?id= /tq?tqx=out:html &key=[ID] &gid=[#] &single=[true|false] &range=[CellAddress|CellAddress1:CellAddress2] &embedded=[true|false] &widget=[true|false] &output=[html|txt|csv|pdf] &format=[pdf|docx|xlsx|pptx] &gridlines=[false] &rm=[minimal|embedded|full|demo|?] &ui=2 (interface version) &chrome=[false] (full screen mode) &width=[width] &height=[height] &frameborder=[size of border] &q=[Search Query] &viewer? &start= &channel= &ibd= &client= &fmcmd=12 &size=0 &fzr=[true] &portrait=[false] &fitw=[true] &printtitle=[true] &sheetnames=[true] &pagenum=[CENTER] &attachment=[true] &alt=[rss] &tq=[query params here] You may also be interested in this related question and answer about how to construct a specific URL to copy a template file into a specific folder. https://webapps.stackexchange.com/a/139589/266240
H: YouTube playlists no longer auto-play. How is this error fixed? So when a video in a playlist ends it just stops and displays the thumbnail image and the play button. I opened up the console and notice that win the video ends I get: [Deprecation] HTML Imports is deprecated and will be removed in M73, around March 2019. Please use ES modules instead. See https://www.chromestatus.com/features/5144752345317376 for more details. 22:35:06.982 desktop_polymer_sel_auto_svg_home_v2.js:1557 <link rel=preload> must have a valid `as` value e @ desktop_polymer_sel_auto_svg_home_v2.js:1557 22:35:09.196 network.js:15 [Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: nextHopProtocol in Navigation Timing 2. https://www.chromestatus.com/features/5637885046816768. Uncaught TypeError: Cannot read property 'data' of undefined at HTMLElement.setPlaylistComponent (desktop_polymer_sel_auto_svg_home_v2.js:14132) at HTMLElement.attached (desktop_polymer_sel_auto_svg_home_v2.js:12683) at HTMLElement.e.attached (desktop_polymer_sel_auto_svg_home_v2.js:7728) at HTMLElement.a.connectedCallback (desktop_polymer_sel_auto_svg_home_v2.js:7660) at uh (desktop_polymer_sel_auto_svg_home_v2.js:738) at HTMLElement.isTwoColumnsChanged_ (desktop_polymer_sel_auto_svg_home_v2.js:11919) at Object.nU [as fn] (desktop_polymer_sel_auto_svg_home_v2.js:7208) at lU (desktop_polymer_sel_auto_svg_home_v2.js:7206) at kU (desktop_polymer_sel_auto_svg_home_v2.js:7205) at HTMLElement.a._propertiesChanged (desktop_polymer_sel_auto_svg_home_v2.js:7258) Any help is greatly appreciated. I have lots of music playlists. AI: This issue was fixed by removing all google and youtube cookies and reloading the browser.
H: How to convert an array of unique records into an array where records are repeated N times? I have a Google sheet that records items and their quantities. In order to input them into our SalesForce system, I need to split each record into repeated rows, according to the quantity of the item. For example, this would be the source table: Item Quantity ------------------------ Whiteboard 3 A4 paper ream 4 Cash box 2 And the destination table: Item -------------- Whiteboard Whiteboard Whiteboard A4 paper ream A4 paper ream A4 paper ream A4 paper ream Cash box Cash box I've tried using a combination of the REPT, SPLIT and TRANSPOSE function, to repeat the string N number of times, then split it, and then transpose it - the problem is that this will only work for one record, because multiple records will try and overwrite each other. Because the total number of records will be over 36,000, it's not feasible to do this manually. Is there a formula or otherwise that can achieve this result? Bonus question: Is there also a way of preserving information in the source table on the destination table? For example, if my source table has a location field for each record (which it does), can I use a formula to copy this information to each repeated record? For example: Item Quantity Location ------------------------------------------ Whiteboard 3 Shelf 1 A4 paper ream 4 Box 2 Cash box 2 Shelf 7 Item Location ------------------------ Whiteboard Shelf 1 Whiteboard Shelf 1 Whiteboard Shelf 1 A4 paper ream Box 2 A4 paper ream Box 2 A4 paper ream Box 2 A4 paper ream Box 2 Cash box Shelf 7 Cash box Shelf 7 AI: =TRANSPOSE(SPLIT(JOIN(",", ARRAYFORMULA(REPT(SPLIT( INDIRECT("A2:A"&COUNTA(A2:A)+1), ",")&",", INDIRECT("B2:B"&COUNTA(B2:B)+1)))), ",")) =ARRAYFORMULA({TRANSPOSE(SPLIT(JOIN(",", REPT(SPLIT( INDIRECT("A2:B"&COUNTA(A2:A)+1), ",")&",", INDIRECT("B2:B"&COUNTA(B2:B)+1))), ",")), TRANSPOSE(SPLIT(JOIN(",", REPT(SPLIT( INDIRECT("C2:C"&COUNTA(A2:A)+1), ",")&",", INDIRECT("B2:B"&COUNTA(B2:B)+1))), ","))}) =ARRAYFORMULA(SUBSTITUTE({TRANSPOSE(SPLIT(JOIN(",", REPT(SPLIT( INDIRECT("A2:B"&COUNTA(A2:A)+1), ",")&",", INDIRECT("B2:B"&COUNTA(B2:B)+1))), ",")), TRANSPOSE(SPLIT(JOIN(",", REPT(SPLIT( IF(INDIRECT("C2:C"&COUNTA(A2:A)+1)="", "♦", INDIRECT("C2:C"&COUNTA(A2:A)+1)), ",")&",", INDIRECT("B2:B"&COUNTA(B2:B)+1))), ","))}, "♦", ""))
H: How to go to the first blank cell directly in a column of Google Sheets? I use column A mainly. A1 is the name of data type, and A2, A3, A4, ... are data. When I open this file, It shows the screen containing the first cell, A1. If I fill data from A2 to A250, then I should scroll down to the cell A251 to fill the next data. It takes some time, and I want to know the way (if exists) to go to the first blank cell of column A when I open this file. AI: you need onOpen script for your task like this: function onOpen(e) { var spreadsheet = e.source; var sheet = spreadsheet.getActiveSheet(); var lastRow = spreadsheet.getLastRow(); if (sheet.getMaxRows() == lastRow) { sheet.appendRow([""]); } lastRow = lastRow + 1; var range = sheet.getRange("A" + lastRow + ":A" + lastRow); sheet.setActiveRange(range); }
H: Google Sheets Conditional Formatting not working for all cells This is my first question using StackExchange, so please bear with me. I am making a spreadsheet for tracking due dates for training. Sheet 1 shows due dates that people with view only capabilities can see. Sheet 1 has all of the conditional formatting and formulas referencing all information to Sheet 2. Sheet 2 shows the last dates that the training was done, which will only be viewable by editors of the spreadsheet. Quick Rundown: Training A is good for 2 years. Training B-E has to be done between April 1st and March 31st cycles, so if training is within those dates, then the next due date will show March 31st of the next year. Training F is good for 1 year. Training G is good until December 31st of the following year Training H-J is semi-annually, so if it was done anytime within the first quarter of the calendar year, next due date is the last day of the third quarter. If it was done anytime within the second quarter, due date is the last date of the fourth quarter, etc. Training K-M is good for 1 year. Training N-P is good for 2 years. Training Q-Z is one-time training, so no due dates and is just referenced to the cell on Sheet 2. So, the problem I'm having is with the Conditional Formatting.I originally had one set of formatting for the entire sheet, but when I noticed certain cells weren't highlighting the way they were supposed to, then I broke up the conditional formatting into groups. Expected Results highlight yellow if date is between 4-6 months from expiring highlight orange if date is between 2-4 months from expiring highlight red if date is between 0-2 months from expiring highlight black with red letters if date is expired highlight cyan if date is today Actual Result No highlighting in columns D-G and I-L Is there anything that is preventing this from happening? Should I be using any different formulas for the results needed? Here is the link: https://docs.google.com/spreadsheets/d/1gMC6vuCfjPuDMHpGw43sRheYxCqi09xGqBqW155gUjA/edit?usp=sharing AI: Formulas you have in D:G and I:L do not return valid dates but text strings so Conditional formatting for dates does not pick it up. To fix it you need to wrap your formulas into =TO_DATE(IFERROR(DATEVALUE(_formula_here_))) You can also level up your sheet skils with deleting column J (range: '1'!J5:J) and paste this into J5 cell: =ARRAYFORMULA(TO_DATE(IFERROR(DATEVALUE(IF(LEN('2'!K5:K), IF(('2'!K5:K > DATE(2017, 1, 1)) * ('2'!K5:K < DATE(2017, 3, 31)), "09/30/2017", IF(('2'!K5:K > DATE(2017, 4, 1)) * ('2'!K5:K < DATE(2017, 6, 30)), "12/31/2017", IF(('2'!K5:K > DATE(2017, 7, 1)) * ('2'!K5:K < DATE(2017, 9, 30)), "03/31/2018", IF(('2'!K5:K > DATE(2017, 10, 1)) * ('2'!K5:K < DATE(2017, 12, 31)), "06/30/2018", IF(('2'!K5:K > DATE(2018, 1, 1)) * ('2'!K5:K < DATE(2018, 3, 31)), "09/30/2018", IF(('2'!K5:K > DATE(2018, 4, 1)) * ('2'!K5:K < DATE(2018, 6, 30)), "12/31/2018", IF(('2'!K5:K > DATE(2018, 7, 1)) * ('2'!K5:K < DATE(2018, 9, 30)), "03/31/2019", IF(('2'!K5:K > DATE(2018, 10, 1)) * ('2'!K5:K < DATE(2018, 12, 31)), "06/30/2019", IF(('2'!K5:K > DATE(2019, 1, 1)) * ('2'!K5:K < DATE(2019, 3, 31)), "09/30/2019", IF(('2'!K5:K > DATE(2019, 4, 1)) * ('2'!K5:K < DATE(2019, 6, 30)), "12/31/2019", IF(('2'!K5:K > DATE(2019, 7, 1)) * ('2'!K5:K < DATE(2019, 9, 30)), "03/31/2020", IF(('2'!K5:K > DATE(2019, 10, 1)) * ('2'!K5:K < DATE(2019, 12, 31)), "06/30/2020", IF(('2'!K5:K > DATE(2020, 1, 1)) * ('2'!K5:K < DATE(2020, 3, 31)), "09/30/2020", IF(('2'!K5:K > DATE(2020, 4, 1)) * ('2'!K5:K < DATE(2020, 6, 30)), "12/31/2020", IF(('2'!K5:K > DATE(2020, 7, 1)) * ('2'!K5:K < DATE(2020, 9, 30)), "03/31/2021", IF(('2'!K5:K > DATE(2020, 10, 1)) * ('2'!K5:K < DATE(2020, 12, 31)), "06/30/2021", )))))))))))))))), )))))
H: Using ARRAYFORMULA and QUERY to produce results in multiple columns I would like to be able to group rows based on unique values and then output the AVERAGE and STDEV values of two different variables for those groups. Using the table below as an example, I would like to determine the AVERAGE and STDEV of two different variables for each unique ID and type (1a, 1b, 2a, 2b, 3a, 3b). I received assistance on this problem earlier which combined QUERY and ARRAYFORMULA and it worked wonderfully, but that was only for a single variable. Perform functions (AVERAGE, STDEV) on rows grouped by unique values in Google Sheets. Using the same formula twice adds additional unique value columns. This not only adds additional clutter, but also seems it could introduce additional errors if the unique ID columns don't match or aren't aligned. If possible, I would like to ensure that the calculations are being pulled from the same set of unique IDs. The answer to my previous question broke down the process into two steps, the first step grouping unique IDs and providing an AVERAGE for them, and the second step applying STDEV to those groups. Using the table below, the intended output would produce a column for the unique IDs, and then columns for "AverageLength" "AverageWidth" "LengthSD" "WidthSD". If the new formula could provide the first three output columns, the STDEV formula provided from the previous question could be applied to both the length and width data to create the final two output columns. ID Type L W 1 a 5 9 1 a 7 8 1 a 9 3 1 b 2 4 1 b 4 1 1 a 6 3 1 a 9 8 1 b 8 5 1 a 1 2 2 a 5 2 2 a 2 1 2 a 4 7 2 b 6 6 2 b 7 5 2 a 8 9 3 b 1 2 3 b 7 4 3 a 5 3 3 a 6 6 3 a 8 9 3 a 9 3 3 b 4 5 3 b 6 4 3 b 3 1 AI: F2: =ARRAYFORMULA(QUERY({A2:A&B2:B, C2:D}, "select Col1,avg(Col2),avg(Col3) where Col1 is not null group by Col1 label avg(Col2)'',avg(Col3)''", 0)) I2 and drag down: ={STDEV(FILTER(C:C, A:A&B:B=F2)), STDEV(FILTER(D:D, A:A&B:B=F2))}
H: Is there a way to convert DOCX to Google Docs directly in Google Drive? Before, Google Docs would automatically convert Word files when you open it using the "Open with > Google Docs" command on Google Drive. But recently, it updated to allow native editing of Office files. So now I have to open .docx files with Google Docs, and then select "File > Save as Google Docs" just to convert .docx into Google Docs format. Is there a faster way to do this? Note: Simply switching to Google Docs is not an option, as we still heavily use Word in our organization. AI: You can use Converter for Drive Document or Save Cloud files to Google Drive by adding it to your Drive: Also, there is an option in Drive settings:
H: Copy Contents of Cell When Checkbox is Checked - Google Scripts Preamble: never used javascript before, but trying to learn through google sheets since I work with tons of data. Hello, I'm attempting to write a google script that will take the contents of a cell 8 columns to the left of a column of checkboxes and copy it somewhere else. When the checkbox is checked, that would be the trigger to copy the contents. I'm hesitant around selecting the entire K:K range, but don't know how to have the function look at all checkboxes and trigger on a change from FALSE to TRUE. Also have no idea if an IF statement is correct here. function checkbox_track() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var request_log = ss.getSheetByName("Tracker") var checkbox_range = request_log.getRange("K:K"); var timestamp = new Date(); var user = Session.getEffectiveUser().getEmail(); var tracker = ss.getSheetByName("Tracker"); if (checkbox_range == "TRUE") { var metric_name = checkbox_range.offset(0,-8).getValue(); request_log.appendRow([timestamp, metric_name, user]); } } AI: Ok, so this is the closest I can get. Only problem now is some type of permissions issue not passing the user_name field to the tracker. That's going to be another issue entirely, but the functionality is there. Using onEdit(e) is the easiest way to track the checkboxes in realtime, I found out. Then, because onEdit looks at every cell in the sheet, this is added to have it only look at the sheet where the checkboxes are and where e.value turns to TRUE: if (activeSheet.getName() !== "Request Log" || e.value !== "TRUE") return; Since I had no other cells on the sheet that will ever be "TRUE" then it will always be confined to the checkboxes. function onEdit(e) { var ss = SpreadsheetApp.getActiveSpreadsheet(); var activeSheet = ss.getActiveSheet(); var checkbox_range = e.range; if (activeSheet.getName() !== "Request Log" || e.value !== "TRUE") return; var timestamp = new Date(); var tracker = ss.getSheetByName("Tracker"); var metric_name = checkbox_range.offset(0,-8).getValue(); var user_name = Session.getActiveUser().getEmail(); tracker.appendRow([timestamp, metric_name, user_name]); }
H: IMPORTRANGE from a separate sheet based on closest date to today's date Sheet1 will have data with different past dates Sheet2 - I want to import data from the 1st sheet and find the closest date to today's date. https://docs.google.com/spreadsheets/d/1Kr5NRb4TmNhr8hQb2DXt6pdK4UC3H1IUFGjvQtucWQw/edit?usp=sharing AI: When you want to get data in the same spreadsheet you do not need IMPORTRANGE. Let's say Sheet1 looks like this: Then in Sheet2 you need to do this: =FILTER(Sheet1!A:Z, Sheet1!A:A=MAX(Sheet1!A:A), Sheet1!A:A<=TODAY())
H: If a cell equals to this date, then filter through another sheet and grab that cell that has the same date When you input a date in sheet 1, I want it to automatically grab data from sheet 2 and input text that matches that date back into sheet 1 AI: You can try VLOOKUP it if today's date is in A column of Sheet1: =VLOOKUP(TODAY(), 'Sheet1'!A:B, 2, 0)
H: How do I activate monetization on my YouTube channel? I want to make money on youtube, and I heard that you have to enable it but didn't know how to. So I searched up "how to make money on youtube", and it brought up this tutorial guide: https://creatoracademy.youtube.com/page/lesson/revenue-basics#strategies-zippy-link-2 On the first step, it says: After signing into YouTube, enter YouTube Studio, and select “Monetization” from the left menu. Under “Monetization”, follow the onscreen steps to accept the YouTube Partner Program Terms. I followed the steps listed but realized that there is no Monetization button on the left. This does not make any sense. here is a screenshot AI: Youtube has changed its policy. In order to do monetisazion, you have to be a partner. In order to become a partner, you must have more than 1000 subscribers and a total of 4000 or more hours of watchtime. Once your channel is eligible to become a partner, you must request to become a partner. Once you are a partner, the monitisation option should be available to you. See also Youtube Partner Program
H: Google Sheets Conditional Formatting Formula I am doing a formula in conditional formatting and I need it to be relative to each of the 1500 rows but it keeps retrieving an absolute value. how do I get around putting a new formatting formula for each row? this is my formula: =AND(G5<I2,ISBLANK(H5)=True) need it to be applied, relatively, to E5:E1500. AI: =AND(G5 < I$2, ISBLANK(H5)) =AND(G5 < I$2, ISBLANK(H5), LEN(G5))
H: Google Sheets color row if date is closest to today's date If possible, I would like to have a color schema applied to the table. For instance, the cell that has the closest date to today will be green The cell that has the furthest date to today will be red. Note the date in the cells automatically changes and it's not static. AI: red color: =IF(MIN($B$2:$B)=$B2, 1) green color: =IF(MAX($B$2:$B)=$B2, 1)
H: Any way to stop the "outside of your domain" notifications across Google Apps? I use a GSuite account as my primary Google account for everything and across calendar / hangouts / etc, I see a "outside of your domain" notification for a lot of random things. Sometimes it's just a message - other times, I have to specifically allow someone from outside my domain to act. Is there any global setting to allow it always across all apps? AI: Several G Suite apps have a setting for G Suite admins to enable/disable the warning, like Hangouts From Hangouts settings Hangouts out of domain warning By enabling this setting, you provide a warning to users when they’re having a Hangout with users of an external domain. As an administrator, this also provides you with more visibility into how users communicate with users outside your domain. If you are a domain admin, go to https://admin.google.com then to each app settings page and change the corresponding setting accordingly If you aren't a domain admin, ask your domain admin to change the domain warning settings.
H: Displays data arrays with appendrow where other columns contain data I wrote a script to display a list of names and folder IDs. The script that I wrote like this: function listFolders() { var sheet = SpreadsheetApp.getActiveSheet(); sheet.getRange('A2:B').clear(); //sheet.appendRow(["Name", "Folder-Id"]); var folderID = DriveApp.getFolderById("1Hp_dM8WR0mGDT5q-a-VS-VVtl5dNCLfe"); var contents = folderID.getFolders(); var cnt = 0; var lFolder; while (contents.hasNext()) { var lFolder = contents.next(); cnt++; data = [ lFolder.getName(), lFolder.getId(), ]; sheet.getRange(2, 1, data.length, data[0].length).setValues(data); //modified }; }; I want to add new data in column C. After I fill in a text in column C, then I run the script. But the second row is empty. AI: Regarding the rev 2 of the question I don't think that the modified code line produce the result of the previous code and it's shown in the image because it writes data over and over the same range. If you will go to use that code line then the first argument should be a variable corresponding to the row where the data will be written. I reiterate that a better practices is to avoid the use of Google Apps Script methods inside a loop, instead create an array that hold all the values to be added to the sheet then add them on a single statement (it's implicit that it will be out of any loop). About the rev 1 of the question appendRow(rowContent) adds the rowContent to the first empty row, so if you will be writing data on column C, instead of it use setValues(values). It's worth to note that Google Apps Script methods are slow so it's advisable whenever is possible to avoid their use on loops. To do this use your loop to create an array of values, then on a single statement pass the array to the spreadsheet. Related Prevent “invoked too many times per second” error in Google Apps Script
H: Dynamic Master sheet that grabs red formatted cells from another sheet The title may be a little too ambiguous but I'll try to give a rundown as best I can; I have a Google sheet with multiple "Sheets" or Tabs (as I'd like to call them) within it. The Main tab is blank and the rest have various cells with different dates on them. The dates that are close turn their respective cells Red. I have existing conditional formatting to do this. What I want to achieve is the main tab basically checks all the other tabs for any red cells and pops them into the main sheet in a vertical column. Here's an example: "Second tab" (A1) Date 1 (green) (A2) Date 2 (red) (A3) Date 3 (red) (A4) Date 4 (Green) "Main tab" (A1) Date 2 (red) (A2) Date 3 (red) As you can see, "Main tab" ignores any green cells from "Second tab" and only grabs the red ones. In my case though, there are many more tabs, not just 1. I have a feeling =IMPORTRANGE may help in this scenario? Maybe. Any help is greatly appreciated! AI: You don't need IMPORTRANGE. Also, you can't have a formula that checks only for color (you would need a script or addon for that). However, you mention that you already have conditional formatting rules in place that already do their job to turn cells red so you can gain an advantage of it and use the same rules in your Main sheet (but not as CF) to get data you need. paste in B2 cell: =QUERY({ Cosmic_Fog!D7:D; Cosmic_Fog!E7:E; Cosmic_Fog!F7:F; Cosmic_Fog!G7:G; Charlie_Noble!D7:D; Charlie_Noble!E7:E; Charlie_Noble!F7:F; Charlie_Noble!G7:G; Charlie_Noble!H7:H; Charlie_Noble!I7:I; Cloudmouth_Vapors!D7:D; Cloudmouth_Vapors!E7:E; Cloudmouth_Vapors!F7:F}, "where Col1 < date '"&TEXT(TODAY(), "yyyy-mm-dd")&"' and Col1 > date '"&TEXT(TODAY()-99999, "yyyy-mm-dd")&"'", 0) paste in C2 cell: =QUERY({ Cosmic_Fog!D7:D; Cosmic_Fog!E7:E; Cosmic_Fog!F7:F; Cosmic_Fog!G7:G; Charlie_Noble!D7:D; Charlie_Noble!E7:E; Charlie_Noble!F7:F; Charlie_Noble!G7:G; Charlie_Noble!H7:H; Charlie_Noble!I7:I; Cloudmouth_Vapors!D7:D; Cloudmouth_Vapors!E7:E; Cloudmouth_Vapors!F7:F}, "where Col1 > date '"&TEXT(TODAY(), "yyyy-mm-dd")&"' and Col1 < date '"&TEXT(TODAY()+30, "yyyy-mm-dd")&"'", 0) paste in D2 cell: =QUERY({ Cosmic_Fog!D7:D; Cosmic_Fog!E7:E; Cosmic_Fog!F7:F; Cosmic_Fog!G7:G; Charlie_Noble!D7:D; Charlie_Noble!E7:E; Charlie_Noble!F7:F; Charlie_Noble!G7:G; Charlie_Noble!H7:H; Charlie_Noble!I7:I; Cloudmouth_Vapors!D7:D; Cloudmouth_Vapors!E7:E; Cloudmouth_Vapors!F7:F}, "where Col1 > date '"&TEXT(TODAY()+29, "yyyy-mm-dd")&"' and Col1 < date '"&TEXT(TODAY()+61, "yyyy-mm-dd")&"'", 0) if you want to get rid of duplicates wrap each query into UNIQUE
H: Tracking clicks on link you do not own Is there any way to look at a random link on the internet and find out how many times it has been clicked if the link is not on my website and does not point to my website? For example, the link www.reddit.com/aRandomUniqueQueryParameter is on the site www.iDontOwnThis.com. How can I determine how many times the Reddit link has been clicked from iDontOwnThis.com? AI: You can't, but the owner of the www.iDontOwnThis.com can check it out in Analytics/Statistics of his site. Also, the owner of www.reddit.com is able to see the same stats. These stats are private due to security issues so you as a 3rd-party public viewer won't be able to get those numbers. However, if you have access to the post you could wrap the link into https://bitly.com/ and peek on clicks.
H: Run Android (Web) App on Windows PC? Gmail has a new beautiful design since January. However, it looks like the rollout takes some time since it didn't arrive yet for the regular web version. So my question/idea was: can I run the (Android) tablet version somehow on a Windows PC? In the end, it is most probably a web app anyway running in the background? This would allow me to be able to use the new design already without having to buy a tablet... PS: It is so unfair (in my opinion) that mobile devices nowadays are preferred over PCs for most applications. Even though the most productive use of certain apps is still with a PC...but that's another story for another day. AI: Yes, it's possible to run the Android version of Gmail on desktop PC. All you need is to download an Android emulator like: Nox - https://www.bignox.com/ Bluestacks - https://www.bluestacks.com/ Droid4x - https://droid4x.en.uptodown.com/windows Genymotion - https://www.genymotion.com/#!/ KoPlayer - http://www.koplayer.com/ and many more...
H: Can I make a shortcut of Google Sheets files in my Android phone? I want to make a shortcut of Google Sheets file in my phone, so I want to click that file directly not through executing the Google Sheets app. However, although I know how to make a shortcut of Chrome web page in a phone, I can't make a shortcut of Google Sheets file. Please, help me. AI: Open your Widgets section. Go to Drive in widgets and choose "Drive Shortcut". Choose the account to use (if necessary) then select the document or whatever you want.
H: Comparing two cells and adding text to matching values I have two columns, one with all items in a set and another with the items I currently have. I would like to compare those and for the matching results to have a bit of text added if they match. So in that example, Column A is the set number, Column B is the set values, Column C is what I have currently, and Column D is the expected result. So I want to compare B to C and if there are names matching, then I want B to have the word 'CHECK' appended to the matching name. I thought about doing this to get the word 'CHECK' added =ARRAYFORMULA(B2:B & " -CHECK") But do I also need a LOOKUP and LEN function here? Would apps script maybe be easier? AI: paste in D2 cell and drag down: =ARRAYFORMULA(TEXTJOIN(", ", 1, REGEXREPLACE(TRIM(IFERROR(SPLIT(B2, ","))), TEXTJOIN("|", 1, IF(REGEXMATCH(TRIM(IFERROR(SPLIT(B2, ","))), TEXTJOIN("|", 1, TRIM(IFERROR(SPLIT(C2, ","))))), TRIM(IFERROR(SPLIT(B2, ","))), )), TRIM(IFERROR(SPLIT(B2, ",")))&" - CHECK"))) =ARRAYFORMULA(SUBSTITUTE(SUBSTITUTE(TRIM(TRANSPOSE(QUERY(TRANSPOSE(SUBSTITUTE(IF(ISNUMBER( QUERY(QUERY(IFERROR(SPLIT(IF(IF(REGEXMATCH(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY( TRANSPOSE(IFERROR(IF(SPLIT(B2:B, ",")<>"", "♠"&A2:A&"♦"&TRIM(IFERROR(SPLIT(B2:B, ","))), ))) ,,999^99)),,999^99), "♠"))),SUBSTITUTE(TRIM(QUERY(TRANSPOSE(QUERY(TRANSPOSE(IFERROR(IF( SPLIT(C2:C, ",")<>"", A2:A&"♦"&TRIM(IFERROR(SPLIT(C2:C, ","))), ))),,999^99)),,999^99)) , " ", "|")), TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE(IFERROR(IF( SPLIT(B2:B, ",")<>"", "♠"&A2:A&"♦"&TRIM(IFERROR(SPLIT(B2:B, ","))), ))),,999^99)),,999^99), "♠")))&" - CHECK", )<>"", IF(REGEXMATCH(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE( IFERROR(IF(SPLIT(B2:B, ",")<>"", "♠"&A2:A&"♦"&TRIM(IFERROR(SPLIT(B2:B, ","))), ))) ,,999^99)),,999^99), "♠"))),SUBSTITUTE(TRIM(QUERY(TRANSPOSE(QUERY(TRANSPOSE(IFERROR(IF( SPLIT(C2:C, ",")<>"", A2:A&"♦"&TRIM(IFERROR(SPLIT(C2:C, ","))), ))),,999^99)),,999^99)), " ", "|")), TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE(IFERROR(IF( SPLIT(B2:B, ",")<>"", "♠"&A2:A&"♦"&TRIM(IFERROR(SPLIT(B2:B, ","))), ))),,999^99)),,999^99), "♠")))&" - CHECK", ), TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE(IFERROR(IF( SPLIT(B2:B, ",")<>"", "♠"&A2:A&"♦"&TRIM(IFERROR(SPLIT(B2:B, ","))), ))),,999^99)),,999^99), "♠")))), "♦")), "select count(Col1) where Col1 is not null group by Col1 pivot Col2", 0), "offset 1", 0)), INDEX(QUERY(IFERROR(SPLIT(IF(IF(REGEXMATCH(TRIM(TRANSPOSE(SPLIT(QUERY( TRANSPOSE(QUERY(TRANSPOSE(IFERROR(IF(SPLIT(B2:B, ",")<>"", "♠"&A2:A&"♦"&TRIM(IFERROR( SPLIT(B2:B, ","))), ))),,999^99)),,999^99), "♠"))),SUBSTITUTE(TRIM(QUERY(TRANSPOSE(QUERY( TRANSPOSE(IFERROR(IF(SPLIT(C2:C, ",")<>"", A2:A&"♦"&TRIM(IFERROR(SPLIT(C2:C, ","))), ))) ,,999^99)),,999^99)), " ", "|")), TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE( IFERROR(IF(SPLIT(B2:B, ",")<>"", "♠"&A2:A&"♦"&TRIM(IFERROR(SPLIT(B2:B, ","))), ))) ,,999^99)),,999^99), "♠")))&" - CHECK", )<>"", IF(REGEXMATCH(TRIM(TRANSPOSE(SPLIT(QUERY( TRANSPOSE(QUERY(TRANSPOSE(IFERROR(IF(SPLIT(B2:B, ",")<>"", "♠"&A2:A&"♦"&TRIM(IFERROR( SPLIT(B2:B, ","))), ))),,999^99)),,999^99), "♠"))),SUBSTITUTE(TRIM(QUERY(TRANSPOSE(QUERY( TRANSPOSE(IFERROR(IF(SPLIT(C2:C, ",")<>"", A2:A&"♦"&TRIM(IFERROR(SPLIT(C2:C, ","))), ))) ,,999^99)),,999^99)), " ", "|")), TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE( IFERROR(IF(SPLIT(B2:B, ",")<>"", "♠"&A2:A&"♦"&TRIM(IFERROR(SPLIT(B2:B, ","))), ))) ,,999^99)),,999^99), "♠")))&" - CHECK", ), TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY( TRANSPOSE(IFERROR(IF(SPLIT(B2:B, ",")<>"", "♠"&A2:A&"♦"&TRIM(IFERROR(SPLIT(B2:B, ","))), ))) ,,999^99)),,999^99), "♠")))), "♦")), "select count(Col1) where Col1 is not null group by Col1 pivot Col2", 0), 1, ), ), " ", "♀")),,999^99))), " ", ", "), "♀", " "))
H: How to add an outline border to a table in Google Docs? I am trying to add only a border outline to a table in Google Docs however when trying to make all lines except the border lines another colour, this happens: As you can see, white spots where the row and column lines end, also, I had to manually CTRL+click all of them which can be a pain with a big table. Is there any way to add a border to a table without having to all of this manually? AI: select the table click the arrow/triangle and select a selection you need to highlight set the border parameters to avoid dots on border select insides of the table and set border width to 0pt
H: ArrayFormula stops working after shuffling rows I have a pretty extensive sheet wherein many columns I use an array formula to automatically fill data in from various other spreadsheets. The problem I have is when I need to rearrange rows then what is in that row output from array formula stays there as plain text after moving and that prevents the array formula from working because it cannot overwrite data in those cells that now contain text. Is there a workaround? I don't want to constantly need to delete the cells manually many times a day. AI: The workaround would be to temporarily disable ARRAYFORMULA by removing = sign or inserting ' in front of = sign - then do your row swapping and then again fix your array formula. The second workaround would be to delete the static value after you moved your row so the array formula could roll out instead of posting #REF! error. The 3rd option includes a script that will delete the given range(s). function moveValuesOnly() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var source = ss.getRange('Sheet1!B10'); source.copyTo(ss.getRange('Sheet1!AO3:AO'), {contentsOnly: true}); } or: function clearArrays() { var sheet = SpreadsheetApp.getActive().getSheetByName('Sheet1'); var rangesToClear = ['AO3:AO', 'AR4:AR8']; for (var i=0; i < rangesToClear.length; i++) { sheet.getRange(rangesToClear[i]).clearContent(); } }
H: Importrange (or maybe another part of formula) behaves differently after a short time period I am using this formula to look for data in column F related to data in column A between two spreadsheets. =ARRAYFORMULA(IFERROR(VLOOKUP(A2:A; {IMPORTRANGE("spreadsheetID";"sheet1!A4:A")\ IMPORTRANGE("spreadsheetID";"sheet1!F4:F")}; 2; 0);)) for some reason after some while (minutes to days) the formula stops working and I need to change the sheet name from SHEET1 to 'SHEET1' and it starts working again. BUT after some time I need to change that back to only SHEET1 because it stopped working again and needs a change to be done. Reason for this instead of =ARRAYFORMULA(IFERROR(VLOOKUP(A2:A;IMPORTRANGE("spreadsheetID";"sheet1!A4:F"); 6; 0);)) is because this seems to take a lot less time to import since it's only minding two columns instead of A and F PLUS all between those two. And also because sometimes I am using the same formula for columns like DF and that's a huge amount of data. AI: While the above formulas may work for you, in case of huge imported arrays is better to import them separately in a sheet as: A1: =IMPORTRANGE("spreadsheetID";"sheet1!A4:A") B1: =IMPORTRANGE("spreadsheetID";"sheet1!F4:F") and then use it in VLOOKUP: =ARRAYFORMULA(IFERROR(VLOOKUP(A2:A; 'hiddenimportsheet'!A:B; 2; 0))) This will slightly improve the performance and luckily solve your issue.
H: Filter and display duplicates in a table Here's the link to my Google sheet: https://docs.google.com/spreadsheets/d/1SBD0_Ca0r_p3810u1ZNlbG6MXsvhFlLcwEJndVQJRP0/edit?usp=sharing The master data will show: And I would like to have a table that displays the duplicates alongside the title and vendor based on the ISBN: AI: =ARRAYFORMULA({UNIQUE(ARRAY_CONSTRAIN(FILTER({B2:B, PROPER(C2:C), A2:A}, COUNTIF(B2:B, B2:B)>1), ROWS(A2:A), 2)), IFERROR(VLOOKUP(UNIQUE(ARRAY_CONSTRAIN( FILTER({B2:B, PROPER(C2:C), A2:A}, COUNTIF(B2:B, B2:B)>1), ROWS(A2:A), 1)), {QUERY( QUERY(ARRAY_CONSTRAIN(UNIQUE(FILTER(A2:C, COUNTIF(B2:B, B2:B)>1)), ROWS(A2:A), 2), "select Col2,count(Col2) where Col1 is not null group by Col2 pivot Col1", 0), "select Col1 offset 1", 0), SUBSTITUTE(SUBSTITUTE(TRIM(TRANSPOSE(QUERY(TRANSPOSE( SUBSTITUTE(IF(ISNUMBER(QUERY(QUERY(ARRAY_CONSTRAIN(UNIQUE(FILTER(A2:C, COUNTIF(B2:B, B2:B)>1)), ROWS(A2:A), 2), "select count(Col2) where Col1 is not null group by Col2 pivot Col1", 0), "offset 1", 0)), INDEX(QUERY(ARRAY_CONSTRAIN(UNIQUE(FILTER(A2:C, COUNTIF(B2:B, B2:B)>1)), ROWS(A2:A), 2), "select count(Col2) where Col1 is not null group by Col2 pivot Col1", 0), 1, ), ), " ", "♦")),,999^99))), " ", ", "), "♦", " ")}, 2, 0))})
H: How can I turn a list of comma separated values into an array? If I have a formula: ={1,2,3,4,5} I get a 5 column set of numbers with 1 in the first, 2 in the next and so on. However, if I have a cell that contains the string 1,2,3,4,5 in cell E2 and I try ={E2} I get the same result as if I did =E2 - a single cell with comma separated values. Is there a function in Google Sheets that says, "treat the argument as if it were typed at this point? AI: instead ={E2} use SPLIT formula like: =SPLIT(E2; ",") also, you can do it directly by pressing LEFT ALT + D + E
H: Multiplying a cell value on edit I am trying to make a functionality that allows me to enter a value into a cell and have that value automatically be multiplied by another cell, overwriting the original entry. For example, if Cell A2 has 5 inside it and I am entering 10 into cell C2, I would like it to automatically multiply A2 by the value I have just entered in C2 and overwrite the ‘10’ I have just written in Cell C2 by 50 which would be the answer to this calculation. I'm still very new to script editor so below is the best I've been able to do. function onEdit(e) { var Column1 = 1 var Column3 = 3; if (e.range.getColumn() == Column3) { e.range.setValue(Column1 * Column3) } } I've also tried the script below without any luck. function onEdit(e) { var sheet = SpreadsheetApp.getActiveSheet(); var dataRange = sheet.getRange("A:C"); var data = dataRange.getValues(); for (var i = 0; i < data.length; ++i) { var rowData = data[i]; var Column1 = rowData[0]; var Column3 = rowData[2]; if (e.range.getColumn() == Column3) { e.range.setValue(Column1 * Column3) } } } I appreciate your feedback. AI: When the value is put to the column "C", You want to put the value multiplying the value of the column "A" to the value of the column "C" to the column "C". You want to achieve this using OnEdit event trigger. If my understanding is correct, how about this modification? I modified your above script. Modified script: function onEdit(e) { var Column1 = 1 var Column3 = 3; if (e.range.getColumn() == Column3) { e.range.setValue(e.value * e.range.offset(0, Column1 - Column3).getValue()); } } e.value is the put value to the column "C". e.range.offset(0, Column1 - Column3) is the column "A" of the same row of the column "C" that the value is put. e.range.offset(0, Column1 - Column3).getValue() is the value of column "A". Note: This is a simple modification. So please modify it for your situation. References: offset(rowOffset, columnOffset) Event Objects If I misunderstood your question and this was not the result you want, I apologize. Edit: When you delete a value from the column "C", you don't want to run the script. From your reply comment, I could understand like above. If my understanding is correct, how about this modification? Modified script: function onEdit(e) { var Column1 = 1 var Column3 = 3; if (e.range.getColumn() == Column3 && e.value) { e.range.setValue(e.value * e.range.offset(0, Column1 - Column3).getValue()); } }
H: How can I re-enable MFA challenges when I login? I enabled MFA on my Google account because I wanted to protect it. Every time I logged-in, Google tried to get me to "Don't ask again on this device", and I un-checked the checkbox every single time (grumble). Except once. Now I do not get any more MFA challenges when logging-in from this computer. How can I reset that setting so it asks me for my MFA credentials again each time I log in? I tried on another browser and I got the challenge. Is this a browser-cookie that I can delete to re-enable it? AI: Go to myaccount.google.com/security (or security.google.com). Click the 2-Step Verification option. You'll probably be prompted for your password to verify it's you. Scroll to the bottom to Devices you trust. Choose "Revoke all". (Unfortunately, you can't change them piecemeal.) Now you'll be prompted for the "second step" wherever you're trying to sign in.