text
stringlengths
83
79.5k
H: How to Query Google Sheet to Group Column Data Many to One I have a sheet with property managers and the id of the properties they manage: pid name email 34721 Aron Hall ahall@test.com 35173 Aron Hall ahall@test.com 35057 Bobby Blue bb@test.com 34689 Bobby Blue bb@test.com 34621 Bobby Blue bb@test.com Is it possible to query into a new sheet tab each property manager and all the properties associated with them as one record instead of a duplicate record for each property a manager has ? I'd like the new sheet to have rows like so: name email pid Aron Hall ahall@test.com 34721, 35173 Bobby Blue bb@test.com 35057, 34689, 34621 I know Google has its own query language but I'm not sure if my request if possible, if so what query functions might I use ? AI: Assuming you have the information above starting at column A row 1 you would use the following: =JOIN(", ",QUERY(A2:C6,"select A where B = 'Aron Hall'")) Replace the name with whatever name you are looking to check. JOIN is similar to the concatenate function, the difference being that it will add whatever delimiter you choose between the string values. In the case above it is set to ", " QUERY returns a series of valuesfrom the range you select, A2:C6 but this could be modified to SheetName!A2:C6 if you are working from another tab. The way it is set up above returns the value in column "A" in each row where the value in "B" in that same row is equal to Aron Hall. EDIT** Additional functionality as requested: On your new tab where you are displaying the manager names you can utilize =UNIQUE(B2:B) Simply swap B2:B for whatever column your manager names are in, this will populate a list below the cell you insert that function into with only one instance of each managers name. To update the query based on the managers name in the row you can use =JOIN(", ",QUERY($A$2:$B,"select A where B='"&$F2&"'")) You will need to change the range $A$2:$B to the appropriate range, and change the select based on where your information is. F2 just happened to be where I had the managers name populated, so you will want that to reference whatever cell the =UNIQUE formula drops their name.
H: Need to identify when a specific amount of time has past given a specific span of time I have a start date and a payout date which is 70 days from the start date. Throughout the year I need to know when each time 70 days has past and when it does is that date between the start and ending of a given month. For example, if the start date is 1/1/17 then 70 days from then is 3/12/17. On my calendar I'm looking to output data for the month of March because 3/12/17 falls in the month March. I've written formulas to check in every month column. Here's what I have so far: | A | B | C | D | 1| 1/1/17 | | | | 2| | 1/1/17 | 2/1/17 | 3/1/17 | 3| | | | output | A1 = start date B2 = Jan C2 = Feb D2 = Mar D3 = where to output =if(ROUND(MINUS(EOMONTH(D2,0),(A1+ROUND((EOMonth(D2,0)-A1)/70)*70)))>0,if(ROUND(MINUS(D2,A1))<ROUND((EOMonth(D2,0)-A1)/70)*70,"output",""),"") This is working for some of the month slots but not all of them. I'm looking for any advice on what functions are best to use when measuring and calculating dates in Google Sheets. AI: In cell D3 I owuld put the following formula: =if(EOMONTH($A1+70,0)=EOMONTH(D2,0),"Output","No report due") I assumed the $A1 to make sure that it works for all columns. The formula just compares the end of the month in the second row with the end of the month for the date in cell a1 + 70 days. If the date is 1/1/2017 then 70 days later is 3/12/2017, so the end of that month is 3/31/2017. So the phrase Output appears when the current month has an end date equal to 3/31/2017. It will work for all columns as long as they have a date in the 2nd row.
H: Google Spreadsheet Percentage of Price in Column After searching through several sites this seemed to be the best area for Google Spreadsheet questions and after browsing through the tag google-spreadsheets and searching for price I didn't see this asked before. Closest question found was How to write this Google Spreadsheet percentage calculation function?. So here goes, I have a four column spreadsheet that I would like to narrow down to three columns. The current spreadsheet looks like this: My end goal is to input Price and Percent Off and then calculate the End Price without having a hidden column, in this case Percent Price. Currently my process is: Price is input in column D Percent off is input in Column C Column B calculates the percentage with =round(D2*C2,2) Column A takes the percent price and subtracts from Price =(D2-B2) So my question is, how can I get End Price with two columns (Percent Off & Price)? AI: You can use the following in your End Price column: =FullPrice-ROUND(FullPrice*PercentDiscount,2) FullPrice = Column with the full price. PercentOff = Column with the percentage discount you want to apply.
H: Summarize the best options in another table I need help to create a sheet for a game. I am providing the INPUT, and I would like to create the OUTPUT in another tab (do not consider the colors, its just for ease of understanding): Mainly, the INPUT will be many locations with different items and each item with a % chance of being dropped in that location. The OUTPUT need to be a summary of each item (only once and ordered by Item name, if possible) showing the location with the higher drop chance. Is this possible? If no, how could I change my INPUT to achieve an OUTPUT like this? AI: The following works, but requires you to have a hidden column. First, a query, let's say in cell D3: =query(A3:C, "select max(C), B group by B order by B desc label max(C) ''", 0) This selects the maximal % for each name, and orders names alphabetically listing only once. The "label" part avoids an unnecessary column label. The output will have two columns: D and E. Column E is what it should be in your output. Column D is the "chance" that you want to have in G, but since it's in a wrong place, it may be hidden. Then in cell F3 use =arrayformula(vlookup(filter(D3:D, len(D3:D)), {C3:C, A3:A}, {2, 1}, False)) which will look up every nonempty value in column D (that is, a max %) in column C of the sheet, and return the corresponding value from A, as well as from C itself. That is, it gives the location and chance.
H: How to find all social media accounts using telephone number? My friend had purchased a SIM with new number for himself. It seems that this SIM number had previously been used by someone. It had social media accounts like Facebook, WhatsApp, etc. We have managed to find some of its existing accounts but we aren't able to find all of them. Is there any way to find all social media accounts like Facebook, WhatsApp, Snapchat and so on related to the phone number? AI: No, there's no central service to do this. You'll need to visit each social media app individually.
H: How do I count instances of a value in a column but only certain rows? I have a two dimensional array something like this: We'll call that sheet "Requirements". I have second sheet where the names are validated by the list on "Requirements". We'll call this second sheet "Attendance". On the "Attendance" Sheet, I want to be able to select names and show the total number of vegetarians, for example. If I selected "jeff", "ceri", "angus" and "lisa" on the "Attendance" sheet, the result should be 2. How do I associate the names on the "Attendance" sheet with counted and totaled values from the table on the "Requirements" sheet? AI: In the Attendance sheet you have a couple options, all based on the formula below: =COUNTA( QUERY(Requirements!A2:F, "select A where A matches '" & JOIN("|", A2:A) & "' and B = 'Yes'", 0)) The first is to use that formula for each dietary restriction and make a table which shows the matches for each. The second is to have a cell, perhaps C1 have a list of the restrictions. This allows you to select what count is being returnedd: =COUNTA( QUERY(Requirements!A2:D, "select A where A matches '" & JOIN("|", A2:A) & "' and " & SUBSTITUTE(ADDRESS(1,MATCH(C1,Requirements!A1:D1,0),4),1,"") & " = 'Yes'", 0)) OR use the formula above and change the C1 reference to the column the formula is in for the scenario where you have a chart of the restrictions.
H: What is Google Dictionary? Google Dictionary only exist in the form of a Google Chrome addon. Does the addon use Google Translate's definitions? AI: It was initially a separate service that spun out of Google Translate but is now incorporated into Google Search. To invoke it, use the define keyword with the term you want to get a definition of. Example: define dictionary The Chrome extension merely allows you to highlight words and get a pop-up with Google's dictionary definition without going to Google Search separately. More information: Wikipedia
H: Sort a Google Spreadsheets so it returns 'alternating' values in a column I have a list of hundreds of students that contains the following data. The only two values that will appear in the gender column (col 3) are male or female: Current List fName | lName | Gender | id# ---------------------------------------- Mike | Jones | male | 123456 Todd | Smith | male | 987654 Kim | Holly | female | 753951 I want to sort the sheet so it returns alternating values (male/female) in the gender column. Desired List fName | lName | Gender | id# ---------------------------------------- Mike | Jones | male | 123456 Kim | Holly | female | 753951 Todd | Smith | male | 987654 AI: I would write a custom function for this, for example the following, which accepts a rectangular range and the column by which to sort in alternating way. In your example if would be =alternate(A2:D4, 3) The logic is simple. The rows in which the key column is the same as in the first row are placed in arr1; the rest go in arr2. Then the array output is filled by taking rows from each of these, alternatively. It may well happen that one has more rows than the other; this is accounted for (the extra rows without a pair appear at the bottom). If this is applied to the entire columns, like A2:D, it's best to filter out empty rows; e.g. =alternate(filter(A2:D, len(C2:C)), 3). Custom function function alternate(arr, column) { var key1 = arr[0][column-1]; var arr1 = arr.filter(function(row) { return row[column-1] == key1; }); var arr2 = arr.filter(function(row) { return row[column-1] !== key1; }); var output = [], i = 0, j = 0; while (i < arr1.length || j < arr2.length) { if (i < arr1.length) { output.push(arr1[i++]); } if (j < arr2.length) { output.push(arr2[j++]); } } return output; }
H: Google Drive files in Google search result But even being publicly available, our files will not show up in a Google search right? I would like them to show up. Or we have to publish that Google Drive link in some webpage describing the files, so they can be actually reached thru Google search? AI: If you want to get your google drive files in google search, then you need to paste your share(public) links in sites like pastebin or blogger. After few days it will definitely show up in google search.
H: In Google Sheets how can I conditionally color a cell value if less than another cells value? The Sheet I am working with has a multiple columns, each with a range of integer values. I would like to check to see if that integer value is less than another cells integer value, and if so conditionally color it. I've gotten the conditional formatting working, but it's coloring cells that shouldn't be colored. Any thoughts? Google Sheet: https://docs.google.com/spreadsheets/d/1kr3uM_W5PjTD2BCBFufl7OR1Zqm2x8oP7uEPM-zHN5Q/edit#gid=0 AI: When you use a relative reference, such as B17, to format a range, it will be used in a relative way. That is: the top cell of the range, B2, gets compared to B17 the cell below it, B3, gets compared to B18. B4 gets compared to B19, and so on... B7, highlighted on your example, is compared to B22 which is hidden on the sheet, but presumably B7 < B22 holds true. If the goal is to compare all cells in the range to B17, use the absolute reference B$17 as pnuts suggested.
H: How do I calculate a sum based on a column number which is the value of another cell? I want to summarize in line 8, all the values in A2:A6. I want the function to get the column number from another cell (B8). Same for line 9. I want A9 to summarize b2:b6. In other words: How to add column number argument to sum function in Google Sheets? AI: This is a job for the INDIRECT function. For the sum in A8, use =SUM(INDIRECT("R2C" & B8 & ":R5C" & B8; FALSE)) Likewise, for the sum in A9, use =SUM(INDIRECT("R2C" & B9 & ":R5C" & B9; FALSE)) Explanation: INDIRECT lets you construct cell addresses from dynamic input, e.g. from other cells. It supports both A1 notation (as in A2), and R1C1 notation (like R2C1, for "row 2, column 1"). In this case, we are constructing a range string: R2C1:R5C1. The 1 is the dynamic part, which is being picked up from cell B8. So all we have to do is concatenate the string from the parts R2C+ [contents of B8] + :R5C+ [contents of B8]. The & is the string concatenation operator in Google Sheets. See the example spreadsheet I set up, and the documentation for INDIRECT.
H: Add up Time Used in Minutes for Spreadsheet or Doc Table I have looked at adding or subtracting time for spreadsheet, but haven't found a way to easily do this yet: Suppose I start the clock at 7am. I would like to have a way to calculate the accumulated minutes for the tasks to be done and display what the current time should be after having completed the said task (input as minutes). In the example below, A is the input in minutes, B is the calculated current time from the minutes from 7am. It goes on down the rows. I expect some formatting manipulations would be need as well for time. A | B | C 0min | 7:00am | Start 10min | 7:10am | warmup 5min | 7:15am | techniques 4min | 7:19am | first drills Hope this is something easy. I just can't quite figure where to start looking correctly. AI: With A3:An formatted as number as shown and B2:Bn formatted as time as shown then in B3: =B2+A3/1440 copied down to suit should serve.
H: Totally Blocking Spam To Gmail Account I originally posted this query elsewhere but it was suggested to me that this was a more appropriate community. We use a number of Gmail accounts for emergencies (e.g. issues with in-house email server) for the support staff. However we are getting an increasing amount of spam (dating sites, credit cards, loans, etc.). Blocking the sender results in the emails going into the spam folder which means manually deleting them to avoid accidentally deleting a valid email (via a block delete) that has gone into the spam folder. Is there a way of fully blocking them so they do not even get as far as the spam folder? AI: You could create filter that deletes the unwanted emails from specific senders. Click the cog wheel → Settings → Filters and blocked addresses → Create a new filter. In the From field, enter from:(offendingsender1@domain1.com OR offendingsender2@domain2.com OR offendingsender3@domain3.com) ... you get the idea, first from:(, then list all offending addresses separated by OR, finish with a ). Test the search expression by clicking the search button - this will close the settings dialog, and list all matching messages. Make sure the messages shown are those you want to delete, and nothing else. To go back to filter creation, click the More button → Create filter. Click Create filter with this search, select When a message arrives that matches this search: Delete it. Click Create filter, and you're done - offending incoming messages will now be deleted directly.
H: What's the number over the thumbnail? I'm seeing those numbers over some videos. Usually the number is in the range from 1 to 9, but today I saw 112, or even <3 Could someone cast some light over what this is? They only seem to appear over videos from subscribed channels, and not always appear, although they seem to be more frecuent over new videos. AI: Those are just custom thumbnails. The user RevenantL0L has a template with the "mark" in his graphics program (probably Photoshop) which they use for every video.
H: Gmailify vs simple forwarding. What's the difference? I have a main Google account and two other email addresses I'd like to manage through the main account. One is a second Gmail address and the other is a @outlook.com address. I understand that I have two options: Use Gmailify (possible for one email address only) Forward each email address to the main one and add them as "Send mail as", so that I can send emails from them too. Obviously, if I were to choose option 1 for one address, I'd have to choose 2 for the other as only one other email address can be "Gmailified". Is there any important difference between the two options, or any difference at all? AI: The difference between Gmailify and forwarding your mail is that Gmailify will import all your mail and also keep your accounts synchronised. That means that if you make changes to your imported mail (like label changes, reading, or starring emails) these changes will be exported back to your other account. As you have correctly noted, only one account can be linked with Gmailify. Linking another Gmail account with Gmailify is not supported, so in your case you can only link your outlook account with Gmailify or use forwarding for both. If you use Gmailify you will automatically get a "Send mail as" address configured for that account.
H: How can I select a subset of random elements from a list in Google Sheets? Example: Select two random elements from the list below. A chosen element should not be chosen twice. AI: There is a RANDOM function in Google Sheets, and it could definitely be used here, but it would be a messy formula. I prefer writing these kind of things as scripts. Click Tools → Script Editor, and paste this code: function selectRandomElements(fromValueRows, count) { var pickedRows = []; // This will hold the selected rows for (var i = 0; i < count && fromValueRows.length > 0; i++) { var pickedIndex = getRandomInt(0, fromValueRows.length); // Pick the element at position pickedIndex, and remove it from fromValueRows. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice var pickedRow = fromValueRows.splice(pickedIndex, 1)[0]; // Add the selected row to our result array pickedRows.push(pickedRow); } return pickedRows; } function getRandomInt(min, max) { // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min)) + min; } /* This is merely to test our function. It can be run directly from the script editor. Open View -> Log to see the results */ function testRandomElements() { var fromValues = [["Bob"], ["Jenny"], ["Alex"], ["Steven"], ["Monique"]]; var result = selectRandomElements(fromValues, 2); Logger.log(result); } The function in the script basically takes a list of values and a count as inputs, and returns count randomly selected values. This will give you access to a function selectRandomElements, which you can use from your spreadsheet, e.g. =selectRandomElements(A2:A6; 2) This will give you two random values from the A2:A6 range. See the example spreadsheet I have setup to demonstrate. Note: The random selection will only happen once. That is, as long as the input data, and the formula, is the same, the two selected rows will be the same. If you want to rerun the selection at intervals, see this answer for a hint.
H: How to have Gmail reply with a document when I receive an email to a specific address? I use Gmail to collect mail from several addresses. I would to set up an address whose only purpose is to reply with a copy of my CV / resume (and, possibly a covering letter). Can it be done? If so, how? AI: Well, I'm oversimplifying and copy/pasting, but here's the general concept. https://developers.google.com/gmail/api/quickstart/apps-script Write a Google Apps Script Open Google Drive in your web browser. Click New > More > Google Apps Script. Start a blank project. Create a script according to the example, with these functions: startSchedule: Code to begin running checkMail every hour: Gmail.Users.newTrigger("checkMail").timeBased().everyHours(1).create(); checkMail: Code to look for new emails, and if received call the next function mailMyResume: Send an email with your resume attached, to the email address provided as an argument Turn on the Gmail API and start the Schedule In the Apps Script editor, click Resources > Advanced Google Services. Locate Gmail API in the dialog and click the corresponding toggle, setting it to on. Click the Google Developers Console link. Enter "Gmail API" into the search box and click on the corresponding entry in the results. Click the Enable API button. Return to the Apps Script editor and click the OK button on the Advanced Google Services dialog. In the Apps Script editor, click Run > listLabels. The first time you run the sample, it will prompt you to authorize access. Click the Continue button. Click the Accept button. To view the script's output, click View > Logs. IFTTT If the coding doesn't sound like fun, see if IFTTT has a solution: https://ifttt.com/gmail
H: COUNTIF formula + reference + array Here's a copy of the Google Sheets I'm working on and here's what I'm trying to do: I need a COUNTIF formula that would count as 1 if the sum from columns R to AD in the Failed sheet is less than 8. There are five potential responses to columns R to AD and each is assigned a weight: 0 - Not at all 1 - To a slight degree 2 - To a moderate degree 3 - To a great degree 4 - All the time Based on the current data, row 30 in the Reports sheet should count as 2. But how do I do that? AI: It looks like the correct countif formula is in your reports sheet right now - but in answer to your comment - if you want to simplify that huge if statement, you can use arrayformula, and vlookup or substitute to trim the formula to this: =if(istext(B2), SUM(ARRAYFORMULA(VLOOKUP(R2:AD2,{"Not at all",0;"To a slight degree",1;"To a moderate degree",2;"To a great degree",3;"All the time",4},2,FALSE))),) for my example i gave it a short lookup table, but i included it as a literal array so that you dont have to create a helper column or
H: Copy last row to another spreadsheet upon form submission I would like to copy lastRows from 'Source1' sheet to 'Destination1' sheet. Triggers are on every change form 'Source1'. The code below can help me to do the job. function copyLastRow() { var target = SpreadsheetApp.openById('xxxxx-keyfile').getSheetByName('Destination1'); // copy data into this file & sheet. var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Source1'); // name of source sheet. var lastrow = sheet.getLastRow(); var sourceData = sheet.getRange(lastrow, 1,1, 37).getValues(); target.appendRow(sourceData[0]);} I also set up another function as below. This function is for automatically clearing data from 'source 1' on specify time (e.g: everyday at 1 am). function clearRange() { var sheet = SpreadsheetApp.getActive().getSheetByName('Source1'); sheet.getRange('A2:F').clearContent();} When function clearRange() run at 1 am on everyday, data on 'source1' with range A2:F will be clear. At that moment, the range 'A1:F1' will be as the LastRow and it will be copied to 'Destination1' as the copyLastRow() function is still running. What I would do is the copyLastRow() function don't copy the range A1:F1 as the LastRow. I'm quite new in not only GAS but also JS...so I would appreciate if anyone could understand and help me to solve my problem. The mentioned code above was copied from this post. AI: Just check to see if the first item in the sourceData Array is not the same value that is in A1 before you copy the data over. I am assuming this is a title row and that you don't have anyone named "name" in your data set. var sourceData = sheet.getRange(lastrow, 1,1, 37).getValues(); if (sourceData[0][0] != sheet.getRange(1, 1).getValue();){ target.appendRow(sourceData[0]); } }
H: How can I create a notification rule if new row contains text? In Google Sheets, I would like to create an email notification rule whenever a new row contains a specific text, e.g. ".de". However, as far as I can see, it is not possible to achieve this using the notification rules interface: AI: I would do this with a google apps script tied to the onEdit trigger: function onEdit(e) { var myWord = '.de'; var myEmail = 'me@example.com'; var cellData = e.range.getValue(); if (cellData.indexOf(myWord)>-1){ MailApp.sendEmail(myEmail, 'subject string', 'body string'); } }
H: If I forward an attachment in Gmail, does that count toward my storage quota? If I forward an attachment in Gmail, does that count toward my storage quota? In other words, if I receive a 20 MB attachment and forward it to someone else, does that count as 20 MB or 40 MB in my storage quota? AI: Yes, if you forward an attachment in Gmail it the attached files count toward your storage quota because forwarding an attachment makes a copy of the original message so you will have the original file and a copy.
H: Why is SUMIF working "selectively" (i.e., not working sometimes)? SUMIF is letting me down "selectively" and I'm not sure why (or I am letting SUMIF down, not sure which). Please see two spreadsheet examples: This one with original sample data. And this one with a smaller made up set. I am using the exact same formula in each: =SUMIF(B2:B,"rdc",C2:C) On one sheet it works, on the other, well, not so much. AI: If you are after any cell which has ONLY "rdc" (without the quotes), then your formula is fine. If you want any cell which has rdc anyplace in the string, then change it to: =SUMIF(B2:B,"*rdc*",C2:C) If rdc should stand alone, and not be in the mniddle of a word, then =SUMIF(B2:B,"* rdc *",C2:C) For cells starting with rdc: =SUMIF(B2:B,"rdc*",C2:C) Basically, you need to add a wildcard. Then there is the question of what about upper case letters? These are not case sensitive.
H: Combine two filter actions I use filters to organise emails into 'folders'. eg all emails to/from my children go into my 'Children' folder. I use a filter to add a 'Children' label to outgoing emails to them and a separate filter to add the 'Children' label to any received emails from them so that any email I send to them or they send to me all finish up in the same folder. Does anyone know how to combine these two actions into one filter? Currently I have two filters every time I send/receive emails that I need to put into the same folder, eg to/from specific companies, forums, etc. etc.? AI: I do something similar with my own kids, although I have labels for each of them. You should be able to do something like this: Has the words: (to:myfavoritechild@gmail.com OR from:myfavoritechild@gmail.com) Note that OR needs to be in all-caps for it to be recognized properly. You can string several of these together like so: Has the words: (to:myfavoritechild@gmail.com OR from:myfavoritechild@gmail.com) OR (to:my2ndfave@gmail.com OR from:my2ndfave@gmail.com) OR (to:cinderella@gmail.com OR from:cinderella@gmail.com) There's a lot of space, but not an infinite amount, so I don't know how many times you can do that. I generally prefer not to do that.
H: Public "in a relationship" Facebook status without news feeding? I changed my relationship status a few weeks ago from "single" to "in a relationship" (leaving the person-in-question box empty). Today I want this info as-is to be publicly accessible on my profile, but not have it plastered on other people's news feeds. How do I accomplish this? Will it suffice to change the "only me" privacy setting to "public"? AI: When you change any activity, and don't want it to appear in friends News Feed, keep the audience "Only Me", After sometime (around 24-hrs) change the audience to "Public" or "Friends" or any custom. It will not appear to anyone's Timeline, but whenever someone visit your profile they will be able to see latest update. So, yes, it will suffice to change the "Only Me" privacy setting to "Public".
H: How to customize eBay's End of Auction emails? As a seller, I'd like to customize eBay's End of Auction email. I couldn't find any up-to-date information about it apart of some old eBay FAQ page which says: To customize your End of Auction email, go to My eBay: Click the My eBay button at the top of any page. You may be asked to sign in. In the left-hand navigation, click the "eBay Preferences" link under "My Account". Under "Seller Preferences", click the "change" link for the "End of Auction and Transaction email". However when I go to Seller Preferences, it reads that the settings has been moved to Manage communications with buyers section: When following the link, I see some useless page with nothing to change apart of the invoice. Then following the invoice section I cannot upload any logo and the Custom Message box is grayed out as below: Is Customising Invoice page the right section to change eBay's End of Auction email? If so, does it mean it cannot be changed until I purchase eBay Shop subscription? If it's not the right place, where do I customize eBay's End of Auction emails? AI: According to eBay specialised department/team, the system is designed in a way that the edit option is not there for customizing afterwards. So that means it is not possible to customize eBay's End of Auction or End of Transaction emails without purchasing eBay Shop subscription and as of now this option is available for the shop owners only. Therefore the mentioned Custom Message option in Customising Invoice section relates to Logos and branding and it is available to eBay Shops subscribers only. It may be possible to customize the message on the PayPal site as mentioned in the FAQ page: You can also customize your eBay End of Auction email within your Profile section on the PayPal site. Although it's best to check with PayPal support if there is such option. Please also note that the mentioned FAQ is referring to US site only and there could be differences in few features for other sites (such as for the UK site).
H: How to sort Trello cards by date added Trello is rad. But one thing I haven't figured out: How to sort cards in a list by the date that the cards were added to the list (or to the board)? Also, is it possible to show (as a custom field?) the date that a card was added? AI: Trello support tells me: This isn't possible natively, but there's a popular Chrome extension that does allow for this: Ultimello I've since downloaded the extension, and it seems to do the job. How it works: You can sort the cards by Due Date, Title (Alphabetically), Votes, Labels, and Creation Date. The Apply current sorting menu item will save the current sorting in Trello, which means that current cards order will become the actual cards positions. The one thing missing: an indication (custom field?) on the card for when it was added to a list. Without this, it isn't obvious to users of the board that the list is now sorted chronologically. Give an answer to this related question if you know how to implement this functionality.
H: How can I stop apostrophes in names from tripping up formulae? I'm using a formula to run through a list of names, compare them to a master list and check associated values for the names that appear on both. =COUNTA( Iferror(QUERY(Requirements!A2:F, "select A where A matches '" & JOIN("|", Attendance!A2:A) & "' and B = 'Yes'", 0),)) However, some of the names contain apostrophes (eg. O'Malley) and this is killing the formula - Is there a simple way to escape or replace the apostrophe in the name either in the original lists or as the formula reads it? AI: According to Google's Query Language Reference, string literals should be enclosed in either single or double quotes. Examples: "fourteen" 'hello world' "It's raining". You are joining the Attendance values by | only, which again is enclosed in 's, so if Attendance!A2:A was Larsson O'Malley Taylor the result of the "... '" & JOIN("|", Attendance!A2:A) & "' ..." would be 'Larsson|O'Malley|Taylor'. As you can see, this leads to unmatched ' - the string seemingly ends and begins with a ', but the apostrophe in O'Malley shortcuts the string so that it is really 'Larsson|O'. You could use "" instead of ' when creating the string: =COUNTA( Iferror(QUERY(Requirements!A2:F, "select A where A matches """ & JOIN("|", Attendance!A2:A) & """ and B = 'Yes'", 0))) Note how the double quotation mark "" allows the character to be escaped, so it does not short-circuit the string. This would allow O'Malley to be counted, but would be trouble if you have a name that includes ". To avoid all sorts of character issues, your formula should be rewritten so that it does not rely on creating a query by concatenating input strings.
H: Google Sheets: Check a number of cells for a specific range of dates I am trying to check if a number of cells, containing multiple rows and cols, contains dates from another range (in this case days off). If the dates match I'd like to color the cell red using a conditional comment. | Col A | Col B | Col ? ---------------------------------------- 1 | Dates 1 | Dates 2 | Days off ---------------------------------------- 2 | ma 20 feb. | ma 6 mrt. | wo 22 feb. 3 | wo 22 feb. | wo 8 mrt. | do 2 mrt. 4 | do 23 feb. | do 9 mrt. | do 9 mrt. 5 | di 28 feb. | di 14 mrt. | do 16 mrt. 6 | do 2 mrt. | do 16 mrt. | 7 | vr 3 mrt. | vr 17 mrt. | So in the example above cell A3 matches an off day and should be coloured red. Same goes for cell A6, cell B4 and cell B6. Any help would be much appreciated. AI: Assuming Column ? is ColumnF, please select A:B and in Conditional formatting apply a Custom formula is of: =match(A1,$F:$F,0) and select red. MATCH The above is case insensitive but you may need to be careful with spaces.
H: Error message when trying to make deploy of CommCare app "whoops, that didn't go through. Reload the page and click "Make New Version" I'm trying to make a new build of a CommCare application and I received the error message "whoops, that didn't go through. Reload the page and click make a new version." I tried to follow those exact directions but I was able to reproduce this message 4 times. I've recently deleted a module in CommCare and I assume this is related. Can someone help me figure out what is causing this error? AI: "whoops, that didn't go through..." is the default blanket error message that CommCare HQ will generate when something went wrong and it wasn't able to tell you what. Generally in this situation the best option is to "report an issue" so that the platform developers can figure out what's going on and introduce a better error message for future occurrences of the problem. If you are blocked, I would recommend using the "revert" feature to go back to a previous working version of the application, recognizing that this will cause some of your recent work to be lost.
H: How to set up case management for a module and form in CommCare to only update the User Case Data I'm setting up a module and a form in my CommCare application that should only update the User Case data. I've set up the User Case data tab to update the User Case properties that I would like to store. However, I'm not sure if I should configure the case management tab in CommCare to "update or closes a case" or if I should leave that tab as "does not use cases." Is there a correct way to configure the case management tab so CommCare knows I'm only updating the User Case in this module and form? I checked the docs here: https://confluence.dimagi.com/display/commcarepublic/User+Case but didn't see a specific instruction about this. AI: For this, you can leave the Case Management tab as "does not use cases." This controls the cases of the case type you've selected in your module. The User Case will automatically be loaded into your form when you choose a form that has User Case setup.
H: How to save label text as a case property to be referenced later in a CommCare application I'm making a CommCare application that creates action item child cases when certain questions are answered incorrectly by an end user. The end user needs to be able to reference these action item child cases in a separate module. I would like to be able to reference the question text of questions that were answered incorrectly, specifically I'd like to save that question label text as a case property in order to reference it in that later module. Is there logic or documentation available that I could reference to save the question label text as a case property? AI: One way to accomplish this is by loading the label text in a hidden variable's Calculate Condition and then reference that variable later. Create a hidden variable with your label text Add the label text to the Calculate Condition of a hidden variable question type. For example, my_label_text Reference that variable in a question's label text box You can drag and drop that hidden variable, my_label_text, into the label portion of the question: Save the hidden variable to a case property You can then add logic to save my_label_text as a case property in the Case Management tab. In your scenario you may also want to add logic to save whether or not the question was answered properly.
H: How do I add current date to a document footer automatically in Google Docs? I want to add the current date to a document footer automatically in Google Docs. All I found was this script: /** * The onOpen function runs automatically when the Google Docs document is * opened. Use it to add custom menus to Google Docs that allow the user to run * custom scripts. For more information, please consult the following two * resources. * * Extending Google Docs developer guide: * https://developers.google.com/apps-script/guides/docs * * Document service reference documentation: * https://developers.google.com/apps-script/reference/document/ */ function onOpen() { // Add a menu with some items, some separators, and a sub-menu. DocumentApp.getUi().createMenu('Utilities') .addItem('Insert Date', 'insertAtCursor') .addToUi(); } /** * Inserts the date at the current cursor location in boldface. */ function insertAtCursor() { var cursor = DocumentApp.getActiveDocument().getCursor(); if (cursor) { // Attempt to insert text at the cursor position. If insertion returns null, // then the cursor's containing element doesn't allow text insertions. var date = Utilities.formatDate(new Date(), "GMT", "'Atualizado em: 'dd-MM-yyyy' 'HH:mm:ss"); // "yyyy-MM-dd'T'HH:mm:ss'Z'" var element = cursor.insertText(date); if (element) { element.setBold(true); } else { DocumentApp.getUi().alert('Cannot insert text at this cursor location.'); } } else { DocumentApp.getUi().alert('Cannot find a cursor in the document.'); } } But I have to press a button in the menu it creates, and the date is added to the cursor location. What I want is to add it to the footer every time the doc is opened. AI: I was really surprised Google doesn't have an add date feature. This would work. Do note that it clears the footer and adds the current date every time you open the document for editing. It should run with simple triggers, but you may have to run it from the scripts interface the first time to give it permissions. function onOpen() { var doc = DocumentApp.getActiveDocument(); var footer = doc.getFooter(); //gets the footer footer.clear(); //clears all data in footer //Get date var date = new Date(); var month = date.getMonth()+1; var day = date.getDate(); var year = date.getFullYear(); var hour = date.getHours()+1; var minute = date.getMinutes()+1; footer.appendParagraph(month+'/'+day+'/'+year); //adds date to footer }
H: Finding impact factor of journals using Google Recently, I saw someone searching in Google a phrase such as "Econometrica impact factor" or "Quarterly journal of economics impact factor", and it immediately showed the answer in huge digits. But, when I search the same phrase in my computer, I only see a link to the homepage of the journal, where sometimes I can find its impact factor, sometimes not. I thought that maybe there is a problem with my Google settings, so I tried to search in Google from a private browser window, but it did not help. I tried both in Firefox and in Chrome and got the same result. Why does Google behave differently in different computers? And what can I do to have Google return the answer to me? AI: Short answer Only Google (the company, actually the people participating on the decision making - implementation processes) can answer why. Explanation AFAIK there isn't document publicly available about this specific Google design decision, but assuming that you mean something like "how this works", by one side Google has a lot of domains, by the other side, by default Google (the web search service) redirects users to a regional or localized domain when some conditions are met. To avoid being redirected you would try http://www.google.com/ncr where ncr stands for no-country-redirect, but this not always work for things like you are looking for. Another "trick" or "hack" is to include the hl=en parameter-value on the URL. Example "Original" Taken from https://www.google.com.mx/search?q=Econometrica+impact+factor few seconds ago. "Hacked" Taken from https://www.google.com.mx/search?hl=en&q=Econometrica+impact+factor few seconds ago. Please note that the results show on the first screen shot are in Spanish, while the second shows results in English. This is because my Google account language is set to use Spanish as the main language.
H: How to edit the subtitle/tagline in mobile Wikipedia? In mobile version of Wikipedia, some articles have a subtitle AKA tagline. For example, in the article about Executive Order 13769 it says "United States executive order about foreigners entering the U.S." The problem is, I can't find how to edit it. The text it contains cannot be found in the page source. AI: That's the description field from Wikidata, a sister site of Wikipedia that stores information about articles in structured data that can be used easily by machines. That article's Wikidata item is Q28543928. The link for any Wikipedia article can be found by clicking "Wikidata item" on the left-side toolbar in desktop view, but I don't see the link on the mobile version.
H: Blocking email address that is surrounded by quotes How do I block repetitive scam emails to my hotmail.com email account from a source address with invalid characters in it? I am receiving constant emails many times per day that look like this: This email is obviously a bogus, unwanted piece of junk. I made the mistake of attempting to unsubscribe by replying as instructed. This only increased the frequency in which I receive them, assumedly by making it clear to them that my account is active. I have attempted to use Hotmail/Outlook features to block this address; however, normal means do not work. The address will not be added to my Blocked List automatically, nor can I add it manually. This appears to be because the email address contains quotes surrounding it, which is not considered to be a valid address. How is this email address even possible? How can I successfully block this address and these emails? AI: The issue has solved itself. After several days of receiving this junk mail in my inbox, mail from this sender has now started appearing in my junk folder. It is possible that this issue was fixed in the web app itself.
H: Filtering an instance by a case property in my CommCare app I am working on the CommCare mLabour app, which tracks women from the onset of labour through delivery via digital partograph. For the contractions graph, I need to write an instance which filters to cases whose contraction intensity is 'low'. In the app, this case property is contractions_dur = 'low'. I tried the following path, and am getting an xpath error in the app: instance('casedb')/casedb/case[@case_type='Indicators'][index/parent=current()/@case_id][@status='open']/[contractions_dur = 'low'] The error message says invalid xpath 'expected beginning of path' The only CommCare Help Site page I can find about instance syntax is this one about CommCare session instance paths. What is the proper syntax for an instance filtering for a specific case with a certain case property value? AI: If you're filtering cases, you want an expression that ultimately returns a set of cases. The first part of the expression, instance('casedb')/casedb/case, gives you all cases on the phone. The expressions in square brackets then filter the cases by case type, parent (you're limiting to cases that are children of the "current" case, which is the one you selected from the case list), and open/closed. [@case_type='Indicators'] [index/parent=current()/@case_id] [@status='open'] The /[contractions_dur = 'low'] is what's throwing the error. The / says to go another level deep, but I suspect what you want is to just add the contractions_dur as a fourth constraint, on the same level as the others. So try dropping the slash: instance('casedb')/casedb/case[@case_type='Indicators'][index/parent=current()/@case_id][@status='open'][contractions_dur = 'low']
H: Why is the Navigation Bar on GitHub.com Black when I am Signed In? Recently, the navigation bar of GitHub.com became black for me, but only when I am signed in. The below screenshot demonstrates what it looks like when I am signed in. The below screenshot demonstrates what it looks like when I am signed out. Previously, the color of the navigation bar was the same (white) regardless of whether I am signed out or signed in. In addition, according to the latest screenshot from their Blog on February 1, 2017, the navigation bar is white for them. The below screenshot is taken from GitHub's Blog on February 1, 2017. So my question is, why is my navigation bar black only when I am signed in to GitHub.com, and how can I revert it back to being the same color as when I am signed out? AI: It's a recent feature/change. Initially I thought it's because of the Black History Month which is celebrated in February in Canada and USA. It's a long term change. This is what they replied me: There aren't currently plans to revert this change (it isn't for Black History month), but I'll definitely pass your comments on to our design team for their consideration :) So, it's just a design change. There are ways to remove it, just by removing the header-dark class or installing an extension which does that.
H: Expanding checkbox questions in CommCare case data export I'm trying to create a case export in CommCare HQ of data collected via a CommCare mobile application. I've noticed that when I am doing a form export there is the option to expand the check box questions in the excel export of data. However I do not see the same option when I try to make an export of case data. Is there an option to expand check box questions when doing an export of case data from CommCare HQ? AI: The default settings of your project do not let you split mulitselect questions in case exports. This is because your case does not know which questions correspond with which case properties (because it could be multiple questions). However, we do have a feature preview that you can enable on your project that will allow you to define how you would like to split your case property in a case export. You can enable this setting by going to https://www.commcarehq.org/a/your_domain/settings/project/previews/ and checking the "Split multi-selects in case export" option. Then hit Update Previews. When that is enabled you should see an extra column in your export that will allow you to select the Type. Here you select "multiselect." Then you can add your options. Example below:
H: Getting desired number of terms in the Taylor series in Wolfram Alpha I want a desired number of terms in the Taylor series expansion of a function. How can I write the query for this? Presently whenever I write it, it stops after a few number of terms. For example, here is the expansion for sin x: How to specify we want more terms than this? P.S. The actual query. AI: You have to enter the query in a slightly modified form, which will accept a specific number of terms. For example: Series[Sin[x], {x, 0, 11}] will produce the output The final number within the query represents the nth power of the expansion. Another example - A screengrab of a different number of terms:
H: After a Google Sheets update IMPORTRANGE errors everywhere I noticed that on Monday (2/13/17) Google made an update to Google Sheets, the filters are now a different color (green). After this update, the IMPORTRANGE function has just been volatile. It doesn't work. I remember this used to be a problem two years ago, I thought they fixed this. Where do I complain to Google? AI: Complain to Google There are several ways to complain to Google. From Google Sheets Open a spreadsheet Click on Help > Report a problem Fill up the feedback form and submit it From the Google Docs Editors Help Go to https://support.google.com/docs#topic= Click on Help Forum Or just go directly to https://productforums.google.com/forum/#!forum/docs If you are G Suite user Go to https://connect.googleforwork.com or Ask your domain administrator to submit a support ticket
H: Does Facebook notify a user when their picture is removed per privacy-violation request? I found a few pictures of my kids on Facebook that I would like to file a child privacy take-down request. What happens when Facebook actually removes the pictures... is the picture-poster notified? In my social context, it's going to be quite obvious that I filed for a take down request. I'm hoping that the user forgets about the photo and it silently disappears. AI: Yes, the user will be notified. Also user's account will not work like normal (he will be able to navigate a limited number of Facebook pages) for 12-24 hrs. But he will not get to know who marked the image as spam. (As they are your kids, he might guess it.) The picture will be deleted by Facebook from his timeline or the place where you have marked it as spam, but you know once some picture is uploaded to the internet, it remains on the internet. (Facebook will also keep it in their database but will not be visible to anyone.)
H: Is it possible to configure the date widget in CommCare to use DD/MM/YYYY instead of MM/DD/YYYY? If your form has a date question (where the user scrolls through a calendar type widget to select a date), this shows up as MM/DD/YYYY. Is there any way to make that use the DD/MM/YYYY format? AI: The ordering of the date fields (day, month, year) is actually determined by the default language settings on your phone. To get the dates to appear as MM/DD/YYYY, go to the Android Settings -> Language & Input and set the Language to "English (United States)". To get the dates to appear as DD/MM/YYYY, go to the Android Settings -> Language & Input and set the Language to "English (United Kingdom)". For languages other than English, you may need to try out different regional language settings to find the right choice.
H: Loss of saved/synchronized forms after re-installation of ccz file Upon re-installation of a ccz file on a mobile worker's phone, users are losing all saved and synchronized forms. How can we ensure that saved forms are saved to the mobile app? AI: The "Saved Forms" functionality in CommCare is not intended to be a reliable way of viewing historical data (because as you experienced, this data is not re-synced to the phone after a reinstall). In order to reliably make historical data available on the phone, you need to save this data to a case and then create a way for it to be displayed to the user (either in a form or a case details screen).
H: Difference between Default Value and Calculate Condition When making a hidden value question and filling in the Default Value with a question, CommCare gives me a warning. What is the difference here between Default Value and Calculate condition? And why would a Default Value that references a question cause an error? AI: Great question! You seem like a swell dude. The main difference between a calculate condition and default value is when the calculation will occur. Specifically, a default value will only be set once immediately upon opening the form. This is used primarily to load static values like case and session properties into the form. Meanwhile, a calculate condition will fire multiple times during form entry (including at completion) so that its value always reflects the current state of the form accurately. This should be used for most purposes as calculates will be re-calculated based on answers given in the form.
H: Setting up organization-based access to worker monitoring reports and data exports in CommCare I have an application that several different organizations will be using to collect patient data. I need to set up data access restrictions so that web users from organization A can only export data and view worker monitoring reports from mobile users assigned to organization A. My organization hierarchy is set up so that the organization is the highest level. Question: How do I configure a web user that can only access reports and data from the organization they are assigned to? I followed the steps listed on the Data Access and User Editing Restrictions Help Site page (below), but didn't see the "Full Organization Access" check box in the web user config page. After assigning the web user to a location, I was still able to see mobile users assigned to other organizations in my Worker Activity Report. Is there something else I need to turn on to be able to limit report and data access by organization? https://confluence.dimagi.com/display/commcarepublic/Data+Access+and+User+Editing+Restrictions Edit in response to Cory's answer: I did set up the role first, but edit role options don't include 'Full Organization Access.' However, I was then able to create a web user in that role, and assign that web user to a location. But it didn't do anything to actually restrict the reports. This is why I was asking if anything needs to be activated to access the functionality, or if it requires a specific CommCare plan. AI: This normally requires a Pro Plan to setup for your project. I think your project may have an older version of the Pro Plan and needs to updated to the newest one. Once that's done, Cory's solution will work.
H: Manually resizing image in CommCare while maintaining auto-resize on remaining images In Android Settings I configured images to be auto-resized to half size. This works for all but one of my images, which I would like to be full-sized. Is it possible to manually adjust the sizing of specific images while maintaining auto-resizing on the rest of the application? AI: Unfortunately this is not possible - auto-resize will be absolute for each image when set. I recommend looking into the manual image resizing tool if this is hard requirement.
H: Repeat function a number of times I have a calculation where I need to iterate and action several times, as follows: For a certain count, I need to multiply by 1.1 and floor, so that: (Assume A1 as base value, and B2 as repeat count) If B2=3, I need: =FLOOR(1.1 * FLOOR(1.1 * FLOOR(1.1 * A1 ))) Is there any way to make the multiplication and flooring occur the number of times indicate in B2 cell? Note: =FLOOR(A1 * (1.1^B2)) Will return bad output. AI: Yes, if you use a custom function. These are written in JavaScript, are a bit slower, and can do pretty much anything. Yours would look like: function floorIt(base, times) { var total = Math.floor(base * 1.1) //start with 'A1' * 1.1 for (var i = 1; i < times; i++){ total = Math.floor(total * 1.1); //Multiply by 1.1 by ('B2'-1) times } return total; }
H: Rank and sort by multiple columns? So, my data sheet looks similar to this: Team # Rank1 Rank2 --------------------------------- 1 | Team 1 1 1,234.567 2 | Team 2 2 1,234.567 3 | Team 3 2 1,000.000 4 | Team 4 3 4,000.000 5 | Team 5 0 9,000.000 Is there a way to rank, and subsequently, sort this, where rank 1 is more important than rank 2, so it would end up with something looking like this? Team # Rank1 Rank2 FRank -------------------------------------- 1 | Team 4 3 4,000.000 1 2 | Team 2 2 1,234.567 2 3 | Team 3 2 1,000.000 3 4 | Team 1 1 1,234.567 4 5 | Team 5 0 9,000.000 5 AI: If you want to create a new range, which is a sorted view of the input range, you would use =SORT. The =SORT function can take multiple columns as parameters: =SORT(area, columnA, ascendingA, columnB, ascendingB) In your case, you want to sort by column B in descending order, then by column C in ascending order. Given you have your data in column A through C, this should do what you want: =SORT(A2:C; 2; FALSE; 3; TRUE) If you want to output the rank of a team in the sorted result set, the easiest way is to use the row number, =ROW. So =ROW(H2) would yield 2. Knowing that, we could say that the 1-based rank of a row is =ROW(any row in the result) - 1. If we have the sorted result table in H2:J, we can output the rank of each row: =ARRAYFORMULA(ROW(H2:H6) - 1) I set up an example spreadsheet to demonstrate, feel free to take a look and/or copy it. And check the documentation for =SORT and =ROW. If you want to sort the input range in-place, you can't use a formula - because a formula needs an input range and an output range, which must be different. For a one-time sort, select the input data (including the header row) and click Tools → Sort range. The dialog that appears has a checkbox for Data has header row - click it. Specify a sort column (Rank 1), and descending order (Z→A). Then click Add another sort column, and select Rank 2, and ascending (A→Z). This will sort the range - but only once, so if you alter the data, you will need to repeat the sort procedure. The third option is to create a Filter view. Select the data, and click _Data → Filter views → Create new Filter view. Give the filter a name. Then, for each column you want to use in your sort, click the down arrow icon (2). Specify the sort order for each column. Close the filter view by clicking the X in the upper right corner. This will bring you back to your input data (unsorted). To go back to the sorted view, click _Data → Filter views → [your filter view]. Also in this case, you need to repeat the sort procedure when data changes.
H: Only some applications in my CommCare domain appear under "Web Apps" When I select "Web Apps" in my project space on CommCare HQ, only some of my apps show up as an option. Can anyone help me determine why that is? AI: There is a checkbox in the app settings to enable Web Apps for a particular app. Make sure that checkbox is selected, then make a build and star it for release and you should see your application.
H: How to search Google for other domains than `.com`? I wanted to fire up a search query on Google on other than .com domains. I understand that providing site:.org will result all the search actions on specifically org domains but is there a not operator? AI: You can use the - operator, e.g. youtube -site:.com will exclude: youtube.com You can add the * operator to remove other domains, e.g. youtube -site:.com * will exclude: youtube.com.au youtube.com.hk youtube.com.sg
H: How to incorporate SUBSTITUTE function into complicated function in Google Sheets I have the following function and it works perfectly, with one exception. Some of the values returned have characters in them that I want to remove. =ARRAYFORMULA(IFERROR(REGEXEXTRACT("|"&REGEXREPLACE(F2:F,"\n","|"),"^"&REPT("\|[^|]*",COLUMN(OFFSET(C1,,,1,5))-1)&"\|([^|]*)"))) The string in F2 is: OER - World History - Day 1 | 9/1/2016 | @ 8:00:00 AM | Location is 000-DO | in Jamacha Conference Room | ID#100008 The above function currently returns @ 8:00:00 AM I'd like the above function to return 8:00:00 AM I've tried using the SUBSTITUTE function on the above function, but I can't figure out 'where' or 'how' to properly use it. If I use it on a simple string, it works perfectly. =SUBSTITUTE(?????, "@ ", "") Any help is greatly appreciated. AI: Short answer =ARRAYFORMULA( SUBSTITUTE( IFERROR( REGEXEXTRACT( "|"&REGEXREPLACE(F2:F,"\n","|"), "^"&REPT("\|[^|]*", COLUMN(OFFSET(C1,,,1,5))-1)&"\|([^|]*)") ), "@","") ) Explanation The argument of the ARRAYFORMULA function, was included as the first argument of SUBSTITUTE and this was this was included as argument of the ARRAYFORMULA. NOTE: Breaklines and indents were included for readability. Google Sheets is able to handle this, but only will keep the breaklines and indents when an argument or function is changed. I recently added a more extended explanation on my answer to Pretty print google sheet formula?
H: Does the date filter for a CommCare case export filter forms by last modified date or opened date? While doing a case export in CommCare, is the date filter used to filter cases modified between that date range, or are cases filtered by those that were opened in that date range? AI: The date filter in the case export is based on modified date, not opened on. If you also look closely at the subtext it will remind you that it is filtering on when cases were modified. Note: Confusingly enough, at this time the list of cases in your export however will be sorted by the opened on date.
H: How to narrow Google Image Search to only include specific file type I want to narrow a Google Image Search to only include a specific file type. In my specific case, I'm interested only in .gifs. Including the search term ".gif" does not effectively or consistently limit (or include) all .gifs in my search .gif is not a supported file type for Google search indexing Is there a way to effectively do this? AI: It looks like including filetype:gif in the search adds a new "search tool" option to limit the results by filetype. (The menu also includes JPG, SVG, ICO, PNG, and several others.) (The "Google search indexing" support page you link to only lets you know what files the Googlebot can look in to index the text. Images are parsed with machine-learning.) In any event, using filetype:gif seems to only return GIF files. Alternatively, you can also use inurl:.gif, which will look at the actual URL to see if the string is contained. It works pretty well, but will likely be subject to false positives. (Something like http://www.example.com/images/catdog.gif.txt.)
H: Is Google search engine excludes some results to be shown? I am sure that I have searched terms in Google 2 or 3 years age, and too many results were found, and many of them have been downloaded. But now, with the same criteria, no results will be found! My searches were based on searching specific terms in FTP servers. The results were directing me to FTP servers that contain that specific file, and in many cases, the neighbour files were also related. In that time the Google result list was rich and many sites were found, but now almost nothing. I have tried an advanced search with no results. It seems that Google is hiding the results since in some other search engine, many results can be found but it is very limited. My question has two parts: Does Google change his searching methodology to hide some results? Is there any way to say to Google to retrieve the old results? If it is not possible, is there any alternative search engine to be used as a deep search engine, powerful as Google? AI: Yes, Google uses an algorithm to show you things that it may interest you, and so many thinks that it think it's not what you are looking for are not shown. Mabye you can try Tools > All results > Verbatim, that it will "cancel" the Google search algorithm and show everything as it goes. Also you can try DuckDuckGo.
H: Google sheets MATCH function not finding 0? Here's my sheet that I'm using. Why is the match function not finding that zero? Basically, I have a set of numbers: 7,244.500 5,465.347 6,923.077 6,923.077 4,084.352 4,418.520 3,685.967 0,000.000 I want a match function to find the 0,000.000, and my current function is =MATCH(0,C2:C9) But it just keeps returning #N/A, and says it can't find the value "0" in the range. Any idea why this might be? AI: Because the "range" C2:C9 is not sorted, you need to override the default assumption of sorted by adding a third parameter 0, meaning "unsorted, and exact match". Use =MATCH(0,Info!C2:C9,0).
H: Where does Google Drive save notes on sharing invitations? When I share an item from Google Drive I have the option to "Add a note" to the recipient (see screenshot below). After I send that invitation, where is that note saved? (It is included in an email to the share recipient, but I can't find it in my GMail Sent Mail.) AI: Google Drive doesn't save the notes in a user reachable repository. If you want to keep the note, you should click the "Advanced" link shown on your screenshot on the bottom-right corner, then tick the "Send a copy to my self" checkbox.
H: Value of cell above and to the left of matching cells In Google Sheets, I have a sheet that looks like this that I cannot modify: My goal is to create, through formulas, a sheet that looks like this: Where that "summary" sheet displays the value for each row labelled "TOTAL" as well as the date. The "Total" column in the summary sheet I got with no problems using (where Data is the name of the original sheet): =FILTER(Data!C:C,Data!B:B="TOTAL") But I can't figure out the "Date" column, because the date is in a different row than the word "TOTAL" (it's above it). So my question is: How can I extract that date above and to the left of each cell containing "TOTAL"? Ideally I'm trying to do it with an array formula (to keep the summary sheet simple), and with no blank rows in the resulting array (to keep the Date column lined up with the Total column without much hassle). I'd prefer not to write a script. The only thing I've thought of to try so far is a bunch of convoluted formulas and temporary columns involving match, indirect, and address, and it was neither convenient nor correct. It was only a mess and a failure. I've put together a sample document here (contains "Data" and "Summary" sheets). AI: Well, I've solve this, but by creating three additional rows. You can hide them later. You can access that spreadsheet here. First off, you gotta create a row (preferably named Count) that counts each row with unique number assigned to each entry using COUNTIF function. Then an TempDate column which is same as Date column in your Data sheet, but having it right next to Count column will help us later. Then Create a column named UniqueTemp which filters out duplicate entries in Count column. And then a Date column which uses a lookup function from your UniqueTemp column to the Date column. You then just add each Count entry in your Data sheet for every Date using sumif and then you got your work done. Hope this solves your problem. Also, you could check out the spreadsheet linked here for formulas if I wasn't clear enough.
H: Ebay Listing Auto-Downloads Text File? Every time I visit this listing (in Safari on Mac), a file is automatically downloaded to my downloads folder. Should I be concerned? I searched on Google for "Snapchat Spectacles" and clicked the sponsored link to Ebay on the right and then clicked "More Details" on the Ebay listing which automatically downloaded the file and now every time I visit that link it does it again. It doesn't happen on other listings, even ones that come from Google. Running updated MacOS and Safari. I suspect that this is some kind of Javascript script on the page? Update: When I "Get Info" -> "More Info" -> "Where From" has a link to Youtube which also causes the file to download and then a comma followed by this ebaydesc link which is apparently known to have a history of directing people to fake logins using iFrames... -- Not sure if related but clipboard all of a sudden had 3 numbers I didn't recognize, just after all this happened. Could have been my mistake? AI: The listing contains an embedded YouTube video toward the bottom which Safari is not treating like a video, prompting a download. Seems to be a known issue.
H: instance syntax to search for all child cases of a parent in CommCare I have an app that uses a 'household' parent case and 'member' child case. Within the 'member' visit form I want to be able to search for the # of other child cases indexed to that parent who meet a certain criteria: In english: How many other child cases are indexed to this patient with the property mm_is_in_tb_treatment = 'yes'? Instance path: instance('casedb')/casedb/case[@case_type='household']/ ... and then I'm not sure how to specify this 'member' case's 'household', then filter for child cases of this household, then filter for /mm_is_in_tb_treatment = 'yes' Once I get the instance syntax correct, what is the output? I need the total # cases that meet that criteria. AI: I'm assuming in this case that you've loaded a the member case into your form, and that you can load the member case ID id into /data/member_id What you want to get is: The count of all member cases which are children of this case's parent, for which the member case has the property mm_is_in_tb_treatment = 'yes' For now we can create a new hidden value to store the parent household's case ID, since it'll make understanding the full query below easier. New hidden value: /data/parent_id: instance('casedb')/casedb/case[@case_id = /data/member_id]/index/parent All cases which are children of that parent would be referenced as: instance('casedb')/casedb/case[index/parent = /data/parent_id] You can now add your new filter directly to the end of that statement and introduce the count count(instance('casedb')/casedb/case[index/parent = /data/parent_id][mm_is_in_tb_treatment = 'yes'] If you wanted, you could further specify that you (for safety) only want to include children that are member cases and which are open. You can also collapse back the parent ID reference if you want a one-line expression: count(instance('casedb')/casedb/case[@case_type='member'][@status='open'][index/parent = instance('casedb')/casedb/case[@case_id = /data/member_id]/index/parent][mm_is_in_tb_treatment = 'yes']
H: How do you load a case_id into a form I've setup case management in my application. Now I would like to load the selected case's id into the Calculate Condition of one of my hidden variables. How do I do that? AI: You can use the session instance path to get the currently selected case's case_id (see CommCare Session Instance help page): instance('commcaresession')/session/data/case_id The link above also describes the syntax to load other session user or device data.
H: Sending GitHub notifications from different organizations to different addresses I've got a GitHub account connected to two orgs. I regularly contribute to both, and also contribute independently to projects outside of either of these orgs. Anytime I get a notification from any of these orgs, though, the emails about these notifications get sent to my primary, personal email. For posterity and organization, I'd like to be able to do triage on these emails; for example, notifications on repositories belonging to org A should go to my email account with org A, notifications from org B should go to the org B email, with all other notifications going to my personal email. Is there any way to do this? GitHub's email settings seem very minimal. AI: This is possible with help of Custom routing. First you'll have to add the relevant email address to your account. To do this: Head over to Settings → Emails and add & verify your email address Now head over to Settings → Notifications Under Custom routing, choose the required email for the organization
H: Why is it that templates on Wikipedia becomes "Template:I"? On this wiktionary page: https://en.wiktionary.org/wiki/Appendix:HSK_list_of_Mandarin_words/Advanced_Mandarin#y There are template usage that renders as Template:I instead of the template usage, e.g. When we look at the edits and preview, it renders correctly: It looks like the page is labelled with the category Pages where template include size is exceeded. How to resolve this and render it correctly? AI: This can be resolved by replacing the template usage with [[internal_link]], e.g. before: {{l|cmn|掩饰|tr={{l|cmn|掩飾}}, yǎnshì}} After: * [[掩饰]] ([[掩飾]], yǎnshì)
H: Misinterpreted hours and minutes in Google Apps Script while reading Google Spreadsheet data I have a datetime columns in Google Spreadsheet which I'd like to iterate and use "hour" value to calculate something in custom Google Script. This is an example of a value I have in Spreadsheet: My script looks like this: function CALC_TEST() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("jan"); var range = sheet.getRange("E3:F14"); var values = range.getValues(); for (var i = 0; i < values.length; i++) { Logger.log(values[i][1]); } } If I take a look at my logs, the value is interpreted in a really strange way - as Sat Dec 30 23:28:00 GMT+00:00 1899 My Spreadsheet's timezone is set to GMT+00:00 and I get the same result no matter if I try to parse the value with getHours() or getUTCHours() in my Script (obviously, since the value is already wrong before parsing :)). Why is this happening? How is it possible that 22:00 becomes 23:28 all the sudden? AI: Switching the timezone to a different one and then switching back fixed the problem. Might be related to one of the bugs already reported to Google.
H: How to mute everyone but myself on a Hangout? My students have been asking for online tutoring sessions. At school, it is often done by other teachers, and all of them use the Facebook Live platform. It is generally well-received, but I don't have a Facebook account, nor have any interest in making another one. I'm inclined to use Google Hangouts (to allow them to send me voice messages), but I don't want them all to stay in the call, since their microphones will likely stay on and add noise to the call. I expect to have about 50 simultaneous students watching, but only 5-10 will ever ask questions. Is there a way to mute everyone but myself on a call, and then selectively unmute one of them on demand? Or maybe mute everyone, but still allow them to send (short) voice messages? AI: This is not possible on the regular hangouts platform. It can have at max 15 participants. (25 if your school has Google Apps for Education) Hangouts on air, however, will also only allow 15 (25 if you're on GAE) students to ask questions (actually participate in the call). The others will have to be spectators. But you can allow them to send you questions in text form (using the Q&A) feature of hangouts on air, and then answer them
H: Undo "Always display images from this sender" I really like that Gmail does not show images by default but now I accidentally clicked on that "Always display images from this sender" in one message. Please, does anyone know how to undo the setting, i.e. to again ask whether or not to show images from that sender? AI: On Web Open the email for which you want to disable loading external images. Click on small arrow icon "Show details". At the bottom of the box, you will see a message and a link to disable loading images as "Images from this sender are always displayed. Don’t display from now on." Click on "Don’t display from now on.” and you are done. That will do the work for you. On Android App Click on Hamburger menu and tap settings. Tap on your email account. Click on the menu on top right Tap on Clear picture approvals. And that will do the trick
H: Can I retrieve the old names for Trello cards? When you edit a card title in Trello, it doesn't add an entry to the visible history of the card. Is there a way to retrieve past titles of cards? AI: The history of the card is logged by Trello, and there are ways to retrieve it using their API. You can also use the "Export JSON" functionality: The current title of the card is under the key name. The history of the card is under the key actions, from which you can find past names under data -> old -> name.
H: How do I extract a column of a range? I am using filter() to return a filtered range of cells. Of that result, I only want one column of the results (so that I can sum the values of that column). What is the syntax (or function) that I can use to do that? I want to sum the values in column D that correspond to rows with "key_match" in column C. I want to do something like: =SUM(GET_COLUMN(FILTER(B:F, C:C = "key_match"), D:D)). Filter rows of columns B-F where cells in column C == "key_match"; of that result, I want to calculate the sum of the values in column D. How can I do what I would like GET_COLUMN() to do? AI: You could just change your filter range: =sum(FILTER(D:D,C:C="key_match"))
H: Google spreadsheets: Find max value for a name I have spreadsheet with 2 columns - names and values, say: John 2 Doe 8 Mary 17 John 5 Bill 12 Mary 6 John 3 What formula can I use to find the maximum value for each name? (E.g. in column C in each row with John would be 5, with Mary - 17, etc.). AI: In my opinion simplest by far but offering much more than just what you ask is a pivot table: You could though try: =query(I:J,"select I, max(J) group by I")
H: Fix YouTube captions that have abnormally low-contrast Recently, the subtitles in YouTube were changed to a very low-contrast, illegible white on grey colors: This doesn't happen in Firefox or in a new "Private mode" Chrome. What's causing this, and how can I get high-contrast subtitles in YouTube back? I tried disabling all my Chrome extensions, but this did not help. AI: You can change fonts and colors and such via Settings gear > Subtitles/CC > Options
H: How to change my Uber password or delete the account? Uber was affected by the Cloudbleed security bug, so everyone should change their passwords or delete their accounts. But where's the "change password" feature on their web site? It's not on the Profile page. And Google doesn't find it, either. The Profile page says: Please visit the Uber app on your phone if you are unable to edit a field on this page. but after reinstalling the app, I'm not finding it there, either. Their help page says: How do I update my profile? To update your name, email, phone number, and password: Select “Settings” in the main app menu Tap the bar that displays your profile info Tap the information you want to change. Make your updates and click save. but that doesn't reveal a "change password" feature, either. A way to delete an Uber account is also well hidden. AI: As far as I can tell, you can't directly change your password the web site or the Android app (I don't know about iOS). You can, however, request that they reset your password. Log out of the web site (if you're currently logged in) Instead of logging back in, click "Forgot password" Follow the instructions
H: What does an irrelevant question evaluate to in CommCare? Let's say I have a form with a calculation condition that references another question in the form. For example: if (#form/question_1, 'yes', 'no') What does this evaluate to in the case that question_1 is hidden entirely via a display condition? I assume this would be false and not, e.g. a reference error? AI: If question_1 is irrelevant, but the question exists in the form, references to the question will evaluate to an empty value (ie: '') and should not cause errors. References to the element's node in XML will return an empty set. IE: count(#form/question_1) will return 0.
H: How to display 24-hour format time in Slack? On https://slack.com/, how do I display message timestamps in 24-hour format instead of AM/PM? AI: From Slack support: Click your team name to open the Team Menu. Choose Preferences. Select the Messages & Media tab. Check out the Message Theme and Display Options settings. You can adjust other message-related settings under Display Options: ... Show times with 24-hour clock Choose between 24-hour and 12-hour times (e.g. 16:12 or 4:12 PM).
H: Saving location name from multiple choice lookup table as a case property I have set up an organization structure and am using a multiple choice lookup table within a form to reference the organization structure. Mobile users are asked to select the location in which they are working on a given day. Mobile users are assigned to all locations within the organization structure because they move between locations for their work. I am saving the output of the multiple choice lookup table question as a case property, which by default generates the location ID. Instead of the location ID, I would like to display the location name that corresponds to the location ID that was generated in the multiple choice lookup table question. I found instructions for displaying the user's location name in this article, but did not find the same for referencing the name of a selected location from a multiple choice question. Is there a syntax I could use to reference names from locations selected in a form? AI: Assuming your question is named /data/location_id_result, you can reference the name of the location selected with the expression instance('locations')/locations/location[@id = /data/location_id_result]/name and load that into a hidden value which you then save to the case.
H: How to figure out the live chat widget of websites? If you would take a look at this website. https://haystack.report/ It uses a pretty interesting chat support widget. How to figure out the company that made this? AI: Right-click the chat button (in this case, the balloon thingy) and select the option "Inspect Element" (or similar). It is available in most desktop browsers (I tried Chrome, Firefox, Edge, they all had it), and should be available in mobile browsers, as well. You should see something like <div class="intercom-launcher-close-icon">. Searching for "intercom launcher" returned this result from a company that offers live chat as a service for websites. The rationale behind this procedure is that live chat provider usually gives its customers the same piece of HTML code to put on their websites, and this HTML code carries the provider's signature.
H: Missing forms from Submit History report in CommCare when the filter is set to "today" I'm trying to see forms that I am currently submitting in CommCare via live preview and mobile device. I have the date filter on the Submit History report to today. Is there a reason my forms might not be showing up? AI: The today date filter for this report on CommCare defaults to Eastern Standard Time. Therefore if you are in a time zone that puts you in a different day than the eastern coast of the United States, the default filter of "today" won't show your form submissions. For instance, if you are submitting forms at 7am in Cape Town and looking for them to show up in your Submit History report filtered to today, you won't see those submissions because the filter for "today" is technically referring to "yesterday" for your timezone.
H: When using CommCare Supply, will the WebApps functionality work with supply-point cases When using CommCare Supply, will the WebApps functionality be able to show supply point cases and other CommCare Supply functionality, or are there specific limitations to using WebApps when building an app using CommCare Supply? AI: CommCare Supply is compatible with WebApps. Some known limitations are listed here: https://confluence.dimagi.com/display/commcarepublic/Web+Apps+-+Known+Issues+and+Limitations
H: Viewing supply point cases at a supervisory level How do you view supply-point cases for an organization lower in the hierarchy of a organization structure? I have set up a CommCare supply app using the organizations structure and levels. I've marked the lowest level in the organization structure as "Tracks stock" in order to force that level to create cases associated with each location. When I click on any location in that level I now see "View location case" when I edit that location, therefore I know the supply-point cases are being created. However when I log in as the supervisory level for that same location on WebApps, I cannot see those supply point cases. I thought perhaps the issue was that the supervisory level for that location wasn't correctly configured, however that level is configured to "View child data" So that hypothesis was ruled out. Then I thought perhaps the issue was that the case type was incorrectly configured for the module, however the case type for the module is supply-point so it also looks to be configured correctly. Case sharing is also already enabled for this application, so that has also been ruled out as the potential blocker AI: When using organization-based case sharing, any location levels whose cases you want to be shared need to be tagged as "owns cases". The same rules apply to CommCare Supply. The supply points are associated with the location level they sit at, so any supply points you want to be available to supervisors must be assigned to a location type that "owns cases". So in your scenario the lowest level of the hierarchy should also be tagged with this flag. Can you double check that it is? I believe changing this setting from the Organization Levels page should fix it.
H: how to save result from lookup table to case property in CommCare I am saving the output of a single choice lookup table question as a case property. 
This is not a question completed by the user, but calculates off of the user case. 
 The lookup table has two columns 1. Index (sequential numbers) 2. Study condition (1,2,3,4) In the lookup table, the filter_id is set to 'index'. *note: this 'index' increments based on a counter from the mobile worker (user-case). How do I save the 'study_condition' that corresponds to that index row in the table? AI: If this is not a question completed by the user you should just use a hidden value with a calculate condition. The calculate would be: instance('your_lookup_table_id')/your_lookup_table_id_list/your_lookup_table_id[index = #form/index]/study_condition Where "lookup_table_id" = the id of your lookup table and #form/index you should just drag the index question in your form over. Finally, be sure to include the instance statement in your form so it loads the lookup table you need. It should look like: <instance id="your_lookup_table_id" src="jr://fixture/item-list:your_lookup_table_id></instance>
H: How to write a script/formula for Google Form Responses to send submitted form to different emails based on a response? I have a registration form that we are using for my company. We have 6 locations. I want to have the registration form that is filled out on Google forms to go to specific emails based on their answer for what location they are at. I have tried a few scripts, and have had no luck. AI: You'd write an if then statement that covers your 6 locations. It'd be something like this . . . though this isn't exact. function sendEmails() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = SpreadsheetApp.getActiveSheet(); var lastRow = getLastRow(); var range = sheet.getRange('C'. lastRow);//location cell var location = range.getValue(); if (location === 'heaven'){ emailAddress = 'heaven@location.com' } elseif (location === 'hell'){ emailAddress = 'hades@location.com' } elseif (location === 'purgatory') { emailAddress = 'purg@location.com' }else { emailAddress ='void@location.com' } MailApp.sendEmail({ to: emailAddress, subject: subject, htmlBody: message });
H: Prevent slow calculate conditions from firing when the form is opened I have a lot of calculate conditions in my form in hidden values, but they are only necessary to evaluate if the question "food_not_in_list" = 'yes'. These calculates are slowing down my form because they fire when it's opened. Can I either: Add display condition to those hidden values so they won't calculate? Wrap them in an if statement that checks the condition ... e.g. Calculate condition = if(food_not_in_list != 'yes', '', do-the-big-calculate) AI: Unfortunately the hairy part about declarative logic is that it can be a bit tough to decide when processing happens! To answer your questions: A hidden value's display condition being false does not prevent the hidden value's calculation from executing. All calculations are performed regardless of whether their display conditions are met. Inside of a calculation (or display condition, etc...) if() statements on the other hand do "short circuit logic", meaning that the branch that isn't used won't be executed at all. This is also true of the logic operators and and or Example: There is a hidden value with the calculate expression: long_expensive_calc() Setting the expression instead to if( #form/time_to_go = 'yes' , '', long_expensive_calc()) will prevent the "expensive" portion from running until the time_to_go is set to yes.
H: CommCare Supply: How do I figure out what a Program's ID is? I want to limit the Products displayed in one form of my app to only those from one Program. Where and how can I see what a Program's ID is to that I can use it in the display logic? All HQ shows me is a Program's name, not ID. AI: The easiest way to determine the program ID is open the program edit page on CommCare HQ and pull the ID from the URL (it is the long set of characters at the end of the url not including the slash). A more general answer whenever you need to inspect or reference CommCare data being sent to a device is to view the user restore sent to the device. This would show you the XML-formatted list of program data (which is represented as a CommCare fixture) and show you the IDs you need associated with each program.
H: How to indicate that a particular subscription in the "Updates" tab should always go to "Primary"? I have a couple subscriptions that I'd always like to see in the Primary tab of gmail, but don't know how to indicate such. Is it possible, and if so how is it done? AI: Simply drag-and-drop those conversations to the "Primary" tab. Gmail will ask you if you want future messages from that sender to be categorized the same way. (If drag-and-drop doesn't work for you, you can use the the "Labels" tool; the inbox categories are at the bottom of the list. I think you just need to uncheck the "Updates" category.) If that still doesn't seem to work, you can always create a Filter that sorts those messages (based on your criteria) to the "Primary" category. See also: Lifehacker: Everything You Need to Know About Gmail's New, Super-Confusing Layout Lifewire: How to Move Messages Between Inbox Tabs in Gmail
H: Lookup Tables in Case List Calculation Is it possible to reference a lookup table in a case list calculation in CommCare? I think I know the syntax that I would need to use, but CommCare doesn't have access to the right instance at that point. Is there a way I can access that instance? AI: My understanding was that if you reference a fixture inside a calculate using instance('item-list:my_table')/my_table_list/my_table (where my_table is the name of your lookup table), that instance will be detected and included automatically. If that doesn't work would you mind editing your question to include the expression you're using? EDIT: I had originally said to include instance('item-list') which was incorrect. The above should allow the app to build, and if my_table exists and is assigned to the user then it should work correctly.
H: Draw an array with Google Drawings I read in a reddit post that Brian and Alan used Google Drawings to create the drawings in The Go Programming Language. I'd like to learn how easily to draw an array like the one shown below: It's easy enough to draw a rectangle, but is there a quick way to tell Google Drawings how to create a rectangle with a series of evenly spaced lines? Or to take a different approach, create a row or column of repeated boxes? AI: What you're looking for is the table. From the help (which isn't linkable): Open a document or a slide in a presentation. Click Table and then Insert table. Click to choose how many rows and columns you want to add. Tables can be as large as 20 x 20 cells. The table will be added to your document. Now you can create a 14x1 or 1x2 table: For those interested this is a quick attempt using the Ubuntu font:
H: Live filtering within Google Sheets Is it possible to have filtered data update automatically as values change in rows in Google Sheets? Say I have 10 rows of data, where one column holds only TRUE/FALSE values, based on a formula. I can use a filter on that column say "show me only rows with TRUE values", and it works. However, if I change a value elsewhere in the spreadsheet, causing the TRUE/FALSE values to change, the filter is not dynamically re-applied. Some TRUE rows change to FALSE, but aren't hidden; some FALSE rows change to TRUE, but are not shown. How can I make a table of data dynamically change what is shown when I edit a value in another cell? (I'm happy to use FILTER() if that helps, but I can't figure out exactly how to use it.) To avoid an XY Problem, my goal here is to have one column holding a whitespace-delimited set of "tags" for the row, and another cell (outside the table) where you can type in a tag and see the table automatically filtered to show only rows including that tag. Right now I can accomplish this goal of filtering by using "Filter by condition/custom formula is" along with with REGEXMATCHES() with a formula that composes a regex from another cell, and it works correctly each time I 'touch' the filter criteria...but changing the cell outside the table does not cause the filter formula to be re-applied. AI: I would use the =filter() function as follows: on another sheet, enter =filter(Sheet1!A:Z, Sheet1!C:C = True) where it is assumed that the sheet with original data is Sheet1, the data is in columns A-Z, and the column with True/False values is column C.
H: Can people see who owns a branded channel? If I make a branded YouTube channel under my real one (which I am doing simply so my name isn't attached, and in actual fact would like the channel to be anonymous, so no-one knows who actually owns it), are people able to trace the channel back to my real one? So for example, if I have my channel Finn Rayment, and then decide to make a branded one under Finn, known as Anonymous, would subscribers or rather anyone who sees Anonymous, be able to find who owns it other than simply telling ones voice or location on-video? AI: Nope, there are no public ties between your personal and brand accounts.
H: Two yes-no questions, if both anwers are yes go to section 2 and 3, will skip section 2 I'll make a survey with Google Forms and add two yes-no questions. If both answers are "yes", they must be navigated to sections 2 and 3 of my survey. Below you could find a scheme: ---------------------------------------------------- | ## Section 1 | | | | Question 1:* | | ( ) Yes → Navigation to section 2 | | ( ) No → Continue to next section | | | | Question 2:* | | ( ) Yes → Navigation to section 3 | | ( ) No → Continue to next section | | | ---------------------------------------------------- After section 1 → Navigation to section 5 * Required question Both questions are required. Here are the rules: | Answer question 1 | Answer question 2 | Next section(s) | | ----------------- | ----------------- | ------------------------------- | | No | No | end of survey | | Yes | No | Section 2 | | No | Yes | Section 3 | | Yes | Yes | First section 2, then section 3 | If one or both sections are done the survey must continue to section 4. For what I've done see images below or on the first gray box: If I answer with "yes" on both questions, I'll directly go to section 3 and continue to sections 4 and 5. In other words I skip section 2 and that's not what I'll have if question 1 and 2 are "yes". How could I prevent skipping section 2 if both answers are "yes"? AI: You should "hack" the Google Form as the required feature is not built-in. Update: Old forms aren't available anymore It's worth to say that old forms are easier to hack than the new forms, this because the old basically use "standard" html elements while the new use Google Clousure, an undocumented library. Regarding "hacking" the olf forms see my answer to How can I make a minimal, unstyled HTML form which works with Google Forms? Related Conditional required questions
H: Viewing all email messages in a conversation and finding which have attachments Every now and then, I wish to see all email messages in a conversation. I can globally do so using Gear, Settings, Conversation View, Conversation view off. How do I do so on a per conversation basis instead of globally? How can I tell which one of these threads have attachments? AI: You cannot turn off conversation view for only one conversation. It's either all or none. Individual messages have a "paperclip" icon at the top of the message (visible even when the conversation is collapsed) to indicate there is an attachment. Alternatively, you can search and use has:attachment as part of the search terms.
H: How do I force merge contacts in Google Contacts? Google Contacts automatically identifies potential duplicates and supports merging these candidates, but I can't figure out how to force or suggest candidates for merging. AI: Go to Contacts. Search so that you can see both/all of the contacts you want to merge on the one results screen. Click the checkbox on the left hand size of the screen for the contacts you want to merge. From the More menu (at the top of the list of contacts), choose Merge Contacts. Like this:
H: Email redirection from old address? I have a mildly embarassing email address :D that I made when I was 14 years old. I would like to redirect all the email from that address to my actual email. Can I redirect all my email and then close the account or should the account remain open for the redirection to work? My email provider is Yahoo. AI: You have to keep the account open. If you close it your redirection will immediately stop and your email address could eventually become available for someone else to register. This could lead to someone impersonating you for malicious purposes. In fact, I can't remember the details now, but there was a big issue a couple of years ago where people were hijacking other people's online accounts by registering an old address and starting to receive emails sent to the previous owner who hadn't updated their records (think sending out password reset emails for example). There is a reference to it here, but I can't find the original story now. However, whilst searching for that, I also found this: Yahoo! has “temporarily disabled” the ability to forward email from its messaging services. So you might not be able to do what you want anyway. EDIT Here's the original story I referred to.
H: How do I freeze a row in Google Sheets? Given some sheet I'm able to freeze the current row by typing "freeze" into the Help menu as shown: But I'm curious: Where is the Freeze option in the menu bar? What are the keyboard shortcuts to freeze/un-freeze rows/cols on Mac/Windows? AI: The Freeze option is found in the View menu: Unfortunately, there is no keyboard shortcut for freezing/unfreezing any part of the sheet. (The closest is that there is a shortcut to open the View menu.)
H: How do I share a Google Sheet with 'read only' permissions? Given some Google Sheet I'm aware of the Share button in the top right corner. However, the default settings allow anyone with the share url to edit the sheet. Is it possible to set permissions so the file is read-only? AI: When you pull up the share menu - click the little drop down an choose "view" ALso if you want to disable copying and downloading, click on "advanced" on the bottom right and check the 2 boxes at the bottom
H: How do I transfer a copy of Google Sheets to someone? I want to give someone a Google Sheets that I made so they can use it independently of my sheet. I don't want to ever be able to read/write/update their sheet. I'm aware there are various options for adjusting permissions on Google Sheets. For example, if I email someone a text file and they edit it, I don't know what they've done to their copy and they don't know what I've done to mine. How do I do this with a Google Sheets? AI: You need to give them a modified shareable link to a copy of your file. First, make a copy of your sheet: File -> Make a copy... Second, create a shareable link with can view permissions: Note the end of the url: https://docs.google.com/spreadsheets/d/1wyqMk01sd-erhS3XthafqFtRSTO2nC6xS6Kp7au0sK0/edit?usp=sharing Finally, send them the URL of your sheet with /copy appended on the end - it directly refers them to this page, by which then can then duplicate it and have their own copy: Note the end of the url: https://docs.google.com/spreadsheets/d/1wyqMk01sd-erhS3XthafqFtRSTO2nC6xS6Kp7au0sK0/copy
H: .getSheetByName not returning specific sheet? I'm using a script to add a timestamp when a value on a given row is changed. My issue I'm running into is that the getSheetByName isn't returning the sheet I want, rather the script is running across all 15+ sheets on the file. What am I doing wrong? function onEdit() { var s = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("LeadTracker"); var r = s.getActiveCell(); if( r.getColumn() != 2 ) { //checks the column var row = r.getRow(); var time = new Date(); time = Utilities.formatDate(time, "GMT-06:00", "MM-dd-yy, hh:mm:ss"); SpreadsheetApp.getActiveSheet().getRange('R' + row.toString()).setValue(time); }; }; AI: You'll want to check the event's sheet and cell, not necessarily a specific sheet. So, receive the event as a parameter to your event handler: function onEdit(event) ... then check the event's source for which sheet it occured on: if (event.source.getActiveSheet().getName() == "LeadTracker") ... So: function onEdit(event) { var s = event.source.getActiveSheet(); var activeCell = s.getActiveCell(); if (s.getName() == "LeadTracker" && activeCell.getColumn() != 2) { var row = activeCell.getRow(); var time = new Date(); time = Utilities.formatDate(time, "GMT-06:00", "MM-dd-yy, hh:mm:ss"); SpreadsheetApp.getActiveSheet().getRange('R' + row.toString()).setValue(time); }; }; See the example spreadsheet I've set up, and feel free to copy it.
H: Syntax to validate e-mail address using a regex expression An e-mail address is collected from a participant. ex. john.smith@gmail.com or smith@gmail.com How do you validate an e-mail address using the Validation Condition to ensure: That an @ and . symbol are in the answer There is . after the @ in the answer Is there a regex expression that can accomplish this? AI: For the case you're describing, @ followed by . you can use the CommCare regex function: regex(., '.+@.+\..+'). See docs on the regex function. Email validation can get much more complex, check out this page for a more comprehensive regex: https://stackoverflow.com/questions/46155/validate-email-address-in-javascript
H: Is it possible to use text formatting within a hidden value in CommCare? I'm trying to set up text that is being generated in a hidden value and is going to be displayed via a label, can I set up that hidden value to include text formatting so when the hidden value is displayed in a label certain text will be bold? AI: Text formatting is performed with Markdown, so it must be applied after any data that's being loaded has been injected into the question's text. I've used constructs like This appointment is: **#form/days_late** days late and they've worked correctly. That would mean that what gets "formatted" is the text of the question after everything is loaded, so it shouldn't matter whether days_late = '**3**' and you output #case/days_late Days Late or days_late = '3' and you output **#case/days_late** Days Late since what ultimately gets formatted is the result: **3** Days Late Keep in mind that everywhere you output that label will include the markdown, so you might want to save two copies of the text (one formatted one not) depending on where it will be used. Edit: I just tried this and noticed that the form won't necessarily apply markdown by default unless it detects that you are trying to use it. If you don't see Turn Off Text Formatting next to the question where you are displaying the value you can trigger markdown on a question by putting in something like **test** into the question text and then removing it, after which it should stay on until/unless disabled manually.
H: Can't add a secondary Facebook email because it's "owned by a disabled account" I'm trying to change my Facebook email, by first adding a secondary email to my account and then make it as primary, but I can't seem to do it because "The account that owns the email address you entered has been disabled.". I've never had 2 Facebook accounts, I believe the other account was rightfully disabled, but it's definitely not mine, and somehow it has my email address associated with it. I've searched emails received from Facebook in my inbox, and indeed I've received 4 emails: 29/09/2016: "Just one more step to get started on Facebook" 30/09/2016: "Welcome back to Facebook" 30/09/2016: "Just one more step to get started on Facebook" 04/10/2016: "Reminder: Confirm your Facebook account" Those emails handfully include a "report" link in their footer, but using them now doesn't work because they are expired... I don't remember whether I clicked on them at the time (probably not, because I wouldn't have receive 4 emails otherwise). When using the Facebook "forgot password" link and entering the mentioned email it says there is no account associated (well, if it's disabled they're probably right). What are my options to add this email to my Facebook account? [edit February 2024] I finally found a way. Facebook support is useless. I had an Instagram account linked to the email I wanted to connect. And in what seems to be a new "Accounts Center" page on Facebook, I was able to link my Instagram email to my Facebook account. Yipee! AI: When Facebook disable any account, then explain the reason (most of the time) for disabling the account to the user. You directly cannot use an email which was associated with a disabled account. Use this following link and send your concern to Facebook: Email address already in use. If they find your explanation valid, might you be able to use your email address. Learn more about Disabled Accounts.
H: How did I get extra space on my Google Drive? To my knowledge a free Google account gets 15 GB of storage by default. Somehow I now have 115 GB. How did this happen and how long do I have it for? I know smartphone sometimes prompts me to take pictures of an area I am in. Is this the result of some sort of rewards program? AI: Yes. Google is promoting the Local Guides feature on its Maps application: Google Drive storage promotion Local Guides who reach Level 4 by 11 p.m. EST on 17 March 2017 can unlock 100 GB of free Google Drive storage. The benefit must be redeemed within 30 days of issue and is valid for one year. This promotion will expire after the cut-off date. Source:https://support.google.com/local-guides/answer/6345112?hl=en-GB Apparently, you sent enough pictures and shared enough knowledge with the Maps network to qualify for the reward.
H: When does an application get an "auto generated" deploy I've noticed that an application has a release with a comment "Auto-generated by a phone update". What does that mean and when does it happen? AI: As of CommCare version 2.34, users have the ability to update to the "latest saved state" of their app, without having to create a build first. (This is intended to streamline the process of iterative testing/debugging of a CommCare app). When CommCare HQ receives an update request of this nature, it simultaneously returns the information needed for an update to the user and kicks off a build in the background, so that the user can come back to the app version they updated to later. This is the build that you are seeing above. I would also encourage you to read this page, which has full details on the different update target options in CommCare and how to set them.
H: How can I open a child case for a supply-point case in CommCare? I'm trying to open child cases for supply point cases in an app, however I believe I will have to set the owner ID manually for these child cases. Is this assumption correct? Are there other specific workarounds I will have to consider when setting up child cases for a supply point case? AI: You shouldn't have to set the owner_id unless your workflow is non-standard. The basic assumption is that all cases will be opened by the facility level user. If this isn't the case e.g. supervisors are creating the child cases, then you will have to manually set the case owner. You can read more about how to do that on the help site: https://help.commcarehq.org/display/commcarepublic/Assigning+Cases+to+One+of+Multiple+Locations