text
stringlengths
83
79.5k
H: How to reference a cell while keeping its color formatting? Is it possible to reference a cell which contains "ABC" where B is blue and C is yellow while keeping the color formatting? Assume A1 contains the colored text, then I want B1 to refer to A1 and maintain the colors. A similar question was asked 3 years ago, but the answer seems to be not working anymore. AI: Transferring multiple individual colors from in-one-cell to another cell is not possible at this current version of the Google Sheets (nor at any previous versions):
H: Download 1 sheet from Google Sheets I've got a spreadsheet (workbook) in Google Drive Sheets that has multiple sheets (tabs/worksheets). I want to export just one worksheet from the workbook as an XLS file. Is this possible? I know I can download the entire file as an XLS and then delete the worksheets I don't need, but this is quite long-winded. I also know I could download just my current worksheet as a CSV, but in doing this I would lose all formatting. AI: One solution I found was to right click the sheet in the bottom bar copy to > new spreadsheet. This will create a new spreadsheet containing just this tab. Just make sure to delete this new spreadsheet when you are done as this can get confusing as you are essentially duplicating your data.
H: How to see unread emails only in Gmail's Inbox? Up until two days ago, my "Inbox" in Gmail has only shown unread emails at the top, with the read ones being shown somewhere near the bottom. For some reason, this has changed. While my "Inbox" tab still shows "32" next to it, on the right hand side I can now see all emails, including unread ones. But I'd like for my inbox to only show those 32 unread ones: Googling for this has led me to the following URL: http://osxdaily.com/2013/06/30/show-unread-messages-gmail/. They suggest the following filter: label: inbox, label: unread This shows exactly what I want, but I'd like for this to be the default view, and not have to apply a filter each time. Any idea how I can switch back to the old view' AI: left-click the number at your Inbox folder and choose your preference:
H: Finding multiple “most common values” in a column I am trying to display the 5 most commonly appearing text values in a column in Google Sheets. The following will give me the most common value in column A: =ArrayFormula(INDEX(A:A,MODE(MATCH(A:A,A:A,0)))) And this will give me the second most common value in column A, assuming that the formula above is in cell G2 (whose result is being excluded): =ArrayFormula(INDEX(A:A,MODE(IF(A:A<>G2,MATCH(A:A,A:A,0))))) How can I get the third, fourth, fifth, etc most common values? Something like this does not work: =ArrayFormula(INDEX(A:A,MODE(IF(A:A<>G2:G3,MATCH(A:A,A:A,0))))) Basically, I need to exclude multiple values from that calculation. Any ideas? AI: =QUERY(QUERY(B:B, "select B,count(B) where B is not null group by B order by count(B) desc label count(B)''", 0), "select Col1 limit 5", 0)
H: How to convert multi-value answers into single column in Google Forms' response sheet? I have a Google form that asks for Name and up to 3 Score. The data is dumped into a sheet like this But that data is not very convenient. I want to have the data like this... Can I do that by adding a new sheet to the workbook, and some kind of LOOKUP formula? Or can I change the settings on the FORM to write up to 3 rows per submit? AI: ={"Timestamp", "Name", "Score"; ARRAYFORMULA(QUERY(SPLIT(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE( IF('Form Responses 1'!C2:E<>"", TRANSPOSE(QUERY(TRANSPOSE({ TO_TEXT('Form Responses 1'!A2:B)&"♦"}), , 999^99))&'Form Responses 1'!C2:E&"♠", )) , , 999^99)), , 999^99), "♠"))), "♦"), "where Col3 is not null", 0))} demo spreadsheet
H: Is there a way to search the web by using regex? I want to study and find English sentence examples. For example, I read some I'd be working... I want to know the usage of I'd be doing... So I want to search I'd be *ing I'd like to see the sentences of "I'd be eating... I'd be running..." If there is a way to search with a regex in novel or news websites, that would be pretty effective. Is there a search engine that does this? google doesn't support regex search AI: https://www.english-corpora.org/coca/ search: I 'd be *ing Please notice, there should be a space between I and 'd.
H: Compile cells when cell contains certain value In Google Sheets, I have a range of values as follows: I am looking for a formula that will search the range, find all of the cells that is a 'wire' (contains the term "wire") and outputs the range to a compiled list of all of the wires in the A column list like this: I could tell you what I've tried, but I haven't even gotten close, so I feel it's irrelevant. Here is a copy of the example spreadsheet for copy-paste if needed: https://docs.google.com/spreadsheets/d/1QDvAo5epuwBEzeOPrBckb1GO6wKOA6q6K83C1-SeQGA/edit?usp=sharing AI: =QUERY(A:A; "where A contains 'Wire'")
H: Grabbing only non-empty cells from a row range for every row I have a survey that sends responses into a Google sheet. The raw data that is inserted is messy, so I have another sheet that processes the incoming raw data. One of the things I need to do is: from a range of columns in one row, pull the non-empty cells--and do this automatically with every new response that comes in. This is what I've come up with that works with a single row, but I can't figure out how to have it automatically apply to the entire column: =transpose(QUERY(unique(transpose({'Raw Data'!AL3:AY3,'Raw Data'!AL3:AY3})), "SELECT Col1 WHERE Col1 <> '' ORDER BY Col1 ASC LIMIT 8",0)) Because the survey will insert rows, it ends up adjusting any cell references in my 'Processed Data' sheet, so I've been trying to use ARRAYFORMULA unsuccessfully. Also, the range of columns will be more than 400 (options of schools), so manually writing out individual column names would probably be unfeasible. Here's a link to the spreadsheet The column of issue starts on column O Background: In the survey, a respondent can select multiple schools to a maximum of 8 out of a selection of 400+ schools. In the 'Raw Data' sheet, each school option is represented by a column. Hopefully all of that made sense. Any help would be greatly greatly appreciated - I've been stuck on this for a while! AI: the part you are interested in is: =ARRAYFORMULA(REGEXREPLACE(SPLIT(TRANSPOSE(QUERY(TRANSPOSE(IF('Raw Data'!AL3:AY8<>"", SUBSTITUTE('Raw Data'!AL3:AY8, " ", "♠"), )), , 999^99)), " "), "♠", " ")) but you could have it all in one-cell solution: ={{"Timestamp (mm/dd/yyyy)", "Duplicate", "First Name", "Last Name", "Phone", "Email Address", "Zip Code", "Parent/Guardian", "Teacher", "Administrator", "Elected Official", "Community Member", "Business Organization", "Non-Profit Organization", "Affiliated_School_1", "Affiliated_School_2", "Affiliated_School_3", "Affiliated_School_4", "Affiliated_School_5", "Affiliated_School_6", "Affiliated_School_7", "Affiliated_School_8", "BeCampusRep"}; {QUERY(ARRAYFORMULA(IF(LEN('Raw Data'!A3:A), {'Raw Data'!C3:G, 'Raw Data'!AC3:AK, REGEXREPLACE(SPLIT(TRANSPOSE(QUERY(TRANSPOSE(IF('Raw Data'!AL3:AY<>"", SUBSTITUTE('Raw Data'!AL3:AY, " ", "♠"), )), , 999^99)), " "), "♠", " "), IF( MIN(8-MMULT(LEN(IF('Raw Data'!AL3:AY<>"", "♦", )), TRANSPOSE(COLUMN('Raw Data'!AL3:AY))^0))>0, IFERROR(SPLIT(IF(LEN('Raw Data'!A3:A), REPT(" ♣", MIN(8-MMULT(LEN(IF('Raw Data'!AL3:AY<>"", "♦", )), TRANSPOSE(COLUMN('Raw Data'!AL3:AY))^0))), ), "♣")), ARRAY_CONSTRAIN(IFERROR(SPLIT(IF(LEN('Raw Data'!A3:A), REPT(" ♣", MIN(8-MMULT(LEN(IF('Raw Data'!AL3:AY<>"", "♦", )), TRANSPOSE(COLUMN('Raw Data'!AL3:AY))^0))), ), "♣")), COUNTBLANK('Raw Data'!A1:A)+COUNTA('Raw Data'!A1:A)-1, )), 'Raw Data'!AZ3:AZ}, )), "where Col1 !=''")}} demo spreadsheet
H: How to use a cell value to define the sheet on IMPORTRANGE Trying to create a spreadsheet that reads values from a certain sheet of another file using importrange formula. I am trying that the referenced external cell be a cell on the current one so I could try to do something like: =IMPORTRANGE("XXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXXXX";**E2**&"!G3")) E2 local cell is the name of the remote sheet I want to import from. This reply looked very promising using the INDIRECT formula but so far I haven't managed to archive it within an importrange not sure if due to a syntax error or a limitation of the importrange: =IMPORTRANGE("XXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXXXX";INDIRECT(E2&"!G3")) AI: IMPORTRANGE is like a smaller sister of INDIRECT so you are not supposed to have INDIRECT in IMPORTRANGE, so all you need to do is to allow access and: =IMPORTRANGE("16nnuzNRx_kGGJm1EBVX7kBT2bfW1-2TYwSiuaLF-QI"; E2&"!G3")
H: How to import historical open price in Google Sheets with GOOGLEFINANCE? For some reason, I can't get the google finance function to work with any open-price lookups I do. For example: =GOOGLEFINANCE("AAPL","priceopen", DATE(2019,4,12)) comes back as #N/A with message: {Error|Function GOOGLEFINANCE parameter 2 value is invalid for the symbol specified.} I change the dates and tickers, but it never works. What am I doing wrong? AI: This actually kind of makes sense. If the 2nd parameter of GOOGLEFINANCE is "priceopen" it tries to fetch the open price but by adding a historical date to it DATE(2019,4,12) the 2nd parameter is confused because on that date there is no open price. On that date is only closed price at this moment. In other words: "the historical open price" is called "open". =GOOGLEFINANCE("AAPL", "priceopen") =GOOGLEFINANCE("AAPL", "open", DATE(2019,4,12)) =INDEX(GOOGLEFINANCE("AAPL", "open", DATE(2019,4,12)), 2, 2)
H: What format of font size does Google Docs use? Probably a silly question but couldn't find an answer anywhere. Does it use point? So font size 12 = 12pt? AI: No, it doesn't. Google Docs, Google Sheets, Google Fonts, etc. use px as font size representation. pt is (should be) used only in printing/press due to significant difference in cross-platform visualization: Here are some good explanations of the difference between pt and px: https://graphicdesign.stackexchange.com/questions/199/point-vs-pixel-what-is-the-difference
H: How do I filter really tiny columns in Google Sheets? Sometimes in my filter views, whenever I have really small columns, the triangle icon to filter them does not show up at all. I'm able to temporarily resolve this by expanding the column, but it's really annoying to have to do this every time I want to filter by that column. Is there another way to filter the column without that temporary solution? EDIT: I'm on a MacBook. AI: If you are not able to see filter triangle like in B1, select it by clicking on B1 and then simply press: Windows: CTRL + LEFT ALT + R Mac: CTRL + ⌘ + R
H: Is it possible to have Named Constants in Google Sheets Excel has a notion of defined names which can be used to define constants/literals. Does GSheets allow this? You can see this in action in the following Excel screenshot: . Cell B2 has the formula =A2*cm_per_inch and via the name manager window, you can see cm_per_inch is a constant value of 2.54 and not a reference to a cell address. When I import this spreadsheet into GSheets I get the following with #NAME? errors. Also, note in the GSheets Named ranges list there are only two entries whereas in Excel there were three. cm_per_inch appears to be missing, presumably because GSheets does not support a defined constant. One workaround would be to do as this Stack Overflow Q&A proposes but that is more of a lookup table and not a constant as per Excel constructs. You can see this in action in a revision of the previous GSheet here: Of note, I wasn't able to use the cm_per_inch as the name of my range and had to use a new range name entirely in order for the formulae to resolve properly. AI: Currently, this is not possible in Google Sheets, because Select data range field can intake only cell/array references. Therefore, best you can have is to create the second sheet where you will store your variables/constants and name them with Named ranges - and then right-click the sheet and select Hide sheet
H: COUNTIFS issue, output is always zero I have no idea what I'm doing, considering there's plenty of topics on COUNTIFS. However, each solution I've tried, as well as my own solutions, which I shall list, end up in the same thing... ZERO. It counts several cells and ends up as a zero, and I have no idea why, please help. Here is the document. https://docs.google.com/spreadsheets/d/1Q899bG5tGPz0cIWUQ3K4_vxwRnZbsFCg6o-YS8Rhj74/edit?usp=sharing So far I've used: =COUNTIFS(G:G,"A",G:G,"M",G:G,"TM") =SUM(COUNTIFS(A:A,"Active",G:G,{"A","M","TM"})) AI: pick one you like: ="Staff Roster - "&COUNTIF(G:G, "A")+COUNTIF(G:G, "M")+COUNTIF(G:G, "TM") ="Staff Roster - "&ARRAYFORMULA(COUNTA(IFERROR(REGEXEXTRACT(G:G, "A|M|TM")))) ="Staff Roster - "&COUNTA(IFERROR(QUERY(G:G, "where G='A' or G='M' or G='TM'"))) ="Staff Roster - "&ARRAYFORMULA(SUMPRODUCT(REGEXEXTRACT({B3, B6, B12}, "\d+"))) ="Staff Roster - "&COUNTA(G3:G) ="Staff Roster - "&COUNTA(IFERROR(FILTER(G:G, G:G<>"Rank"))) ="Staff Roster - "&ARRAYFORMULA(SUM(IF((G:G="A")+(G:G="M")+(G:G="TM"), 1, ))) ="Active Staff Roster - "&COUNTA(IFERROR(FILTER(B:B, B:B="Active"))) ="Active Staff Roster - "&COUNTIF(B:B, "Active")
H: How can I pretty-print a formula in Google Sheets? Without proper line breaks and indentation, even moderately complex formulas are visually not well navigable in Google Sheets. How can I pretty-print them? I know I can create a line break with Ctrl + Return and indent with Space but these changes are lost when leaving the cell. AI: Indeed, you can pretty-print your Google Sheets formulas with Ctrl + Return and Space. But there is a software bug in the current (2019-04) Google Sheets implementation that causes your whitespace changes to not be saved. A workaround is provided below. Bug description The bug is triggered like this: Google Sheets keeps an internal history about what formulas have been stored in a cell so far. When you change a formula, it is compared against this history, and whitespace differences are ignored. When it is found in the cell history, the old version of the formula (including its own whitespace formatting!) is used. When it is not found in the cell history, the formula you just entered is used. In effect, whitespace-only changes are discarded when editing a formula. Workaround For your whitespace changes to always be saved, your formula has to be always unique in its history (with whitespace differences ignored). You can achieve this by appending a do-nothing-operation to the formula and changing that with every change of your formula. Below are examples. You would choose a new line from the following list on each edit and use it at the end of your formula: For number formulas, use the next line from this list for every new edit you make. It just adds zero, but always in a new way. + 0 * 1 + 0 * 2 + 0 * 3 ... For text formulas, use the next like from this list for every new edit you make. It appends the empty string always one more time than the last time. & REPT("",1) & REPT("",2) & REPT("",3) ...
H: Formula works in cells but not in conditional formatting So, I have a Gantt chart style diary. I want to apply conditional formatting to any column whose date (in row 2), is a public holiday. There is a sheet called 'Public Holidays', that has the dates of all public holidays in column A. I found a relevant formula to try from Peter Smulders answer to this topic: How to check if value is in range of cells? Here's my version: =NOT(ISERROR(MATCH(B$2:RV$2, 'Public Holidays'!$A:$A,0))) Nothing happens. It doesn't activate on any cells or columns whether public holidays or not. Weirdly though, if I paste that formula into a bunch of cells, it returns correctly, ie any cell in a column whose date in row 2 is a public holiday returns TRUE and any cell in a column whose date is not a public holiday returns FALSE. I don't understand why it works as a cell formula but not as a conditional formatting formula. Any help would be greatly appreciated. Here's a copy of my sheet: https://docs.google.com/spreadsheets/d/1sYI2oDyDR5p5oIJvE_AKIUm_PMReL4nGfXlMU5YvRxI/edit?usp=sharing AI: =NOT(ISERROR(MATCH($B$2:$NC$2, INDIRECT("'Public Holidays'!$A:$A"), 0)))
H: Multi-var definition statement limit in Apps Script? My personal javascript variable definition style is a single var statement followed by one or more definitions. It's an unimportant choice, but one that some find benefits in. Carrying this over to Apps Script, I find it often ends up giving up early—cutting off its interpretation of those comma-separated definitions and so skipping some variables' creation and assignment. For an example, the following is valid js syntax according to several checkers, but editBottom will not be defined (nor, indeed, get syntax highlighting to variables' blue): function rangeToBounds() { var activeRange = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getRange("R1C2:R3C4"); var editTop = activeRange.getRow(), editLeft = activeRange.getColumn(), editRight = activeRange.getColumn()+activeRange.getNumColumns()-1, editBottom = activeRange.getRow()+activeRange.getNumRows()-1; } Whereas swapping in this equivalent set works as expected: var editTop = activeRange.getRow(); var editLeft = activeRange.getColumn(); var editRight = activeRange.getColumn()+activeRange.getNumColumns()-1; var editBottom = activeRange.getRow()+activeRange.getNumRows()-1; Even this works: var editTop = activeRange.getRow(), editLeft = activeRange.getColumn(), editRight = activeRange.getColumn()+activeRange.getNumColumns()-1; var editBottom = activeRange.getRow()+activeRange.getNumRows()-1; So I believe I'm hitting some length or nested-eval limit, not an Apps Script syntax rule. What's actually going on? AI: I just tested the code. editBottom is defined, the only "problem" is that the font color for editBottom is the default color (black) instead of blue. Here is my "mcve" version of the the OP code: function rangeToBounds() { var activeRange = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getRange("R1C2:R3C4"); var editTop = activeRange.getRow(), editLeft = activeRange.getColumn(), editRight = activeRange.getColumn()+activeRange.getNumColumns()-1, editBottom = activeRange.getRow()+activeRange.getNumRows()-1; Logger.log(editBottom); } It's known from years (references pending) that Google Apps Script editor have this and other "soft problems". It worth to note that now it's easier to develop Apps Script projects locally with other less buggy IDEs by using CLASP . Related Why does google script editor stop paren matching after 100 lines in a function and does it affect the code?
H: Facebook Error: Failed to create your 3D Photo: Try again or learn more about how to create 3D Photos I created a stereoscopic 3D photo from scratch using mirrors & depth map generation on an old camera. I've tried various ways to upload it to Facebook. However, I always get errors. How can I upload a grayscale depth map + RGB JPG to Facebook and get it to be in 3D? This pair fails inexplicably: NONE of these work: Blurred from GIMP: More RAW from Stereo Photo Maker: Pixelized & Posterized from GIMP: GIMP → Enhance → Symmetric Nearest Neighbor doesn't seem to help either, oddly: And even hand sanitizing that still fails: Even with a heavy median blur to join like-regions together, no luck: I noticed there was a canvas size issue in GIMP, so I resized the photo but it still didn't work: However, this works fine (use the grayscale as the RGB layer for testing): AI: It definitely is the aspect ratio. I made all variants with same result (error) on a vertical image and then changed the size to a "square-ish" shape (750x918px) and it worked.
H: Subtract different percentage based on quantity range I want to be able to provide a different percentage discount based on the quantity purchased. The percentage should be based on a range, so for example: QTY > 0 && <= 5, discount = 5% QTY > 5 && <= 10, discount = 10% QTY > 10 && <= 15, discount = 15% What would be the best way to achieve this in Google Sheets? AI: =ARRAYFORMULA(IF(LEN(A30:A), B30:B-(B30:B*(IF(A30:A>=15, 15%, IF(A30:A>=10, 10%, IF(A30:A>=5, 5%, ))))), )) more alternatives here: https://webapps.stackexchange.com/q/123729/1864712
H: How to change row colour depending on due date in a cell I need a whole row to be red if the date in column C is older than today() I have tried this basic formula =C2:C<TODAY() but that makes every row that is still empty also red. So how to add basically "if a cell in column C is empty, do nothing"? I can go around it by adding another condition that says when it's empty, make it white and put it above the red condition but I want to avoid unnecessary complications. AI: =AND($C1<>""; $C1 < TODAY())
H: How to restore Gmail inbox view? My Gmail inbox label is not appearing normal as shown in the attached photo How can I restore labels to normal/default? AI: You will need to click on those 3 lines to trigger different view mode:
H: Google Sheets' Duration Input issue We have been using Apple Numbers which seems to have this duration thing figured out a little better than Google, (either that or I'm missing something). In Apple Numbers, if I type into a cell with a "duration" format: 90m, it will automatically convert it to: 1h 30m, In Google Sheets when I type in 90m, it appears to convert the input to "text" and bumps it to the left of the cell. If I type in: 1h 30m same thing happens. If I type in: 00:90:00, it converts it to: 1h 30m, 1:30, also yields the same result. If you type in 1h 30m, the exact display that it is supposed to show it will not recognize it as a duration - but as text. Here is a quick example of what I am talking about: Typed was formatted as ="@" so that it would preserve exactly how I typed it in the right column: So we input hundreds of lines of this a day. inputting it all in the xx:xx format is a huge pain in the butt. Is there any way to have Google Sheets recognize 90m, as 90 minutes, and put it in the format it is programmed to? AI: At this time Google Sheets doesn't include a way to customize the automatic data type assignation but it's possible to use Google Apps Script to automatically convert input from one type to another but it has some limitations but let start with the simplest solution, then on another Q&A we could talk about how to circumvent the known limitations and the problems that arise for cases of general interest. It's possible that an add-on already exists. If you need a recommendation post a question on Software Recommendations General steps Create an Apps Script project Add a simple on edit function Add the JavaScript to convert input in the form of #unit to Google durations Complete the simple on edit function to return the result to the spreadsheet Create an Apps Script project Click on Tools > Script editor Click on Untitled project or save the project to assign a name to the project NOTE: If this is your first project and you don't have plans yet to create many, the name could be anything, but a short descriptive name always is better Add an on edit simple trigger. Replace the default code by function onEdit(e){ } Add the JavaScript code Complete the simple on edit function to return the result to the spreadsheet For convenience, I added the code of the last two steps in a single code block. function onEdit(e) { var duration = stringToDuration(e.value); if(e.value !== duration) { e.range.setValue(duration); e.range.setNumberFormat('[h]:mm'); // Here you can set the number format to use } } /** * Converts a string to a Google Sheet duration value * * @param {String} input The string to be converted * @returns An Integer if the input format is supported otherwise returns the input */ function stringToDuration(input){ if(!typeof input === 'string') return input; var date = new Date(0); var match = input.match(/^(\d.*)(.)/); var value = parseFloat(match[1]); var isDuration = true; switch(input[2]){ case 'm': date.setMinutes(value); break; case 'h': date.setHours(value); break; default: output = input; isDuration = false; } var output; if(isDuration) { var oneDayInMS = 24*60*60*1000; output = date.getTime() / oneDayInMS; } else { output = input; } return output } REMARKS The above code just consider two cases, #m (like 90m) and #h (like 1.5h). For a complete solution adapt the code of a JavaScript library like moment.js. The Google Apps Script triggers works on "best effort" base, this means that triggers like on edit, on form submit, etc. sometimes aren't triggered. I.E. if your type fast many values, some of the edit will trigger the onEdit function but others not, so you could have a time-driven trigger to scan the values that were not converted and then convert them. onEdit functions on bounded project scripts are available only for the bounded spreadsheet. To make it available to all your spreadsheets create an add-on, install it on your account and enable it on the spreadsheet that you want to use it.
H: Prevent shifting of rows in auto-updating sheet I am struggling with an automatically updating spreadsheet that is connected to a Google Form. Whenever there is a new accomplished answer in the Form it is adding a row in the spreadsheet, resulting in a shifting of my whole spreadsheet. Take a look at the picture to understand the problem: As you can see, the row is created and shifts everything apart. Is there a way, to prevent that, like protecting the area from K-P ("Preis pp." the gray-colored one until the end)? AI: You need to crate Sheet2 and move columns M:Q there and then call it back from Sheet2 with ARRAYFORMULA. Delete everything in column K and paste this in K1 cell: ={"Preis pp."; ARRAYFORMULA(IF($E2:E = "Ja"; $Q$3; )+ IF($G2:G = "Ja"; $Q$6; )+ IF($I2:I = "Ja"; $Q$9; ))} Delete everything in columns M, N, O, Q and paste this in M1 cell: =ARRAYFORMULA(Tabellenblatt2!B1:F) demo spreadsheet side note: also you will need to color your cells with Conditional formatting instead of doing it manually
H: Equivalent of IMPORTRANGE with script in Google Sheets Since the Importrange() is not working as expected, do you know how I could express e.g the following function with a script? ={IMPORTRANGE("SheetKey","SheetName1!A:J") ; IMPORTRANGE("SheetKey","SheetName2!A2:J") ; IMPORTRANGE("SheetKey","SheetName3!A2:J")} AI: =QUERY({'AW Data'!A1:J; 'Facebook Data'!A1:J; 'Bing Data'!A1:J}, "where Col1 is not null")
H: Finding the average from the last 14 days in Google Sheets I would like to figure out a formula that will look at the last 14 days of data in column D and calculate the average. But I would like it to dynamically update every day so it's always showing the last 14 days average based on the current date. Does that make sense? Is this possible? https://docs.google.com/spreadsheets/d/1C8paoYXirR5qus8axs-SciRqxeaBWMxsSmC0PGX969E/edit?usp=sharing AI: =AVERAGE(QUERY({A2:D}, "select Col4 where Col4 is not null order by toDate(Col1) desc limit 14", 0))
H: Count in QUERY to include counts for all unique items (dates) =query(A:B,"Select A, Count(B) where A is not null and B='A' group by A,1") AI: ={"Data", "Count Amount"; ARRAYFORMULA(QUERY({UNIQUE(A3:A), IFERROR(VLOOKUP(UNIQUE(A3:A), QUERY(A:B, "select A,count(B) where A is not null and B='A' group by A label count(B)''", 0), 2, 0), 0)}, "where Col1 is not null"))}
H: ImportXML not stable in Google Sheets, how can I improve that? I have ImportXML in my spreadsheet. I am tracking the Alexa ranking of a list of websites. Here is the formula: =HYPERLINK(CONCAT("www.alexa.com/siteinfo/",A4), value(ImportXML(CONCATENATE("http://data.alexa.com/data?cli=10&dat=snbamz&url=",$A4),"/ALEXA/SD/POPULARITY/@TEXT"))) And the result looks like this: Most of the data are correct but a few are not showing up, no matter how many times I refresh the page. And the rows that are not showing up correctly are just random. What can I do? For instance, can I set up some timed out limit to be longer? AI: You probably hit the IMPORTXML limit by having too much IMPORTXML lookups in one spreadsheet. The easiest course of actions would be to set up a second spreadsheet and divide IMPORTXML lookups. After that just import the whole range of results from the 2nd sheet into your 1st master sheet with one simple IMPORTRANGE formula.
H: Turn off snap-to in Google Drawings How do I turn off "snap-to" in Google Drawings? I have a ton of shapes with snapped lines to other shapes, and every time I need to rearrange shapes or drag a line elsewhere or want a line to end at a specific location, its large radius for snapping causes unwanted behavior. AI: This type of action is generally performed with pressing of SHIFT key or CTRL or both CTRL + SHIFT across most major platforms where snapping needs to be cased in order to finetune the position of an object.
H: Array expansion with offset I'm building a spreadsheet that shows bonuses granted to an employee that vest and pay out spread over the following three years. Easier just to see the example: https://docs.google.com/spreadsheets/d/1ZNLdun9PwSbfE6FSSmCatfqy2OQWp4rPKPujONbIoDg/edit?usp=sharing In the first sheet, I have it working ok, but for every new year I have to manually place the {x/3, x/3, x/3} array formula into the correct year that vesting should start. I want it work like the second sheet, where I just add new data to the green section, and the 3 payouts appear starting in the following year. In column C, I've calculated the offset where payout should begin. I just need a way for the array formula to start expansion at that offset. Note that sometimes there's more than one grant per year, if that matters. AI: paste in C4 cell and drag down: =IF(LEN(B4), {REGEXEXTRACT( REPT(" ", MATCH(DATE(YEAR(A4), 1, 1), C$3:$3, 0)), REPT("(.)", MATCH(DATE(YEAR(A4), 1, 1), C$3:$3, 0))), {B4/3, B4/3, B4/3}}, ) demo spreadsheet
H: YouTube personal account as channel I have a Gmail account. When I am already signed into Gmail account, YouTube shows me that I am signed in. So, Is this account considered as a channel by YouTube definitions? If yes, this channel will be eligible for monetization and YouTube play button rewards, once it reaches the threshold? Or Do I need to create a channel other than this to be eligible? AI: only if you created a channel - you can check this by clicking on your picture and selecting My channel. ...if you will be prompted to create a YouTube channel you obviously don't have one monetization needs to be enabled first - you can see the status here: https://www.youtube.com/account_monetization
H: How to delete about 1,000 Gmail labels, not one at a time I need to start over with Gmail labels, is there a way to blow away all of them at once? I have way too many. AI: create a new sheet: https://docs.google.com/spreadsheets/create install this addon: https://chrome.google.com/webstore/detail/ go to Add-ons select Label Manager for Gmail select Setup Wizard select Create Label Sheets wait go to Add-ons select Label Manager for Gmail select Export Labels (2x) wait click on 3. Export Labels sheet copy labels you want to delete into 4. Delete Labels sheet (into column A) go to Add-ons select Label Manager for Gmail click on Delete Labels wait on status done video tutorial: https://youtu.be/FWLouKFqpVY?t=25
H: Can't remove my saved places in Google Maps I have a bunch of saved places like this one that I can't remove them: After I click on it, doesn't appear as saved (Save button doesn't have the green flag on it) I've tried going to Menu -> Your places -> Saved -> Click on any of the categories (Want to go in my case) and it appears in the list: but if I click on the element, is the same as if I click on the map's location. Unrelated with this site, but I've tried also to remove in the android app and as soon as I click on the green flag, it appears "Can't establish the connection". Worth to mention, this is not a network issue as I can click another locations without the mentioned message. I found a solution to enter Google Bookmarks, but it only appear Starred places, not Favorites or Want to go. Also worth to mention this happens only with some places, not with all of them. No idea what I'm doing different with one or another. AI: I found how to remove them, going to Menu -> Your places -> Saved -> Click on the⋮ icon of the category desired -> Edit list. Then here you could remove the location clicking on the X button: Isn't the most friendly way, but is the only one I could find.
H: Google sheet chart, wrong time format in chart I have created a Google Sheet that collects a bunch of values in columns. One of these is a time value formatted hh:mm:ss AM/PM, obtained with the following formula: =TIMEVALUE(SUBSTITUTE("April 28, 2019 at 02:03PM"," at ", " ")) However, these values are shown incorrectly in the chart: Apparently, I can't find a way to customise time format in the chart... How should I fix this? AI: tick the Treat labels as text checkbox:
H: Inserting date automatically when a tick box is ticked I have a simple sheet that has two columns with tick boxes in them (columns 5 and 8) The goal is when the box is ticked the date and time are inserted in the column next to it. I have got it working correctly with one column with the following code: function onEdit(e) { var aCell = e.source.getActiveCell(), col = aCell.getColumn(); if(col == 5) { var adjacentCell = aCell.offset(0, 1); var newDate = Utilities.formatDate(new Date(), "GMT+1", "dd/MM/yyyy kk:mm:ss"); adjacentCell.setValue(newDate); } } For the life of me, I can't work out how to modify that so that it works with column 8 as well. Any help will save me tearing my hair out! AI: you can simply just double it: function onEdit(e) { var s = SpreadsheetApp.getActiveSheet(); if( s.getName() == "Sheet1" ) { var r = s.getActiveCell(); if( r.getColumn() == 5 ) { var nextCell = r.offset(0, 1); var newDate = Utilities.formatDate(new Date(), "GMT+1", "dd/MM/yyyy hh:mm:ss"); nextCell.setValue(newDate); } if( r.getColumn() == 8 ) { var nextCell = r.offset(0, 1); var newDate1 = Utilities.formatDate(new Date(), "GMT+1", "dd/MM/yyyy hh:mm:ss"); nextCell.setValue(newDate1); } } }
H: Insert value after analysing 2 cells I have a sheet that will a tick box in column J. When another tick box is ticked in column E I would like the sheet to check if column J has a tick in it and if so insert the value of 1.5 into column F. If the tick box in J is unticked I would like the value of 3 to go into column F instead. I have been trying to write this myself and failing so I thought I would ask the experts. AI: =IF(J1=TRUE, IF(E1=TRUE, 1.5, 3), ) or perhaps: =IF(E1=TRUE, IF(J1=TRUE, 1.5, 3), )
H: Custom SHEETNAME function not working in Arrayformula I have been successfully deploying the sheetname function outlined in Display sheet name in Google Spreadsheets for a couple of years. It has allowed me to have several sheets collecting information from different forms in one sheets file, with array formula filling in the name of the sheet in one column. Then I have a summary sheet that collects all of the separate form-filed sheets into one table of data. It has worked pretty well. But of late the sheetname function has not been reliably working. I have tried the GoogleClock(), and later the Now() parameter as suggested by the original discussion. But that now produces an error, which it did not previously do. When I change the array formula back, it works correctly. But this is a 20 tab Google sheet, and I don't want to have to force the function to work by hand on every sheet. My app script function looks like this: function sheetName() { return SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getName(); } The formula in the sheet looks like this: =arrayformula(if(row($A:$A)=1,"Production",if($A:$A="","",Sheetname()))) Like I say, it works when I manipulate it (change the function and change it back). But left on its own as users submit form answers, it stops working and just says "Loading" Any ideas? AI: AFAIK Google Sheets custom functions can't be used inside ARRAYFORMULA to return an array of values, but if it was working for you, it's good to know. As you are using a time execution expensive formula it's very likely that you are having the "Loading..." error because the your script exceeded the corresponding quota, and that the description of the error is Script invoked too many times per second for this Google user account.. From Google Apps Script > Exception messages: Script invoked too many times per second for this Google user account. This indicates that the script began executing too many times in a short period. It most commonly occurs for custom functions that are called repeatedly in a single spreadsheet. To avoid this error, code your custom functions so that they only need to be called once per range of data, as explained in the guide to custom functions. The solution for this specific case could be as simple as adding =SheetName() to one cell on each of the sheets of your spreadsheet, let say B1, then use the following formula: =arrayformula(if(row($A:$A)=1,"Production",if($A:$A="","",B1))) If the above formula doesn't work, then you could create a custom function that does the whole work of your formula. Notes: GoogleClock() function was deprecated several years ago. Custom functions can't use volatile functions, like NOW(), as arguments
H: How can I automatically update a given document on Google Drive? I have an old PC that I use only to run numerical simulations, while doing most of the work on my laptop. Being often out, I can't always have easy physical access to the former, with the obvious pain of having to wait till I get home to know the outputs of my works. Moreover, every time I have to open Google Drive and update the .dat files produced by the simulation in order to work with them on the laptop. Hence my question: Is there any Google Drive' set up which every n hours can update a given document to the cloud? I tried searching both the Internet and this site, but came to nothing; if it's a duplicate, tell me and I'll shut the question down upon display of proper references. Also, since I'm new to this Web Applications Stack Exchange, I would greatly appreciate if you could help me with the inclusion of proper tags. AI: You can solve this easily with the native application of Google Drive called Backup and Sync - https://www.google.com/drive/download/ download it install it in settings include the folder in which you output .dat files into Drive sync folder or output them directly in Drive sync folder if it's possible
H: How to simplify a specific formula? Example sheet here. Basically, I want to find out how many days have had their values entered, then average the totals across the number of days. If a day's value hasn't been entered it will be blank, but the value can be 0. What I've been using is this: =IF(isnumber(G2), sum(A12:G12)/7, if(isnumber(F2), sum(A12:F12)/6, if(isnumber(E2), sum(A12:E12)/5, if(isnumber(D2), sum(A12:D12)/4, if(isnumber(C2), sum(A12:C12)/3, if(isnumber(B2), sum(A12:B12)/2, A12)))))) Which seems like a cumbersome way to do it, plus the number of days tracked will be variable in the near future. I know I could replace it with IFS() and isblank(), but is there a more scalable option that doesn't require so much manual entry? AI: =AVERAGE(INDIRECT("A12:"&ADDRESS(12, COUNTA(A2:2), 4)))
H: Query(Importrange) or Query with dates I am trying to show or limit what is seen to just entries made in 2019. I found a few places that referenced this and have tried the following without success. =query(IMPORTRANGE("1bSyor-91_py58oDPVfalwcSB7Fw4mmJmD1jEOTIE7FU", "FVA_2017!A:M"),"select A,B,C,D,E,F,G,H,I,J,K,L,M where L > date '2019-01-01' and L < date '2019-12-30'") Or to query the sheet directly from within the same file. =query("FVA_2017!A:M","select A,B,C,D,E,F,G,H,I,J,K,L,M where L > date '2019-01-01' and L < date '2019-12-30'") I am getting the same error "Unable to parse the query string for Function Query parameter 2: NO_COLUMN: A" trying both of the queries. If I just do a regular importrange such as =IMPORTRANGE("1bSyor-91_py58oDPVfalwcSB7Fw4mmJmD1jEOTIE7FU", "FVA_2017!A:M") I get everything. The date column is L and the format a standard date field from a Google form 4/29/2019. The first row is a header row would this cause an error? AI: correct syntax: =QUERY(IMPORTRANGE("1bSyor-91_py58oDPVfalwcSB7Fw4mmJmD1jEOTIE7FU", "FVA_2017!A:M"), "where Col12 > date '2019-01-01' and Col12 < date '2019-12-30'", 0) =QUERY(FVA_2017!A:M, "where L > date '2019-01-01' and L < date '2019-12-30'", 0) =QUERY({FVA_2017!A:M}, "where Col12 > date '2019-01-01' and Col12 < date '2019-12-30'", 0) =QUERY(INDIRECT("FVA_2017!A:M"), "where Col12 > date '2019-01-01' and Col12 < date '2019-12-30'", 0)
H: ArrayFormula combined with ISBLANK Kind of new here. Tried to look for a similar answer but not quite getting it to work. I made a formula - it worked. I turned it into an array formula - it worked. But it was returning 0's in the column where the reference cell was blank. I looked up ISBLANK and that seems like the right answer... I combined them - not broken, but not working. (so ArrayFormula is still giving the correct answer, but 0's are all still there) Any ideas? I've worked my way to this point - made a sample file https://docs.google.com/spreadsheets/d/19h9OOShLHYV8qDhTl3wrWSPfnxpsXBI3kvN8BXYUOFw/edit?usp=sharing I get the I needed to put the IF(ISBLANK) _before the ArrayFormula, and if you look at my example it works..until you fill in cell B4, then all the zeros show up. I'm pretty sure I'm making a pretty basic mistake at this point. thanks in advance - if you don't look at the file, here's the formula: =if(isblank(B:B),"",ArrayFormula(IF(B4:B>=900,B4:B*0.2,IF(B4:B>=400,B4:B*0.15,IF(B4:B>=200,B4:B*0.1,IF(B4:B<=199,B4:B*0,FALSE)))))) AI: =ARRAYFORMULA(IF(LEN(O4:O), IF(O4:O>=900, O4:O*0.2, IF(O4:O>=400, O4:O*0.15, IF(O4:O>=200, O4:O*0.1, IF(O4:O<=199, O4:O*0, )))), ))
H: Shortening this Formula, and Future Proofing it I am creating a Google Sheet to use as an employee schedule. On this sheet, I have Cells which will contain the Total number of Hours worked per day by all employees. At the moment the formula I have set up for these Cells are as follows: =(IF(ISDATE(D16), D16)-IF(ISDATE(C16), C16))+(IF(ISDATE(D17),D17)-IF(ISDATE(C17), C17))...etc The reason for the IF(ISDATE) checks are because the cells on the schedule contain an X value if the employee isn't available on those days, or TIME OFF if the employee has booked the time off. For these equations as well, Column C is the Clock In time, and Column D is the Clock Out time. My issue with this at the moment is if I add a new row, from hiring a new employee, for example, I need to manually go into the cell and add the Row values to it. For example, if I added a new row to what I wrote above and it created Row 18, I'd need to manually add: +(IF(ISDATE(D18), D18)-IF(ISDATE(C18), C18)) to the formula. This can be tedious and can make it difficult to check that everything is being added correctly. Is there a way for me to set up this formula as some sort of range as a way to future proof what I am trying to do? EDIT: Here is a link to the Google Sheet AI: Static: =ARRAYFORMULA(SUM(QUERY(IF(ISNUMBER( INDIRECT("E16:F"&ROW()-1)), INDIRECT("E16:F"&ROW()-1), ), "select Col2-Col1"))) Dynamic: paste in C31 cell and drag to the right: =ARRAYFORMULA(SUM(QUERY(IF(ISNUMBER( INDIRECT(ADDRESS(16, COLUMN(), 4)&":"&ADDRESS(ROW()-1, COLUMN()+1, 4))), INDIRECT(ADDRESS(16, COLUMN(), 4)&":"&ADDRESS(ROW()-1, COLUMN()+1, 4)), ), "select Col2-Col1")))
H: How to save Gmail emoticons/emojis to use on other apps I like Gmail style/design of emoticons/emojis: How can I save them as PNG/JPEG to be imported on other applications like Slack? Slack allows importing emojis as PNG/JPEG files. Ideally, is there any place where I can download them all as an archive/ZIP file? AI: These are most likely to be updated soon because they are outdated. The latest emoji icon pack was released by Google as part of Android 9.0 Pie in August 2018 and it can be found and downloaded at: https://emojipedia.org/google/android-9.0/ The design you are looking for is an old Android 7.1 emoji pack released on October 2016: https://emojipedia.org/google/android-7.1/
H: How to prevent sub-lists numbering restart under each bullet? Google doc's numbered list functionality restarts sub-list "numbering" or "sequential lettering" like this: 1) First thing a) b) 2) Second thing a) <- Sub-list numbering / sequential letters restarts b) I want it not to restart, and to rather act like this: 1) First thing a) b) 2) Second thing c) <- Sub-list does not restart d) Is this possible? AI: Yes, it's possible. You just need to Restart numbering... 2x:
H: Remove Google Search suggestions Every time I type a word and then meaning (i.e. backpack meaning in...) Google suggests in Hindu, in Urdu etc. I have no interest in these languages and never googled for them. I would like to see suggestions for English, Spanish, Italian as these are the languages that I normally use. Almost every day I look for the meaning for an English word, but it doesn't appear as the first suggestion, instead, it appears Hindu. I understand that probably there are a lot of Indians searching for that and Google's algorithm is using it for its suggestions, but Google should prioritise my individual preferences/history and show me English/Spanish/Italian. Any way I can bring those languages at the top? AI: go to chrome://settings/searchEngines set this as deafult: https://encrypted.google.com/search?{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}sourceid=chrome&ie={inputEncoding}&safe=off&pws=0&hl=EN&q=%s
H: Where is Excel's Paste Special Operations in Google Sheets? I want to copy a cell with 100 in it, and paste special - multiply, to multiply a range by that 100 AI: There is no such thing in Google Sheets. All you have in Google Sheets is this:
H: How do I install Spreadsheet Freezer? I have hear that Spreadsheet Freezer could help me to control when a formula is recalculated. I read on the it's site that I could find the install link here, but I only found questions that point back to the add-on website. I already searched for it on Google the G Suite Marketplace and the Google Sheets Add-on store. Related questions Having Google Sheets not recalculate a formula on page load Recalculate google sheet on demand: Related Google Sheets Help article Freeze or merge rows & columns AI: I'm the Spreadsheet Freezer developer. Update: Here is the link to the install page from the G Suite Marketplace I'm sorry, the link has not been added yet on this site. When we do that, this question will be updated. In the mean time you could request the install link by using the Feedback submission form that was added few moments ago. Please don't share the link with others until further notice. Fill the Comments question. You could add a link to a related question, share briefly about your interest on Spreadsheet Freezer or anything else just follow the same conduct guidelines of this site. Then select Yes, then Next Then wrote your email address Check the check boxes that apply, minimum 1. Submissions with no options checked could be ignored. Click the submit button.
H: How to apply two general rules to Google Drive sharing? In G Suite's Google Drive, I can set my folder's permissions to: Anyone who has the link can view, or Anyone at Your Organization who has the link can edit (add, edit, and organize) I want both, and they're not conceptually incompatible, but I can't figure out a way to configure this in the Share menu. Well, actually, I want: Anyone who has the link can view, and Anyone at Your Organization who has the link can add. When I've tried this so far, I have two issues: The two rules are mutually exclusive. If I set rule (1) and then rule (2), rule (2) replaces rule (1). I can add as many individuals as I want, but I can only pick one general rule like these. There's no option to allow add without also allowing organize and edit. How can I get all or part of what I want? AI: For the option anyone with the link can view use the included dropdown. For the option anyone in your organization can edit, share the folders with a group that include all the members of your organization and set it to edit. Maybe you should ask you organization admin for the group email address, create such group for you, enable the related option in Google Groups for Business so you could create the group even if you aren't a G Suite admin
H: How to find the average of difference between two columns? Imagine you have a Google sheet with two columns, each holding a time - let's say one is bus departure and the other is bus arrival. Is there any elegant way to present the average of all the time the bus spent on the way each day? Example: Departure Arrival Average_Time_in_Transit 13:00 14:00 1:00 13:15 14:15 12:15 13:15 12:00 13:00 AI: =ARRAYFORMULA(IF(LEN(A2:A), TEXT(B2:B-A2:A, "[h]:mm"), )) =TEXT(AVERAGE(ARRAYFORMULA(IF(LEN(A2:A), B2:B-A2:A, ))), "[h]:mm:ss") =ARRAYFORMULA(IF(LEN(A2:A), TEXT((B2:B-A2:A)/COUNTA(A2:A), "[h]:mm:ss"), ))
H: Remove all text before (and excluding) match Hi I have a cell with data such as: Dropped pin Near Hughanden Village Hall, Pome Ln, Hughanden, Low Slokey, HT11 3AT https://goo.gl/maps/dVtKw423RBA9fkGs7 I would like to use REGEXREPLACE (or one of the other REGEX functions) to remove the text before the URL. As you can see newlines are present which has been stumping me a bit. To further complicate matters the data in the cell is user submitted with no validation and may not have a URL at all; simply a description or some GPS coordinates. In either of those situations, I would like the cell contents to remain unchanged. Am I asking too much? AI: =REGEXEXTRACT(A1, "http.*") ______________________________________________________ =ARRAYFORMULA(TRIM(TRANSPOSE(QUERY(TRANSPOSE(IFERROR(REGEXEXTRACT(D2:D, "(\d+.\d+,.*)|(http.*)|\((.*)\)"))),,999^99))))
H: How do I select multiple columns using Google Sheets =CHOOSE() function? From this table... ...the following formula in Excel... =choose({1, 2}, E18:E23&" | "&F18:F23, G18:G23) ...gives me this {“UK | Primary”,555;”France | Primary”, 543;……} However, in Google Sheets, it just gives me the first column. {1, 2} doesn't seem to work? How do I select two columns? The documentation for this function doesn't tell me AI: =ARRAYFORMULA({E18:E23&" | "&F18:F23, G18:G23})
H: Data cleaning in Google forms I've recently conducted a survey using Google Forms. The graphs and charts in the summary section are enough for me. However, I want to clean 10% of data (change ambiguous answers). Is there an easy way to do this using the spreadsheet that is connected with the form? AI: I'm sorry, there isn't an "easy way" like using a built-in feature but you could use Google Apps Script, an add-on or a third party app. If you will go for Google Apps Script, you should know about JavaScript and the Google Forms way of making Google Forms question to Google Sheets column mapping. Most of the questions are mapped 1 to 1 but grid questions are mapped 1 to many, where many is the number of question option rows.
H: Can I limit how frequently an 'on open' script runs? Basically I have a bunch of functions that run on Open, but if possible I'd like to limit them to only run once per 60 minute period. Just so that if a user accidentally refreshes or closes the sheet, opening it again won't trigger the functions. Setting a time based trigger is not an option as the sheet isn't opened on a scheduled time by users. AI: Say I'm forgetful, but I don't want to pester my coworker by calling her more than every two hours. I might remind myself just by jotting down when I call, so I can glance at that note next time I'm once again reaching for the phone. A script could do the same, scribbling down when it needs to run again, and checking it later. function onOpen() { var frequency = 60 * (60 * 1000); // minimum milliseconds between timed-script runs // YOUR "every onOpen, ignoring times" CODE HERE Logger.log("Running \"every onOpen\" code."); var due = PropertiesService.getScriptProperties().getProperty('nextOnOpenRun'); if (due == null || new Date().getTime() > due) { // YOUR "ONLY GREATER THAN HOURLY" CODE HERE Logger.log("Running \"hourly+ onOpen\" code."); // set up the next run, 60 minutes from now var later = new Date().getTime() + frequency; PropertiesService.getScriptProperties().setProperty('nextOnOpenRun', later); } else { // YOUR "onOpen within an hour later" CODE HERE Logger.log("Running \"<hourly onOpen\" code."); } } Right now I've set the frequency to your mentioned one hour. Apps Script times are in thousandths of a second, so leave on the minutes-conversion, "* (60*1000)" part if you ever change the timing. You'll see three "comment plus Logger call" pairs. They themselves are there for clarity, or your logging/testing, and could naturally be removed. Their position in the function and ifs is all that matters. Arranged this way, at every onOpen the time is checked and three blocks of code are conditionally run. Unconditionally run any "run every open/reload" code you may have, plus the time checks. If the script hasn't ever stored the time or if the current time is after our hour timestamp, run the infrequent code your question is really about. Importantly, also store a timestamp for "an hour from now" into a scriptProperty so we can check it in future onOpen runs. If the time hasn't elapsed, run any "opened or reloaded early" code. I suppose this would be a rarer need, but didn't want to assume.
H: Re-using a google form sent data, avoiding entering all data I am building a Google form to manage summer camp subscriptions. Each request must enclose parents and child data. The problem is, if a family wants to subscribe more than one child, the process must start from scratch and all parents data must be entered again. Could there be a way to reload (also with a Google Apps script) to form with partially prefilled data based on the previously sent data? Such as "do you want to send another request" question right before the submit, if yes, reload the form with pre-filled data... Keep in mind that the response sheet must contain one row per each child.... Any idea? AI: You could add a regular question to ask for sending another request but the pre-filled form will not be shown immediately if you use a "regular" Google Apps Script. A "regular" Google Apps Script will use on form submit event to create the pre-filled URL. It could post the URL somewhere or send it through email. You could implement a "hack" that capture the HTTP POST request made by the Google Form respondent view but this could be very convoluted. Maybe as a challenge for Google Apps Script / Google Forms fans could be interesting. I did that few years ago for a project but the use case completely different, maybe it now works with current version of Google Forms and I don't think that will be able to make a simplified version soon. An intermediate solution could be to embed the form on a web application that checkouts for new submissions from the active user.
H: How to SUMIFS text beginning with apostrophe I am receiving a list of products from an external data source. One of the product names begins with an apostrophe. When I attempt to produce a summary of the products and total quantity using UNIQUE() and SUMIFS() the formula is returning zero for the product that begins with an apostrophe. I have made an example sheet here: https://docs.google.com/spreadsheets/d/191bqjUPPPtt5ZKeTw7pUplsve-tBdDBhpBV0Ic3e-nA/edit?usp=sharing Interestingly, a VLOOKUP will work fine, but that will miss additional entries in the list. Does anyone have any ideas on how to solve this without removing the leading apostrophe? AI: You could do a "fix" with SUBSTITUTE fx: =ARRAYFORMULA(SUMIFS(B:B, SUBSTITUTE(A:A, "'", ""), SUBSTITUTE(D2, "'", ""))) Or use QUERY and have it all in one go: =QUERY(A1:B, "select A,sum(B) where A !='' group by A label sum(B)'Qty'", 1)
H: How do I create multiple time zones by using the NOW formula? I'm trying to create 5 cells with different time zones: CDT MDT MST PDT EDT I am in MST, so I obviously get my current time by doing NOW() How do I add hours to that? I tried NOW()+(2,0,0) But all I got was an error. I also got errors when I tried A1 + (2,0,0) and A1 *(2,0,0) Is there a simple solution to this? AI: to add +1 hour: =NOW()+(1/24) to add -2 hours: more examples:
H: Google Sheets count columns in a merge Is there a formula function in Google Sheets to count the number of columns in a merge? I could assign a named range to the merge to make it easier.... For instance: see the highlighted merged cells here, gives 13 columns: AI: Sure. Use the range object's getMergedRanges() method. Note that it returns an array of Ranges, so if testing a single cell, be sure to [0] -grab the first range returned. Demo with G3 as the cell to test, and getNumColumns() used to detect merge width, per your example. Run it and choose View→Logs to see what it found. function getCellMergeRange() { var testSheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(), testRange = testSheet.getRange("G3"), mergeRange = testRange.getMergedRanges()[0]; Logger.log("Merged Range is "+mergeRange.getA1Notation()+", containing "+(mergeRange.getNumColumns()*mergeRange.getNumRows())+" cells."); }
H: How can I get Google Drive to display file or folder size? I noticed that there is a column but it is not populated for neither my folders nor my files. I want to verify that files and folders I transfer to Google Drive match where they came from. If you notice the last column which is size, it is not populated or has a -. There is also a view details which did not show the size either. AI: G Suited Document Editors files (Google Documentos, Google Sheets, Google Slides, Google Forms, Google Drawings, ...) doesn't consume storage quota so Google doesn't track the file size the same way that they do for uploaded files that consume storage quota. You only can check for a match for G Suite Document Editors: file name, file type, folders parents Maybe also Owner Editors, viewers and related sharing settings But you could use Google Drive API to add custom metadata.
H: Can Blogger disable URL redirection automatically after a third-party domain expires? I have a blog at Blogger.com and I have purchased a custom domain from a third-party provider. On Blogger, I have set the original address ihatemeteorites.blogspot.com to be redirected to ihatemeteorites.cz. Now, let's say I die tomorrow (after a meteorite falls on my house). After a year or so, the third-party domain expires and no longer exists or worse, someone else buys it. The question is: Will ihatemeteorites.blogspot.com be redirected to ihatemeteorites.cz even after the domain is expired and will my blog therefore become inaccessible and lost forever? Or can Blogger tell somehow that the domain has expired and will disable the redirection automatically so that my blog becomes accessible at ihatemeteorites.blogspot.com again? AI: Possibly Blogger could choose to observe that the domain has expired and disable the redirection automatically so that your blog becomes accessible at ihatemeteorites.blogspot.com again. But for now, they don't do this. Visitors to your blog will continue to be redirected to ihatemeteorites.cz even once someone else has loaded entirely new content to that domain. (Your best bet is to keep away from meteorites!)
H: Blank Box If No Data Inputted This might sound hugely amateurish but I have a spreadsheet for my Pilot Log Book as I am a student. I have boxes stating my Take Off time and Landing time. In this case: 13:40 (H5) to 14:40 (I5) This means I would put down 1:00 (K5) for the amount flown. What formula would I input to say "I5 - H5 =", but if there is no value in I5 or H5, leave K5 blank? AI: =IF(AND(H5<>"", I5<>""), I5-H5, ) =ARRAYFORMULA(IF((H5:H<>"") * (I5:I<>""), TEXT(I5:I-H5:H, "hh:mm"), ))
H: Box change depending on drop-down list validation For this example, we will use the top line of data so... Type = H6 Time Depart = I6 Time landed = J6 Single Engine In Command = K6 Single Engine Dual = L6 My plan is to add I6 and J6 into L6 if H6 says Dual. But I6 to add with J6 into K6 if H6 says In Command. Can anyone help me with my boxes? In L6 I already have the formula (to make box blank if no values in I6 & J6; =IF(AND(I6<>"", J6<>""), J6-I6, ) AI: =ARRAYFORMULA({IF((I6:I<>"") * (J6:J<>"") * (H6:H=K$5), TEXT(J6:J-I6:I, "hh:mm"), ), IF((I6:I<>"") * (J6:J<>"") * (H6:H=L$5), TEXT(J6:J-I6:I, "hh:mm"), )}) demo spreadsheet
H: Auto-populate cells based on previous cell values in Google Sheets I have two columns with information. Values in Column B have been manually added to match the values in Column A. Is it possible to have a function that auto-populates column B with the right values based on what comes before the new rows (i.e 998, 999)? Column A might have a different order each time new rows get added. A B Product Category 1 Apple Fruit 2 Orange Fruit 3 Beets Vegetable 4 Cake Dessert 5 Carrot Vegetable 9 Apple Fruit ... 998 Beets ? 999 Apple ? Is this possible in Google Sheets? AI: yes it is if the "sample" (A2:B6) is large enough: =ARRAYFORMULA(IFERROR(VLOOKUP(A7:A, A2:B6, 2, 0)))
H: How to use FILTER to select only values repeated more than X times I am trying to use the filter function to select from 2 columns, only the values repeated. I will give you an example: My column is like: Names Jobs Value - Gerard player 4 Gerard player 2 Bill player 5 Bill painter 4 Bill player 4 Bill player 3 Gerard painter 3 Helena player 3 Helena player 2 Mary player 3 I have this Query =QUERY(G2:I, "select G, AVG(I) where G is not null group by G") And I can filter my data to get average for the values for each name. Okay, it's fine. Now, I want for this Query, select only if I the name is repeated 3 times or more. I tried a lot of things with the Query, so, I deserved it. Then, I tried to did it with my filter formula. It's like that: =FILTER(B1:D,DASHBOARD!F24=C1:C) I am using a dashboard to select the Job, to return the average, but the individual value for just one job, or when a lot of names are repeated 20 times, for example, it's not fair to show who just came one time. So, to resume, I won't change my filter column (or query, if someone knows), to select the names only if the value is higher than X (maybe can be 5 or 10, idk). I don't know if something is not clear, I am not good in English, but if u need, I can clarify anything. AI: Create a column which tests whether the name is repeated at least x amount of times. The formula in the 2nd row is =COUNTIF(B:B,B2)>=$L$1 where the names are in column B, and L1 is where you have input the number of times the name should have been repeated. The data doesn't need to be sorted beforehand for this to work. To use this column (let's call it K), you could create a new column J next to column I, and put =IF(K2, I2, "" ) in cell J2, then copy down and query this new column J, as follows: =QUERY(G2:J, "select G, AVG(J) where G is not null group by G") There could be an alternative method for using column K, such as within the QUERY function itself. Here is my example Sheet.
H: How To Suggest Google A New Design I was just wondering, if and how it is possible to suggest a new design to Google? Because it just happened that I thought, this would be a more pleasant design of the current Google Calendar and would like to suggest it as an inspiration to the design team. In my opinion, this version would be lighter, cleaner, and faster to read: AI: if you have G Suit: Submit a feature idea Currently, you can only submit feature ideas in English. Important: To view or submit feature ideas, you'll need to contact G Suite support first to verify your account credentials. It can take up to 24 hours after your request to get access to the Feature Ideas Community. Sign in to the Cloud Connect Community. On the CCC home page, click the G Suite and Chrome Feature Ideas tile. Search the Feature Ideas Community to see if your idea already exists. If you see something that looks similar to your idea, review it before submitting your idea to avoid duplication. Tip: Make sure you vote on feature ideas that you support. Select View all feature ideas and click Add ⊕. Add a product category to make your feature idea easier to find. To improve your submission, include a problem statement, the desired behavior, and a possible solution or alternative. Click Post. Your idea will then be available for other members of the community to browse and vote on. The feature ideas that get the most votes are submitted to the Product Teams. If your idea is submitted, you also earn a badge on Cloud Connect Community. https://support.google.com/a/answer/6284762 if you have a regular account: https://www.google.com/tools/feedback/intl/en/
H: Add missing dates to list of dates with values Current Data: 9/20/2018 6 9/22/2018 3 9/23/2018 1 Desired Output: 9/20/2018 6 9/21/2018 9/22/2018 3 9/23/2018 1 I would like to have the missing dates added to Column A while the data in Column B remains matched up with the original date. Column B Does not necessarily need to receive a Null value, it could be '0' as well. AI: paste this into C1 cell: =ARRAYFORMULA({TO_DATE(ROW( INDIRECT("A"&DATEVALUE(MIN(A:A))&":B"&DATEVALUE(MAX(A:A))))), IFERROR(VLOOKUP(TO_DATE(ROW( INDIRECT("A"&DATEVALUE(MIN(A:A))&":B"&DATEVALUE(MAX(A:A))))), A:B, 2, 0))}) then select columns C:D press CTRL + C press DELETE select A1 cell press CTRL + SHIFT + V
H: Searching for a sentence that I only know part of it using Google's operators I am looking for a particular combination of google hacking commands to find a sentence. For example, I am looking for ”where eagles dare” In this case, I don’t have part of a sentence like the following example: where xxx dare I am sure about the first and last word but I don’t know what is in the middle. I used “where” and “dare” But it did not work properly. AI: You can use a wildcard operator when you don't remember a particular word. The asterisk (*) is used as a placeholder for any word(s) that you don't know in a particular phrase. Therefore it would be: "where" * "dare" or try: "where * dare"
H: Search max value of column after individual operation on each value of that column using arrayformula or similar I have a Google Sheets with a column D with identifiers in a certain format (i.e. Y19_XXX): Y19_234 Y19_213 Y19_814 Y19_215 Y19_817 ... Now I want to determine the highest value XXX in that column that is lower than 800 (here in this example thus 234). I tried: =MAXIFS(ARRAYFORMULA(VALUE(RIGHT(D3:D300,3))),ARRAYFORMULA(VALUE(RIGHT(D3:D300,3))),"<800"), but the MAXIFS formula complaints it needs a range to operate, while I thought the ARRAYFORMULA(VALUE(RIGHT(D3:D300,3))) formula resulted in a range. Anyone an idea? AI: =ARRAYFORMULA(VLOOKUP(QUERY(SPLIT(A2:A, "_"), "select max(Col2) where Col2 < 800 label max(Col2)''", 0), {INDEX(SPLIT(A2:A, "_"), , 2), A2:A}, 2, 0))
H: Google form wrongly delete rows in second sheet I copied a previous question here since it's exactly the same as what I want to ask: I created a form in Google Docs. Then I created a second sheet to pick and process data from the first sheet using formula. There I'm also able to add extra columns to add human-processing information. In my second sheet, I use functions like =Sheet1!A1 to refer to the field in the first sheet. This works fine. However, it goes wrong when a new response comes in. In the second sheet, the references don't work as expected. When looking at the function in the first empty row, the number it refers to is increased one number too far. Therefore the response will not be automatically generated in the new row of the second sheet. If I copy the formula in the old row then post to new empty rows, the new response will then show. But I need to do that manually instead of it generated automatically. So, before the new response the second sheet looked like this (with two responses): =Sheet1!A1 => Foo =Sheet1!A2 => Bar =Sheet1!A3 =Sheet1!A4 After the third response the second sheet looks like this: =Sheet1!A1 => Foo =Sheet1!A2 => Bar =Sheet1!A4 =Sheet1!A5 Notice instead of A3, it became A4. I'm not deleting rows myself in the second sheet. It seems that Google Docs automatically deletes rows from the second sheet when inserting a new response in the first sheet. If I remember it correctly, this was working just fine until I removed all rows in the first sheet after testing. Anyone knowing how to solve or work around this? AI: When you move formulas around, or the cells they pull values from, Sheets does its best to intelligently preserve or update those links. You said "I'm not deleting rows myself in the second sheet." That's true. Instead, you're accidentally doing the opposite—creating rows in the first sheet—by having a form attached to it. Your second sheet's third cell conceptually pulls from "the first blank row on Sheet1," currently A3. But when a form response comes in, all the rows move down to accommodate the new row of responses, so your same-old "first blank row on Sheet1" is now in A4. The second sheet reference to that cell updates appropriately. The fix is generally to refer to entire arrays of data. Use direct unbounded ranges like =Sheet1!A:A or array-expectant formulas like FILTER, SORT, UNIQUE, ARRAYFORMULA, QUERY, etc. Follow some tutorials (1, 2, 3) or help articles. If you get stuck or end up with pointed technical questions, edit your question here. Or much better, share your sheet and include a link when you write up a new question. Oh, we need to take a moment for a special caution about what you're doing in the first place. Whenever reflecting data from one location again elsewhere, individually or by using any formula that has a result array (that is, multi-cell output, so; SORT, UNIQUE, FILTER, ARRAYFORMULA, etc.), that formula's output is both dynamic and one-way from input to output. One Way. You cannot edit the output of a spreadsheet formula. If you type some text or a number over a formula result, be it one cell or one value out of five thousand, the formula is no longer functioning. You've just got the one value you entered. It may be the right value even, but it's merely what you typed, not a live formula result anymore. This also applies if you copy a result and paste as plain text. If you need to alter the result of any formula, you must either change the formula itself to match your actual need, or directly alter the source values. Example: if someone has a typo in their form entry, if you type over a spot where it's displayed on Sheet4 in a simple one-cell formula or a huge multi-column report, the formulas are broken. The takeaway: fix it in Form Responses. Since any formulas that read entries are 'live', when you edit a Form Responses row, the second sheet report using it will recalculate and update as well. Dynamic. Any spreadsheet formula doesn't care what you type near its output, and cannot help you keep data organized or associated. Example: imagine the nightmare of having entered new data next to an automatic list (e.g. in a blank column right of your second sheet's reflection of Sheet1), but then a couple rows of source values are intentionally and correctly deleted (e.g. two form responses are invalidated). The source values all move up to fill the gap as you delete the rows. Also, the live formulaic output all shifts up a couple rows. But since your comments are not part of the automatic list, they stay put and are now misaligned. The takeaway: keep related data together. You are free, for example, to add new columns next to form-linked "Form Responses" (or "Sheet1") columns. They would be sorted, moved, or deleted as rows and always stay together. In kind, any formulas that were reading and displaying those new columns elsewhere would also reflect the changes correctly. Mitigating both problems, also perhaps consider UI cues to not edit a formula-result area nor work next to it. Deleting extra columns next to reports can discourage "margin notes". Sheet protection, a light gray background, or white cell outlines, or just a label row above the real headers can remind all the file's users that those columns are automatic.
H: Cannot change language for Google Maps I originally set up both English and Japanese for all Google application as my understandable languages but since it started bothering me I deleted the Japanese and keep only English. However, every time I open Google map, it's in Japanese. I change the language from the setting, but again, next time, it's in Japanese. How can I fix it? AI: You should be able to change language preference in regional settings here: https://www.google.com/preferences1 or here: https://www.google.com/preferences2
H: Google Sheets Query Where Cell value I'm looking for help editing a Google Sheets formula. I want the formula to Import Range from another worksheet where value equals a specified cell. I can only make the where in the formula equal a hard-coded text. Can someone help? https://docs.google.com/spreadsheets/d/1BoIre_wWE6yfiFvLseWGn3XNqK4gUS2wqdVenR32q2M/edit?usp=sharing https://docs.google.com/spreadsheets/d/1YZtd4188cA2zG1ZeR_CisJbH6ykxjzNvmmr3LSeEXHk/edit?usp=sharing Formula: =QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1BoIre_wWE6yfiFvLseWGn3XNqK4gUS2wqdVenR32q2M/edit#gid=20780806", "CM!A2:G3000"),"SELECT Col1,Col5 WHERE (Col3 = 'Cross Fit')") I want it to reference cell C1 instead of "Cross Fit" AI: do it like this: =QUERY(IMPORTRANGE("1BoIre_wWE6yfiFvLseWGn3XNqK4gUS2wqdVenR32q2M", "CM!A2:G"), "select Col1,Col5 where Col3 = '"&C1&"'")
H: Analyse multiple columns per row I need to combine the data of three different columns. Thus, I have this: ------------------------------------------------------- | ID | ID Data | Markdown 1 | Markdown 2 | Markdown 3 | ------------------------------------------------------- | 1 | G | X2 | X3 | X4 | ------------------------------------------------------- | 2 | B | X6 | X7 | X8 | ------------------------------------------------------- | 5 | Z | X3 | X4 | X5 | ------------------------------------------------------- | etc ... 100 rows In the end, I want one column saying "Markdowns", thus that combines the different columns. However, I want to keep the row data, meaning I need to see for which ID's which markdowns were put: ---------------------------- | ID | ID Data | Markdowns | ---------------------------- | 1 | G | X2 | ---------------------------- | 1 | G | X3 | ---------------------------- | 1 | G | X4 | ---------------------------- | 2 | B | X6 | ---------------------------- | 2 | B | X7 | ---------------------------- | 2 | B | X8 | ---------------------------- | 5 | Z | X3 | ---------------------------- | 5 | Z | X4 | ---------------------------- | 5 | Z | X5 | ---------------------------- | etc ... I need this to create pivot's and graphs to show how many and which markdowns for which ID were put. Now I need to create three different pivots and combine the data manually. I already checked this formula but with that one, it seems I have to add the formula for each row manually. Can anyone help me with this? AI: =ARRAYFORMULA(TRIM(SPLIT(TRANSPOSE(SPLIT(QUERY(IF(LEN(A1:A), "♠"&A1:A&"♦"&B1:B&"♦"&C1:C&"♠"&A1:A&"♦"&B1:B&"♦"&D1:D&"♠"&A1:A&"♦"&B1:B&"♦"&E1:E, ) ,,999^99), "♠")), "♦")))
H: How to change the size of paper in Google Docs to custom size? I want to change the paper size in Google Docs document, But you can only change to a few individual sizes from the list. How do I change to a custom size? I need every page of a different size. Thanks. AI: On Google Documents the page settings apply to the whole document, so if you need that every page have different size, you should use a different file for each page. Related Make a single page landscape in Google Documents
H: How can I search for 'new' items ONLY in Amazon.ca? I was trying to find a 'new' laptop in Amazon and failed. It is showing a lot of search results which includes 'old' and 'refurbished' items as well. I scrolled through 5 or 6 pages, almost all items are 'old' ones. How can I ask Amazon.ca to show only new items? AI: You can either try to include a year in the search bar or select Sort by: Newest Arrivals (or both):
H: Repeatable questions I'm trying to create a daily personnel report. Each manager needs to report who their personnel are, whether they are Present, Sick, On Leave, etc, and where they are. I then plan on having a set of Sheets collate and organize the data, creating a summary for the director. Each day, we'll save off a copy for record. However, with people constantly coming and going from our organization, I need the managers to be able to add people to their report, without me changing the forms. Is it possible for me to create a question that is asked over and over again, appending data to the Sheet, until a termination button is clicked? Or can I create a form where the user can add a new row if needed? Ideally, I'd like the managers to be able to look over their full report while editing it. That will reduce errors and misses. AI: Is it possible for me to create a question that is asked over and over again, appending data to the Sheet, until a termination button is clicked? One way to do something similar to this is to use sections to include the a copy of the question that should be asked over an over and a radio button question to ask if the response is done. Set it to go to the next section if the user choose No and to submit the form if the user choose yes. You should add as many sections as you expect that your users will require, like the maximum number of employees that a manager should report, but bear in mind that the response will not be saved until the form is submitted, so if the Google Form window/tab is closed before the form is submitted the manager should start again. Or can I create a form where the user can add a new row if needed? The only way to do this is by allowing users to edit the form but the changes could affect the previous submitted responses, if someone remove a question the previous saved answers will be lost.
H: How to group values ​by month and sum previous values? I would like to sum the values ​​of a table grouped by months but adding up the previous months. Example: Result that I want: The closest I've come so far is: =Query(B2:C4;"select sum(C), B group by B"; -1) AI: =QUERY({B2:C}; "select Col1,sum(Col2) where Col1 !='' group by Col1 label sum(Col2)''"; 0) =ARRAYFORMULA({"Month"\ "Total"; { QUERY(QUERY({B2:C}; "select toDate(Col1),sum(Col2) where toDate(Col1) is not null group by toDate(Col1) label sum(Col2)'',toDate(Col1)''"; 0); "select Col1"; 0)\ MMULT(TRANSPOSE((ROW(INDIRECT("A1:A"&COUNTA( QUERY(QUERY({B2:C}; "select toDate(Col1),sum(Col2) where toDate(Col1) is not null group by toDate(Col1) label sum(Col2)'',toDate(Col1)''"; 0); "select Col2"; 0))))<= TRANSPOSE(ROW(INDIRECT("A1:A"&COUNTA( QUERY(QUERY({B2:C}; "select toDate(Col1),sum(Col2) where toDate(Col1) is not null group by toDate(Col1) label sum(Col2)'',toDate(Col1)''"; 0); "select Col2"; 0))))))* QUERY(QUERY({B2:C}; "select toDate(Col1),sum(Col2) where toDate(Col1) is not null group by toDate(Col1) label sum(Col2)'',toDate(Col1)''"; 0); "select Col2"; 0)); SIGN( QUERY(QUERY({B2:C}; "select toDate(Col1),sum(Col2) where toDate(Col1) is not null group by toDate(Col1) label sum(Col2)'',toDate(Col1)''"; 0); "select Col2"; 0)))}})
H: How to remove label for multiple Google Contacts? I have thousands of contacts with automatically create labels from each import in the past I did. I understood how to remove labels for a single contact, but how can I do this bulk on multiple contacts? AI: There is no direct way. Alternatively you can: Click on the 3 dots on the top right side Change column order and rearrange the columns bringing Labels closer to the beginning. On the bottom right hand side go under the More actions dropdown, where you'll find the Export and Import options. Export as .csv Create a new label (e.g. backup) and add ALL your contacts in it. Open the downloaded .csv file in a spreadsheet and edit to your liking (using formulas). Import your new, edited file. By now you have duplicates of all your contacts. Select the label backup and delete all contacts in it. Delete the label. Enjoy your bulk edited contacts. PS: If you don't feel comfortable deleting the contacts you can use the Duplicates and Merge functionalities after the import.
H: All mail from import went directly to spam folder in Gmail I have 2 gmail accounts, for example: user1@gmail.com and user2@mydomain.com (using Google apps). On user2@mydomain.com I went to settings: Check mail from other accounts: and added user1@gmail.com After doing so, all the emails from user1@gmail.com were moved and transferred directly to user2@mydomain.com but went all into the spam folder as you can see here: User1 Inbox: User2 Inbox: Obviously this is a HUGE problem because the emails going to spam will be automatically deleted. My question is, how can I reverse this process and get all those emails in spam back to user1@gmail.com as they were before? Thank you. AI: Just go to your Spam, Select All and hit the Not spam button.
H: COUNT UNIQUE values by group ONLY IF NOT already counted in previous group I hope to explain clearly what I'm trying to do. I have some data in column B, grouped as shown in column A. I'd like to count the unique values for each group present in column A, not taking into account the unique values already counted in the previous group(s). For instance, I'd like to: count unique values in 'proyecto2' NOT COUNTING the unique values already present in 'proyecto1'. count unique values in 'proyecto3' NOT COUNTING the unique values already present in 'proyecto1' and 'proyecto2'. count unique values in 'proyecto4' NOT COUNTING the unique values already present in 'proyecto1', 'proyecto2' and 'proyecto3'. and so on... Below you can find a Google Sheet with the solution I found, even if I'm not very happy with it, to show easily what I mean. https://docs.google.com/spreadsheets/d/1x8S76_6dUnHr1NtUbzNzpLTpQtqan6_ohemcrGsrpC0/edit#gid=0 Basically, in column A:B, we have the INPUT DATA. You can add data in column A and B to see how it works (my method, at the moment, only work if you add one of these groups in column A: 'proyecto1', 'proyecto2', 'proyecto3', 'proyecto4', 'proyecto5' and 'proyecto6'). In column D:E, we have the output data, basically, the unique values counted by the group. In column G:W, the formula to process the data. Clearly, my method is working up to 'proyecto6' since in the "processing columns" I'm taking into account formula only up to 'proyecto6'. Everything is working but my question is: could you suggest me a more dynamic way of achieving what I'm trying to do? Or the only way is to write some code? AI: delete everything in range D:Z paste to D2 cell: =UNIQUE(A2:A) paste to E2 cell: =ARRAYFORMULA(IF(LEN(D2:D); MMULT(IFERROR(LEN(G2:Z)/LEN(G2:Z); 0); TRANSPOSE(COLUMN(G2:Z2)^0)); )) paste to G2 cell: =TRANSPOSE(UNIQUE(FILTER(B$2:B; A$2:A=D2))) paste to G3 cell and drag down: =TRANSPOSE(UNIQUE(FILTER(FILTER(B$2:B; A$2:A=D3); NOT(COUNTIF(INDIRECT("G2:"&ROW()-1); FILTER(B$2:B; A$2:A=D3))))))
H: Send a google form result to an email I need help with the google form. The problem is this: I want to receive an email with its results for every user who completes the form. For example, if you had a form that required email, name and surname. I would like to receive an email like this: " New registered user mail: newuser@user.com name: jon surname: kess " I tried addons, but they either didn't work or were limited to a few emails. Thank you all AI: You can do that with a simple script. To write the script you should use the Script Editor on the answers spreadsheet linked to the form (not the script editor in the form). Go to Tools -> Script editor... When in the script editor, erase all the presented code and replace it with the following: The code: // Auto-Confirmation Email to "myemail@xyz.com" function AutoConfirmation(e){ var theirFirst = e.values[2]; var theirLast = e.values[3]; var theirEmail = e.values[4]; var myEmail = "myemail@xyz.com"; var theWhat = e.values[1]; var subject = "New Form Submitted"; var message = "New registered user mail: " + theirEmail + " name: " + theirFirst + " surname: " + theirLast + " has filled the form: " + theWhat; MailApp.sendEmail (myEmail, subject, message); } Save Authorize Now click on the clock icon on the toolbar and on the new page, set up a trigger for On form submit and save the trigger. Test and Enjoy! Notes The e.values 1, 2, and so on, correspond to the columns on the spreadsheet where the answers are submitted. Keep in mind that the numbering for the columns start with 0. (Zero being the column reserved for the timestamp.) *You can read all about limitations on Google accounts and triggers at: Quotas for Google Services and Simple Triggers EDIT (following OP request) How I can do bold in the var message? I am afraid you will complicate things. I would stick to just changing lines using the accepted \n. Please have a look at the updated code: function AutoConfirmation(e){ var theirFirst = e.values[2]; var theirLast = e.values[3]; var theirEmail = e.values[4]; var myEmail = "myemail@xyz.com"; var theWhat = e.values[1]; var subject = "New Form Submitted"; var message = "New registered user: \n\n EMAIL: " + theirEmail + " \n FIRST name: " + theirFirst + " \n LAST name: " + theirLast + " \n\n Filled form: " + theWhat; MailApp.sendEmail (myEmail, subject, message); } PS: Please try following the site rules as explained here and when in need of clarifications just add a comment, not an answer (as you just did).
H: Cannot copy and paste in keikai I uploaded several files while testing keikai.io, but I noticed that copy and paste don't work in IE11. Is there any way to solve this issue? I find it working in Chrome and Firefox. AI: Run keikai 1.0.0-beta.18 or later. Due to limitation of IE11 to access OS clipboardData; no way to copy spreadsheet 'format' from Keikai to 3rd party application(e.g. excel). In IE11, we support only copy and paste pure text in such case.
H: Trying to Query a list against another list First time ever using stack exchange so please excuse any formatting problems. I'm trying to create a sheet where Sheet1 is a dump of data and Sheet2 contains: A date range A list of items True/False checkboxes for each item I pretty much immediately wrote off the checkboxes as helper cells and created a hidden query to dump everything that was marked true in what I'm going to call Range_Items (Though I'm really just referencing the cells they were dumped in). I haven't tried limiting the final query against the date range yet, because I'm having trouble making it pull from Sheet1 against the Range_Items list. So I tried paring it down to a simpler formula for concept and still can't seem to figure out why it won't pull anything. This is the simplest iteration I can think of: =Query('Transaction Dump'!$A:$J,"select B,C,E,F,G,I where C = 'Expense'") But when I try C = Or('Expense', 'Transfer') using cell reference or lack of single quotes, I get hit with errors. I'm sure the problem is the syntax, but I really can't tell what's stopping it. Some other attempts I've tried include: Simply referencing the cell range in the OR function Nesting another query into the query =TEXTJOIN(",C =",True,$O$41:$O$57) where I then prefix that statement with =arrayformula("C = " & $C$59) since the first list item would not have the C = operator and stick that into the Query's Or function. I've tried a billion combinations of single, double, and & insertions. Any help would be greatly appreciated. AI: try it like this and if you will need in future the and you just replace the or: =QUERY('Transaction Dump'!$A:$J, "select B,C,E,F,G,I where C = 'Expense' or C = 'Transfer'", 0) also you may change = to matches or contains _______________________________________________________________ cell B59: ="contains '"&TEXTJOIN("' or Col3 contains '", 1, $O$41:$O$57)&"'" cell Y3: =QUERY({'Transaction Dump'!$A7:$J}, "select Col2,Col3,Col5,Col6,Col7,Col9 where Col3 "&C59, 0)
H: How can I have Google Sheets automatically parse and calculate text that follows a certain pattern? I have the following sheet: https://docs.google.com/spreadsheets/d/1iEMjWVEwyuqbn_imW1UZ-AF2NlE__IbRZdHQifKJjko/edit?usp=sharing I would like to calculate "Total Work" by deriving it from my own notation. When I do 6 sets of 10 reps of bench press at 200lbs, I want to write and see 6x10x200, but then, in addition, see a "total work" computation that recognizes the pattern NUMxNUMxNUM, or NUMxNUMxNUM, NUMxNUMxNUM If this problem would become much easier to solve with some adjustments to my notation, for example, NUM*NUM*NUM, this would work perfectly fine. AI: =IFERROR(SUM(ARRAYFORMULA(QUERY( SPLIT(TRIM(TRANSPOSE(SPLIT(REGEXREPLACE(C3, "((.*))", ""), ",")&"x1")), "x"), "select Col1*Col2*Col3 label Col1*Col2*Col3''", 0))))
H: Does Google Translate's free (non-API) service use neural nets? Does Google Translate's free (non-API) service, https://translate.google.com/, use the Google Neural Machine Translation (GNMT) technology, or is that restricted to the paid API? AI: Yes, it does. Google Translate (web service) is based on free API and the "only" difference between free and paid API is a limit of characters per input. https://cloud.google.com/translate/#features https://en.wikipedia.org/wiki/Google_Neural_Machine_Translation
H: How to search multiple sites with Google and get random results? I'm trying to find examples of English collocations in a set of sites. I know how to search in multiple sites as it's been solved here before. search term site:A OR site:B OR site:C The problem is that Google shows all the results of site A then site B and it kind of defeats the purpose of searching multiple sites at the same time because you have to go through all the results of site A to get to site B results. Is there any way (for example a JavaScript code?) to make Google results shown randomly so that I can have examples from all the sites in the first 100 results? AI: Google Search results are outputted based on page rank so all depends on the search term (eg. statement that sites are grouped is not true): "google sheets" site:webapps.stackexchange.com OR site:stackoverflow.com Also, you can always try alternative search engines like DuckDuckGo, Yandex or Bing
H: How to import/merge data from from 2 separate sheets from another spreadsheet I need to import data from "Spreadsheet A" to "Spreadsheet B" but all the data is in two separate sheets "MY" and "NY" in "Spreadsheet A" I basically need exactly this but with a function to import from another spreadsheet, not only within the same one =QUERY({{ARRAYFORMULA(ROW(INDIRECT("A1:A"&COUNTA(QUERY(MY!A2:A; "select A where A is not null")))))\QUERY(MY!A2:A; "select A where A is not null")}; {ARRAYFORMULA(ROW(INDIRECT("A1:A"&COUNTA(QUERY(NY!A2:A; "select A where A is not null")))))\QUERY(NY!A2:A; "select A where A is not null")}}; "select Col2 order by Col1") AI: first, run one IMPORTRRANGE to connect the sheets: =IMPORTRANGE("ID"; "MY!A2") then try: =QUERY({{ARRAYFORMULA(ROW(INDIRECT("A1:A"&COUNTA( QUERY(IMPORTRANGE("ID"; "MY!A2:A"); "select Col1 where Col1 is not null")))))\ QUERY(IMPORTRANGE("ID"; "MY!A2:A"); "select Col1 where Col1 is not null")}; {ARRAYFORMULA(ROW(INDIRECT("A1:A"&COUNTA( QUERY(IMPORTRANGE("ID"; "NY!A2:A"); "select Col1 where Col1 is not null")))))\ QUERY(IMPORTRANGE("ID"; "NY!A2:A"); "select Col1 where Col1 is not null")}}; "select Col2 order by Col1") also make sure that both spreadsheets have the same amount of rows
H: Can I sync events on Google Calendar one way? I have two calendars, work and personal. I want things that I add to my work calendar to show up on my personal calendar as well - e.g. if I have an important meeting or work event it's relevant to both calendars. But I don't want everyone in my office to see if I'm meeting my partner for dinner, for example. Is there any workaround that allows events to automatically be copied from one calendar to another, but not the other way around? AI: A couple of suggestions: You can transfer/share your work calendar to your personal email like this, and when you are logged in your personal account you can see your work calendar on the left side under "Other calendars." You can open both your work and personal Google calendars in Microsoft Office Outlook like this, and even overlay them on top of each other as it's shown here. You can set this only on your personal computer at home.
H: How can I use ARRAYFORMULA (or something similar) with GOOGLETRANSLATE? I'm learning a new language and I recently discovered Google Sheets' GOOGLETRANSLATE function. I thought it'd be neat to have a personal dictionary of translations which I can even annotate. So I created a simple sheet that translates words from column A in column B. So far so good. The problem is I can't tell Google Sheets to "translate every cell in column A to column B". I used ARRAYFORMULA but it doesn't work as expected. =ArrayFormula(GOOGLETRANSLATE(A2:A,"en","de")) only results to As you can see, only B2 is translated, not everything else. FWIW, dragging the fill handle down still works but I want an endless dictionary of such translations. I created the sheet on the web app but I use it primarily via the Android app. I want to just type the word in column A and get its translation. Unfortunately, if the fill handle even works in mobile, I don't know how to trigger it. (And I know this forum is for web apps so I'm going to stop right there.) AI: ARRAYFORMULA does not support GOOGLETRANSLATE. The best you can have is to pre-program the array like this: ={GOOGLETRANSLATE(B20, "en", "de"); GOOGLETRANSLATE(B21, "en", "de"); GOOGLETRANSLATE(B22, "en", "de"); GOOGLETRANSLATE(B23, "en", "de"); GOOGLETRANSLATE(B24, "en", "de")} Another workaround would be to join stuff: =ARRAYFORMULA(TRIM(TRANSPOSE(SPLIT( GOOGLETRANSLATE(TEXTJOIN(". ", 1, B20:B24), "en", "de"), ".")))) You may also resolve it via script or with API calls: https://developers.google.com/apps-script
H: Reverse subtraction if less than zero (negative) I have a simple Google spreadsheet that Takes the estimated cost for a service provided and compares it to the actual cost of the service. the equation I have in the Q column is =K4-P4. When the estimated cost (column K) is less than the Actual cost (column P) I need a positive number in Column Q. And I need the reverse of that if K is greater than p. I'm new to spreadsheets and would appreciate any help. AI: =ARRAYFORMULA(IF(LEN(K4:K&P4:P), IF(K4:K-P4:P<0, P4:P-K4:K, K4:K-P4:P), ))
H: Get the name and link file based on Folder ID I created a script to get the name and link file based on Folder ID. The file name and link are displayed on sheet 'Get_Link'. File spreadsheet The script that I wrote like this: function listFilesInFolder(folderName) { var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Get_Link'); //sheet.appendRow(["File Name","URL"]); var folderID = []; folderID = SpreadsheetApp.getActive() .getRange('Folder_ID!A2:B') .getValues() .reduce(function(p, c) { if (c[0] !== '' && c[1] !== '') { p.push( DriveApp.getFolderById(c[1]).getFiles() ); return p; } }, []); //var searchTerm = Browser.inputBox("Masukkan Folder ID:"); //var folder = DriveApp.getFolderById(searchTerm); //var contents = folder.getFiles(); var cnt = 0; var file; while (folderID.hasNext()) { var file = folderID.next(); cnt++; data = [ file.getName(), file.getUrl(), ]; sheet.appendRow(data); }; }; But having an error, how about the correct script? AI: How about the following modifications? I think that there are 2 modification points in your script. Modification points: Reason of your error is that folderID becomes undefined. When folderID has values, an error occurs at while (folderID.hasNext()) {. Because folderID is an array. When above points are reflected to your script, it becomes as follows. From: .reduce(function(p, c) { if (c[0] !== '' && c[1] !== '') { p.push( DriveApp.getFolderById(c[1]).getFiles() ); return p; } }, []); To: .reduce(function(p, c) { if (c[0] !== '' && c[1] !== '') { p.push( DriveApp.getFolderById(c[1]).getFiles() ); } return p; // Modified }, []); and From: while (folderID.hasNext()) { var file = folderID.next(); cnt++; data = [ file.getName(), file.getUrl(), ]; sheet.appendRow(data); }; }; To: for (var i = 0; i < folderID.length; i++) { // Added while (folderID[i].hasNext()) { // Modified var file = folderID[i].next(); // Modified cnt++; var data = [ file.getName(), file.getUrl(), ]; sheet.appendRow(data); } } If I misunderstood your question and this was not the result you want, I apologize.
H: Google Apps Script, MimeType.MICROSOFT_WORD will list only .docx I am using a Google Apps Script to list Word files in a folder, however this will work only for .docx files, not .doc. Any idea? var folderID = "ID#" var sourceFolder = DriveApp.getFolderById(folderID); var files = sourceFolder.getFilesByType(MimeType.MICROSOFT_WORD); // will list only .docx AI: How about this answer? Pattern 1: If you want to retrieve files with the extension of .doc, please modify as follows. From: MimeType.MICROSOFT_WORD To: MimeType.MICROSOFT_WORD_LEGACY Pattern 2: If you want to retrieve files with the extensions of .doc and .docx, please modify as follows. From: var files = sourceFolder.getFilesByType(MimeType.MICROSOFT_WORD); To: var files = sourceFolder.searchFiles("mimeType='" + MimeType.MICROSOFT_WORD_LEGACY + "' or mimeType='" + MimeType.MICROSOFT_WORD + "'"); References: Enum MimeType searchFiles(params) If I misunderstood your question and this was not the result you want, I apologize.
H: Filter column based in other column (using query prefer) I am trying to make a filter with a query based in a column, but I cannot make it works. https://docs.google.com/spreadsheets/d/1zKMW8vuyHRpS8eVEmRgAOg_dBQ0r2OIXnqV3_TFEm9o/edit?usp=sharing This is a template for something near to what I am trying to do. Imagine I have a lot of info (+70.000 rows) and I need to filter it to see only active workers. The only way it worked for me is with this manual formula: =FILTER(E1:H,,E1:E<>B1,E1:E<>B2,...) But maybe there is another way to do, for just add names in the "not actives" column, and automatically the active workers are updated. I don't know if it's clear, but I can add some info. This formula in Query worked to me for only one name: =QUERY(A2:H,"Select E, F, G,H where E !='"&B2&"'' and E is not null") But if I tried to make it with all the column: `=QUERY(A2:H,"Select E, F, G,H where E !='"&B2:B&"'' and E is not null") It's not working. Is there another way to filter all the data? AI: =FILTER(E2:H, NOT(COUNTIF(B2:B, E2:E)))
H: Is there a formula to list all possible 2 card combinations of 4 playing cards in Google Sheets? Example: Is there a formula to list all possible 2 card combinations of 4 playing cards? 4 playing cards: A♥ A♦ A♣ A♠ The result should be 6 combinations only (Not 4 x 4 = 16 Combinations): 1: A♥ A♦ 2: A♥ A♣ 3: A♥ A♠ 4: A♦ A♣ 5: A♦ A♠ 6: A♣ A♦ AI: =ARRAYFORMULA(QUERY(IF(QUERY(QUERY(SPLIT( TRANSPOSE(SPLIT(REPT(CONCATENATE(A1:A4&CHAR(9)), COUNTA(A1:A4)), CHAR(9)))&" "& TRANSPOSE(SPLIT(CONCATENATE(REPT(A1:A4&CHAR(9), COUNTA(A1:A4))), CHAR(9)))," "), "where Col1 <> Col2", 0), "select Col1", 0)< QUERY(QUERY(SPLIT( TRANSPOSE(SPLIT(REPT(CONCATENATE(A1:A4&CHAR(9)), COUNTA(A1:A4)), CHAR(9)))&" "& TRANSPOSE(SPLIT(CONCATENATE(REPT(A1:A4&CHAR(9), COUNTA(A1:A4))), CHAR(9)))," "), "where Col1 <> Col2", 0), "select Col2", 0), QUERY(SPLIT( TRANSPOSE(SPLIT(REPT(CONCATENATE(A1:A4&CHAR(9)), COUNTA(A1:A4)), CHAR(9)))&" "& TRANSPOSE(SPLIT(CONCATENATE(REPT(A1:A4&CHAR(9), COUNTA(A1:A4))), CHAR(9)))," "), "where Col1 <> Col2", 0), ), "where Col1 <>''", 0))
H: Output Google search results to a file Is it possible to output Google search results to a file. Just the site names and links written to a file line by line. Once could get the source file using curl and parse the HTML code but is there a Google service that does this? AI: SEOquake is an add-on for Firefox which seems to be doing that. It can export Google search results in a CSV file which you can open with Excel. The export file contains: Each listing URL Any additional data you set SEOquake to retrieve You can get the add-on here. Source: SearchengineJournal.com
H: Dot leaders in Google sheets Dot leaders are repeated dots that visually connect a label to the corresponding information on the same line, commonly used in tables of contents but also used in accounting formats, for example: Income ............. $ 100,000 Expenses ........... $ 80,000 Net Income ......... $ 20,000 In Excel, you can add dot leaders to any cell as follows: Right click on the cell and select Format Cells…. Select the Number tab. Under Category, select Custom. In the Type field, input @ *.. Click OK. After the cell's content (represented by the @ in the Type field input), this will display a space followed by however many periods it takes to fill the cell, i.e., a dot leader. Apart from the obvious way of just manually putting in a bunch of periods at the end of each cell, is there a way to do the same thing in Google sheets? AI: This is one reasonable solution. While not quite as tidy as the Excel version, it gets the job done: With the cell selected, select Format > Number > More Formats > Custom number format…. In the Custom number formats input field, insert @\ ........., including as many periods as needed to reach the end of the cell. Click Apply. With the cell selected, select Format > Text wrapping > Clip. This will make the dots reach the end of the cell without spilling over. You can then easily apply that to other cells by pasting formatting only.
H: Is there a way for Gmail to filter incoming messages where sender's address is in your Contacts? While Gmail does have some fuzzy intelligence with categorizing/flagging email when the sender address is in your contacts, is it possible to create a rule that explicitly performs some action of your choosing for any incoming mail where the sender's address is in Contacts? (Bonus: I want to also differentiate between contacts I manually enter vs the "auto-created contacts" that appear there.) Simple example: I want to create a label called "From Contacts" and have a rule that applies said label to any incoming mail where the sender's email (or reply-to, if possible) is one of any of the addresses in my Gmail Contacts. Is this possible using Gmail's rules tool? AI: This would be possible, but it would require adding/specifying each contact manually to the filter which will assign the label to the received emails. As for the differentiation between auto-added contacts and "created by you" contacts... this would be purely up to your tracking skills.
H: Google Forms addressed only certain people I would like to create a survey on Google Forms, addressed only and for certain and specific people. the user must enter the name, surname and other data. if this information does not match those in the database, the user will not be able to continue the survey. How can I implement this? AI: The functionality you seek does not exist. The best you can have is to filter out alien submissions in postprocessing, eg. in your spreadsheet you will have a little database of valid names and you will filter out form submissions against this database so if someone will submit the form and it's not on your list then it will get nullified.
H: How to pull data from a random cell on page load in Google Sheets? Basically, I'm just trying to figure out how to make a cell pull a random cell's value within a range at random when the page loads. For example, have cell A1 pull a cell at random from range B1:B20 and refresh when the page is refreshed. AI: =ARRAYFORMULA(ARRAY_CONSTRAIN(VLOOKUP(QUERY({ROW(B1:B20), RANDBETWEEN(ROW(B1:B20)^0, 999^99)}, "select Col1 order by Col2"), {ROW(B1:B20), B1:B20}, 2, 0), 1, 1))
H: How can I track the time it takes for someone to fill out a Google form? I am running a study for my thesis, and would very much like to track the time it takes to complete a Google form to compare against how long it takes to fill. AI: A sneaky way would be to ask the respondent to enter a current time as the first question of your form and the actual submission time will act as the end time. Then you just run a simple ARRAYFORMULA in your spreadsheet to get the duration: =ARRAYFORMULA(IF(LEN(A20:A), A20:A-B20:B, ))
H: Whenever I search for the meaning of a word, the suggestion "in hindi" and others appears on Google What the title says. For instance, searching on google.com/ncr (no country redirect): I speak none of these languages. I'm searching for the meaning of an English word, using English terms, I expect answers in English. Leaving apart questions of why are these Google search suggestions so stupid (specially considering I never click any of them, I never open pages in these languages and I know Google still tracks this despite my best efforts, and it also knows I'm nowhere near India or Pakistan etc, but still it won't learn), what can I do to block these, apart from blocking search suggestions entirely by means of an ad blocker? I've seen a very similar, almost duplicate question (Remove Google Search suggestions) but that one asks about Chrome's omnibox and is also open to other languages that the OP is familiar with. I'm personally not interested in any language other than the one I'm using to write the search query in. AI: For the time being, I came up with the following adblock rule: www.google.com##.erkvQe > li.sbct:has-text(/\S+ meaning in \w+$/) It's a little fragile, as the navigation keys up/down still picks the suggestions, and search suggestions having the string "meaning in " followed/ending with an word other than a language name will be hidden - e.g. resistance meaning in english will be (correctly) hidden, but resistance meaning in engineering or resistance meaning in electronics will also be, and that may be undesired. But for me at least, this will do fine. Demo: References: https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters https://github.com/gorhill/uBlock/wiki/Static-filter-syntax https://www.rexegg.com/regex-quickstart.html
H: What is the difference between accounts.google.com and myaccount.google.com (EDIT: Linked to https://support.google.com/accounts/thread/6363189?msgid=6363189) I have my old Email address X@gmail.com Initially I used an eight char password, but later I changed to an 11-char one. Using the username X and my (new, so 11-char) password to sign into https://passwords.google.com/ I see that I have 2 google accounts listed: Obviously the second one is X, the gmail account itself, and the first one is the implicitly created associated Google account that HOLDS it. Both passwords are non-viewable, but I can see clearly they are (old) 8 cdots. But the password I needed to get into this account is (new) 11 chars. What on earth is going on here? Years later I created a fresh Gmail email account (Y), which has become my Master account. Now I log in as Y thru https://passwords.google.com/ (this time I require 2FA using the Google authenticator app). Ok, 7 associated accounts this time. Let's have a look! (NOTE: The items behind the 4 grey boxes are temporary test accounts that are unused). There are three things I don't understand here: Y and Y@gmail.com are both absent. This seems incongruous. Y is not exhibiting the same behaviour as X was. X was self-referencing (albeit with mismatching password-lengths). Y is not! X appears in THREE locations now. X@gmail.com (under accounts.google.com) with (old) 8-char password X (under accounts.google.com) with NEW password X@gmail.com (under accounts.google.com and myaccount.google.com) with NEW password Could somebody explain this behaviour, and help me unpick this giant tangle? I want to get a clean account structure. AI: This question has been answered by Google representative. Please follow the link at the top of the question to see the answer. For reference, To summarise the Stack Exchange entry: You have multiple usernames and passwords visible when you go to passwords.google.com One account has both X and X@gmail.com saved The other account (Y) has everything by Y saved. Is that accurate? These are not sub-accounts, nor are they "bound" in any way to your Google account. They are just saved credentials for accounts where you signed inm with Chrome set to save them. You want to know why you have both X and X@gmail.com, with different passwords. The entries are created when you sign in through Chrome and have it set to save passwords. You can sign in to a Gmail account using the bare username or the full email address, but the saved password will only get updated when you sign in the same way. (Chrome's password manager does not know that they are usernames for the same account. For the same reason, you may have other entries for the same account, if you sign in using other alternate usernames.) You want to know why Y is not saving its own password. That is a security feature. Google will not save the password for the account currently signed in to Chrome sync, because it will unlock all of the other passwords. This restriction did not always apply, so some older accounts may have their own saved passwords. It is also possible that the password was saved when it was not the sync account, but the profile was later synced to the account and kept the saved password. You can, and should, delete any unneeded entries, especially if they have old, invalid passwords.
H: Rotate and duplicate row values in Google Sheets I'm trying to rotate values in a sheet and then duplicate the first value in the row as a header. For example: a | b | c | d would become: a | b ----- a | c ----- a | d Is there any way to do this with just Google Sheets commands, or do I need to use a script? AI: =ARRAYFORMULA(TRIM(SPLIT(TRANSPOSE(SPLIT(QUERY( TRANSPOSE("♥"&A1&"♦"&B1:D1), , 999^99), "♥")), "♦")))