text
stringlengths 83
79.5k
|
---|
H: Google drive remove permission from app after uninstalled
I just installed an app that asked for permission to Google drive. I granted the access. Now I'm uninstalling the app from my phone, but I'm not sure if the app still has access to my Google drive. How do I remove the granted permission? or is it not necessary?
AI: Unfortunately, no, simply removing the app doesn't remove the access to your account.
Go the "Connected apps & sites" section of MyAccount.Google.com, find the app (under "Manage Apps"), and revoke its permissions. |
H: Fields Combined
In this new version, the first/last names and addresses are now all combined into one field on the export (name is all in one cell vs. first name in a field and last name in a field). The entire address is now in one field too.
Is there a way to export the data automatically in separate fields like it used to be?
I'm having to manually separate everything out now to be able to make the new data usable with the old data. What a pain! I'm not a fan of this new change, so I really hope there's a way to go back to the old data file format. The data was much easier to clean and sort when it was separated out in individual fields.
AI: I'm a developer with Cognito Forms.
You can still export your document the same way you could in the old entry view. When selecting the export option under 'Actions' you will want to select 'All Fields'. This will create an export with each field, and with part of a field in its own column. |
H: What causes "Open Card in Trello" in my Gmail messages?
I receive Trello updates in Gmail. Recently, Gmail adds an Open Card in Trello button in the conversations list:
How does that work? Is it triggered by a URL in the message?
Is this functionality unique to Trello?
AI: No, it's not unique to Trello. It's a feature that Gmail has that certain apps have taken advantage of to tell Gmail things about it to give you a shortcut without having to open the message.
For instance, Google Calendar invitations have an "RSVP" button in the conversation subject. If Gmail recognizes that there's a package tracking number in the message, it adds a "Track" button. An Open Table reservation confirmation results in a "View reservation" button.
They're called "Quick Actions". The apps generating the message need to format the message in a particular way.
Official Google Accouncement
Techcrunch: Gmail’s “Quick Action” Buttons Now Support One-Click Access To Google Offers, Seamless, OpenTable, Dropbox & More
Litmus: Quick Actions Allow Gmail Users to Convert Before Opening |
H: Undisplayed question in form updating a case property
If I have a form that has a question that is not always displayed but does update a case property, when the question is NOT displayed, does it overwrite whatever the property is with '' or an empty value? Or does the question only update the property if it is displayed?
AI: If the question is not displayed, then that datum will never be sent to the server. Thus, the case property will not be updated. The property will only be written to when the question is displayed. |
H: What does (number) in the YouTube tab mean?
A number is starting to appear in YouTube Tab title recently like in the image (686) What does it mean? It's also increasing day by day.
AI: A number is starting to appear in YouTube Tab title - what does it mean?
It's apparently yet another unannounced change made by Google/ YouTube and the numbers in the brackets in the browsers tab apparently indicate how many comments/ posts you currently have on YouTube which you have not yet read/ checked...
Source There is a number next to my YouTube tab that keeps appearing
So how can I remove it?
sign in to your YouTube account
click on the bell icon (top right side in YouTube)
click on the gear icon
deactivate "desktop notifications"
Source There is a number next to my YouTube tab that keeps appearing |
H: Move #general to another channel
I've set up a slack organization for a small team.
In the beginning we had only a single project we were working on, so we just used the #general channel for the primary communication.
Now the team has grown bigger, and we have three separate projects. So the #general channel has been renamed to #project-name. However, since it was originally #general, new users are automatically added to it and can't be removed.
We would like to keep the discussion about the original project between the people working on it. The old messages regarding the original project shouldn't be visible by default for new team members either.
Is it possible to move all the old messages to a new channel and restore #general? Or how should we manage this situation?
AI: Set default channels for new members from the official help:
Click your team name to open the Team Menu.
Select Team settings.
Click expand under the Default Channels section.
But you might still not able to change it:
Note: Note that all team members belong to #general and it cannot be removed from the list of default channels.
While it's not supported to rename the channel and move messages there is an import and export feature.
A possible work around would be to restore the original #general name and export the history of that channel. After that you create a new channel with the project name and import the history form #general into that new channel. This way you would have the project oriented messages in the project channel. What's left to do is to clean up the old messages in #general. You can delete old messages using the archives (FAQ: Edit or delete messages ). |
H: Remove default apps from Gmail
Is it possible to remove some of the default Google apps from Gmail? I'm only using the Drive and the Calendar apps, and would like to remove the other apps (YouTube, Google+, Photos, etc). By remove, I mean either hide from view or delete them entirely.
I have followed the guide provided on the official link, and the answer provided here on WA. However, these are about removing external apps. I would like to remove the ones by Google.
My reason for this is that the app view is too cluttered for me. More options is fine, but the way it's set up now is just... Annoying to me.
The following image shows what I'd like to remove (or hide, if removal is impossible).
AI: That's the "App launcher" in the "Google bar", and it's visible in all Google apps. While you can move the icons around, you can't remove them.
If you open it up, you can drag-and-drop icons so they appear in the order you want them. You can drag them below the horizontal line so that they don't appear unless you click "More".
Unfortunately, there's no way to remove any of the existing icons; you can only move them around. You can delete a few services from your 'My Account' page (notably Google+, YouTube, and Gmail) but that may not remove the icons from your launcher. (And they're not the apps you want to get rid of anyway.)
Resources:
Google Support: Use the Google bar
Google Operating System: Rearrange Apps in Google's Navigation Menu |
H: What does NaN mean when I'm testing an xpath function in CommCare App Preview
I'm adding several numbers in a hidden value, however I'm seeing the number return as NaN in the xpath tester in App Preview. What does NaN mean in this case?
AI: NaN means "Not a Number." This often happens when you're using a function that can only deal with numbers and there's a blank input in your calculation. |
H: Sheets: Calculate this expression for each row in range. How to do it?
Assume I want to calculate the weighted value of "value 2" based on the total of "value" if an indicator = 'Y' , how to do this without adding an extra column?
So essentially I want to know how I can apply an expression for each row in a certain range ("artificial column") which I can then apply e.g. a SUM on.
In the screenshot below, how can I calculate the Red Formula without adding an extra column?
AI: =sum(arrayformula(A2:A4*C2:C4*(B2:B4="Y"))) |
H: Embedding YouTube videos into a Google Slides presentation
Is it possible to embed a YouTube video into a Google Slides presentation?
AI: In Google Slides, use Insert → Video. You can then embed a YouTube video either by searching or by video URL. |
H: How do I rename a bot in Slack
I've added Trello to my Slack team but for some reason it's called "trello2", which is harmless, yet annoying.
How do I rename a Slack bot?
AI: I am not sure that this is the most elegant answer, but it worked for me ...
It seems that the name "trello" can't be used as both a bot name and a channel name at the same time.
What I did was I renamed my channel "board" and my bot "trello"
If you come up with a better solution, I'd love to hear about it. |
H: Arrayformula+VLOOKUP find value of non-empty reference (callback/recursion problem)
Similar to An arrayformula to find the previous non-empty cell in another column.
I have two worksheets like this:
"" = Blank cell
() = Sheet Name
Worksheet One (Form Responses 4) is the input sheet I have values that need to be VLOOKUPed to calculate the value:
Key A | Key B | Value | Value | Value
A A Med Med Med
A A "" "" ""
A A "" "" ""
B A Low Med High
Worksheet 2 (Calculations)
Current Result:
Key A | Key B | Value
A A 9
A A 10
A A N/A
B A N/A
Expected Result:
Key A | Key B | Value
A A 9
A A 9
A A 9
B A 10
Third worksheet for as an index for the VLOOKUPs:
Worksheet Three (Data Inputs)
Value | Word
1 LLow
2 Low
3 Med
4 MedHi
5 High
In worksheet 2 I have the following formula:
==ARRAYFORMULA(IF(A3:A<>"",IF('Form Responses 4'!$B2:$B="",VLOOKUP('Form Responses 4'!B:B,'6. Data Inputs'!B44:C48,2,FALSE)+VLOOKUP('Form Responses 4'!C:C,'6. Data Inputs'!B44:C48,2,FALSE)+VLOOKUP('Form Responses 4'!D:D,'6. Data Inputs'!B51:C52,2,FALSE),VLOOKUP('Form Responses 4'!B2:B,'6. Data Inputs'!B44:C48,2,FALSE)+VLOOKUP('Form Responses 4'!C2:C,'6. Data Inputs'!B44:C48,2,FALSE)+VLOOKUP('Form Responses 4'!D2:D,'6. Data Inputs'!B51:C52,2,FALSE)),""))
I am trying to reference all the non-blank rows that have the same key and value using and reference back the values. I am using VLOOKUPs in my sheet to reference words from the Google Forms to values. Currently I get the following Values:
9
10
N/A
I am unsure how to a perform a callback to reference all the rows that have the same key and are not blank. In my Google Forms I am trying to have them skip a section of the questionnaire if it was previously answered so it will be blank, but unable to get it to call back the initial reference using arrayformula.
Can someone help?
AI: Formula
=ArrayFormula({
'Form Responses 4'!A2:B5,
MMULT(
VLOOKUP(
VLOOKUP(
ROW(2:5),
{IF(LEN('Form Responses 4'!C2:C5)>0,ROW(2:5),""),'Form Responses 4'!C2:E5},{2,3,4}),
{'Data Inputs'!B2:B6,'Data Inputs'!A2:A6},
2,
0),
TRANSPOSE(SIGN(COLUMN('Form Responses 4'!C1:E1))))
})
Input (Form Responses 4)
| A | B | C | D | E |
---+------------------------------------------
1 | Key A Key B Value Value Value
2 | A A Med Med Med
3 | A A
4 | A A
5 | B A Low Med High
Word/Value table (Data Input)
| A | B |
---+----------------
1 | Value Word
2 | 1 LLow
3 | 2 Low
4 | 3 Med
5 | 4 MedHi
6 | 5 High
Result (Calculations)
The column titles are manually entered / copy/pasted. The data below them is calculated; the formula is placed on A2.
| A | B | C |
---+---------------------------
1 | Key A Key B Row Total
2 | A A 9
3 | A A 9
4 | A A 9
5 | B A 10
Explanation
In order to keep the complexity at the lowest level that I thinked that is possible for a one formula solution, I avoided to use open references. Once you understand it, you could decide to refine it or to try other thing.
The above formula includes
The solution from my answer to An arrayformula to find the previous non-empty cell in another column to fill-up the blanks,
A VLOOKUP to replace text by their values, taken from the Data Inputs spreadsheet
MMULT to make row sums
Arrays to put things together.
If you add more rows to the Form Respondes 4 worksheet, then you should update the following references by replacing the 5 on each appearance of them by the number of the last row to include.
A2:B5
2:5
C2:E5 |
H: Microsoft Teams -- Where's the meeting tab?
According to Microsoft's Documentation (I can't add more than 2 links due to rep, so Google Microsoft Teams schedule meeting, click on the first result titled Meetings and calling - Office Support and expand the "What's a private scheduled meeting?" section), you can schedule a private meeting using the calendar icon on the left-hand side.
I don't see this icon. I see Activity, Chat, Teams and Files at the top, and at the bottom, Feedback and my Avatar.
Is the icon something I need to enable? Something that could possibly be restricted by the type of Office 365 subscription we have (Education - Faculty and Staff)? I can't see any settings in the Teams app / website, and private scheduled meetings is turned on in the admin section of the Office 365 portal:
AI: Buried on a Microsoft support page is this section:
Issue: Missing Meetings icon in the left nav bar
Symptom: The Meetings icon on the app bar is currently only enabled for users whose mailbox is on Office 365 multi-tenant and a select few dedicated users whose mailbox location can be discovered using Exchange auto discovery. Microsoft Teams does not yet support mailboxes housed in Exchange on-premises and Exchange Dedicated. This is under investigation; however, there is no timing for delivering this capability.
Workaround: No workaround.
So essentially this feature won't show up if your mailbox is hosted on-site. It's being investigated, but with no timeline for getting it working. |
H: Google Sheets, how to sumif value in another row is a date?
I have a table of data that contains labels, and the date that the values next to those labels are summed in one row, and the data itself in subsequent rows like this:
A B C
SM 10,291 $3.09
RCOM 5,171 $11.96
ED 4,752 $5.70
RS 31,748 $27.41
AO 50,745 $5.41
06/25/16 102,707 $53.57
I would like to have a master "total" cell that sums only the cells that contain totals. So in English - "Sum B if A is not text".
I found the isnontext() function, and I know about sumif(), but I can't quite figure out how to make this work. Hopefully that's clear and someone can point me in the right direction.
AI: Seems:
=sumif(A:A,">1",B:B)
was adequate. There is no numeric value for text entries in a formula such as above, so they are ignored and only all the numeric ones need be 'captured', if the alternative to Text is only Date. |
H: How to disable Heroku email notifications for an app?
How to disable Heroku email notifications for an app, while still remaining a collaborator? I didn't find a way to configure this in Heroku dashboard web UI.
Messages like these, for example:
The percentage of failed requests for [app-name] has
exceeded your threshold setting of 5.0%.
AI: No -- not per app, per user. If these are getting noisy, you'll want to turn off email notifications entirely for that feature, or filter them out with something like Gmail filters. |
H: Google account permissions legitimacy
I was reviewing my Google account permissions and noticed some items that I am having some concern in regard to their legitimacy. I'd like to know if there is a good way to determine the legitimacy of a connected app. At the moment I can see no information about the connected app apart of its name.
For example:
delgooglelogin - I tried to google this one but got no results. Any idea what's this one? Is that some internal Google stuff or should it be removed?
Project Default Service Account - my concern here is the same as before. is this a legitimate item?
Google Drive - does Google Drive needs to have a special permission? Isn't it an integral part of the Google account?
AI: Every time you connect to a system (web, or mobile app) using your Google Login you are granting the developer of that system access to your account. If you see a window something like this.
The app in question Google Analytics Windows is asking the user for permission to read their Google Analytics data. Once granted the application will have permission to read the data. (When ever they want not just when you have the app open) This is called Oauth2, it is how Google and a lot of other companies allow developers access to your private data. The main point here is that you the user must decided if you trust the developer of the application.
With the Exception of android Apps Google preforms no checks to ensure that the application you are authenticating to is not going to do anything bad with your data. You the user must decide that. Even with android Google cant control what they do in the background.
The first two you have mentioned i cant tell you what they were. The best thing you can do is just remove them. If you are actually using the application that needs the authentication it will pop up and ask you to authenticate again. Just don't auto click accept on these windows check the name. If you do figure out what the applications are i would recommend contacting the developer and telling them they need a more descriptive name then that.
As for the last one. I would guess that you either have a windows Google drive app or an android google drive app that needed to be authenticated before it could access your data. Google is very strict developers cant name their products after a google product. The last one is probably a Google Developed application and should be perfectly safe to use.
As for an answer there is really no way to determine the legitimacy of a connected app. I have been developing applications using google login for years. I can tell you as a developer that if you grant my application access to your data you give me access to your data. There is no way for you to know if i am trustworthy and not selling your data on to someone else. This is why I install very few third party apps :)
Update (Picture just for fun):
This is the setup that a developer would have to include. Note a few of the fields are optional but email is not. |
H: Adding a user to my "free Google Apps account" over my allocation of free users
I've got a Google Apps for Business account with 3 domains registered to it.
The account was setup when they were still issuing free accounts with 10 users and I have since used all my 10 user allocations.
I now want to add an 11th user / email address to the account. To do so will I just have to pay for 1 user (e.g., 10 free + 1 paid) or will I have to start paying for all 11?
(Just in case someone asks I need the 11th user to have an email address on one of my domains, so I can't just create a free Google Drive account as they need to use email also.)
AI: In order to add the 11th user in your domain, you will have to upgrade to at least G Suite Basic as the max number of users for the Free edition is 10. You cannot purchase additional licenses and stay on the Free version.
Upgrading to G Suite Basic can be found here. |
H: Google Sheets slow - 1. mobile? 2. why? 3. importrange
Update: Google Sheets is much faster when using Incognito
Google Sheets is so slow on desktop but really fast on mobile. Is it supposed to be like that? If so, why? If not, what are some factors that might lead to this? Usually the google sheets I open have a lot of filter functions in the opening tab. Might that cause slowing down?
In general, does having a lot of formulas, in particular filter or query, mean a lot of loading? In this case I was thinking to just copy then paste as values.
If sheet X importranges from sheets A,B and C, then would, for example, A slow down because X importranges from it? I get X would slow down since opening it would be running the importranges but what about A?
AI: On the desktop it's running as JavaScript code inside a browser. On the mobile it's a native app, and also has more limited functionality. That can explain the difference. I'm not sure but it's also possible that it offloads some processing to server side.
In general, hard to say, but rather not -- the last calculated values are stored and loaded with the sheet. Depending on what the formulas do, if each formula processes lots of data (SUMPRODUCT or MMULT come to mind here), this could certainly slow down recalculation, but not loading.
No. For the above mentioned reason - last calculated values are stored until there is a reason to recalculate them. |
H: What are some URL shorteners that use GET requests?
I've been writing a script that requires a link shortener in it. It runs locally, and Chrome can't use AJAX/JSON locally, so I need to be able to go to link.shortener/link-to.shorten and then it automatically shortens the link. Are there any web shorteners that work like this?
AI: There are a couple:
http://b54.in/api.php
https://is.gd/apishorteningreference.php
Just remember that most of these services aren't monetised and tend to disappear, rendering the links useless. Of the 8 or so services that advertised using GET, these are the only two that still work. |
H: What happens to someone I blocked on Facebook in these cases?
If I'm tagged in a photo by someone else that hasn't blocked that person. Would the blocked person see that photo on my profile page by default?
If I tag someone else in a photo that the bloked person can't see on my profile page. Would that person see the photo on the tagged person's profile?
AI: No, once you blocked someone, he/she will not be able to see anything on your profile. If photo is posted by someone else and if person (blocked by you) would be able to see the photo (depends on audience privacy), he/she would be able to see tagged people in the photo, but your name will not be clickable as you have already blocked him/her.
Yes, if photo is not posted by you, he/she would be able to see that photo on other people's timeline (depends on audience privacy). |
H: How do I indicate a range in a variable in Google Sheets?
I have a Google sheet in which I created a custom show/hide columns function in the Script Editor. I want to show/hide columns 1, 3, and 14 through 30.
This is the code I tried:
var colsCheck = [1,3,14:30];
But when I save, I get this error:
Missing ] after element list. (line 4, file "Code")
So I tried this:
var colsCheck = [1,3,14-30];
This doesn't give an error but it doesn't hide columns 14-30, either. Is there a way to indicate I want columns 14 through 30 without typing 14, 15, 16, 17...?
I am trying to Google this but I don't know the terminology well enough to find what I'm looking for.
AI: Remember that what you're writing in the Script Editor is JavaScript, so your script must conform to JavaScript syntax.
14:30 does not, hence the error Missing ] after element list. 14-30 can very well be legal JavaScript, but it will be interpreted as 14 minus 30, so it will result in -16.
If you want an array with column numbers, you can populate it programmatically. First, let's list the single columns you want:
var colsCheck = [1, 3];
Then, let's loop through the numbers 14 to 30, inclusive, and append (push) those to the array:
for (var col = 14; col <= 30; col++) {
colsCheck.push(col);
}
At this point, your array will be [1, 3, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30].
Now, I suspect you will have to expand your script a whole lot in order to accomplish what you really want. I suggest you try to familiarize yourself with JavaScript, through an online course like this one from Mozilla. Then, learn how JavaScript is used in Google Scripts with Google's tutorials. |
H: Compound Interest in Google Sheets
I am trying to estimate the value of an investment into the future with minimum and maximum APY compounded monthly in Google Sheets, but I'm getting frustrated; FV, PV, RATE all seem to expect different information than I have available.
For example, let's say I can put $1000 a month into a 5% APY investment, compounded monthly. How would I calculate what the investment value would be at the end of the year? At the end of 10 years?
AI: In fact FV is what you want here. In your example:
=-FV((1.05^(1/12)-1), 120, 1000, 0)
will yield the final value of a 5% APY investment of a $1000 monthly after 10 years.
The 1st argument to FV is the monthly compounding rate calculated down from the 5% APR.
Um, what you want probably isn't a function, because it's too simple to be a specialized function. It doesn't matter if it's compounded weekly, monthly or quarterly, if you want an APY of an amount X at a rate R after an integer number of years N, the formula for that would be
=X*(1+R)^N.
For a fractional number of years, just calculate the same for the applicable number of periods at the fractional period rate.
Here is the list of all Google Spreadsheets functions, if you narrow down by Financial you will see that they mostly deal with more complicated scenarios involving vectors of payments, dates, variable rates etc.:
https://support.google.com/docs/table/25273?hl=en&ref_topic=3105398 |
H: Find the most liked tweet from an account
Is it possible to find the most liked tweet from a public Twitter account? For example, what is the most liked @StackOverflow tweet?
AI: Pop your handle into Social Bearing's Twitter Handle Search: Found Here. A dashboard should come up with all their tweets.
Click on the button which say's "Sort tweets by..." and Select "Favourites (high to low)"
You can similarly use this method to find any of the following
Items by order of retweets
Items by order of favorites
Items by order of engagement
Items by order of sentiment
This method works for any public twitter handle for up to 3200 tweets. |
H: Repeating unique data from a column in Google Sheets
I have a selection of values in Column A, some of which are repeated X (where X varies) times, like this:
Apples
Apples
Oranges
Pears
Pears
Bananas
I want to end up with a list in another column where each unique value is repeated N times (where in this case N is 3). So the above would look like this:
Apples
Apples
Apples
Oranges
Oranges
Oranges
Pears
Pears
Pears
Bananas
Bananas
Bananas
I have been trying to figure a way of combining =UNIQUE and =REPT to get me there but haven't yet found a way. What am I missing? Is there another way?
Can anyone help?
(Aside - I then want to have the results sorted alphabetically without manually having to Data > Sort the range).
AI: A solution as a single formula:
=transpose(
split(
concatenate(
arrayformula(
split(
rept(unique(A:A) & "\|", 3),
"|"))), "\")) |
H: My GitHub account has been suddenly "flagged" and hidden from public view - how come?
I just got this message bar on GitHub saying that:
Your account has been flagged. Because of that, your profile is hidden
from the public. If you believe this is a mistake, contact support to
have your account status reviewed.
I have absolutely no idea why this has happened - I have a GPU decompression library there, some CUDA API wrapper classes, a thesis template, and my professional mini-website which has also been pulled offline.
I have contacted their support, but I'm worried about this happening all of a sudden.
My questions:
What makes an account on GitHub be "flagged"?
Is it possible, or perhaps has it occurred before, for a GitHub account to be flagged due to a malicious action?
AI: One of the reasons for flagging is automated spam account/activity detection, and that can have false positives.
Quoting GitHub support's response to my inquiry:
Sorry about that!
Our spam-hunting bots usually do a good job, but from time to time
they get things wrong. Today was one of those times, and I’m sorry you
were on the receiving end of their mistake. While we aren't let into
too many of the workings of their silicon brains, we are able to teach
them the error of their ways. |
H: Sort a range in a shared Google sheet without temporary filter view
When I sort a range on a Google sheet, it sorts just fine. When a collaborator who has edit access attempts to perform the exact same action, a Temporary Filter View is produced. When she closes the Temporary Filter View, the sheet returns to its previous state - unsorted.
How can a collaborator with edit access to a Google sheet sort the data on that sheet?
AI: The issue is with protected ranges (in the toolbar under View > Protected Ranges). One of the columns was considered a protected range, and so any sorting was considered a temporary filter. Removing the protected status solved the issue.
Source: Works with OP. |
H: Data Validation rule to enforce first day of a month
I have a Google Sheet in which users key in records for a specific month. A report on another tab looks up the month and consolidates it. I'm trying to enforce using the first day of the month to match the header in the report sheet. (I know I could replace the lookup with a sumif range, but I'm trying to keep the formulas as short as possible and the amount of calculation to a minimum, since this ends up being a large document)
I've set a Data Validation rule to enforce this rule, but I just looked and found numerous instances of violations, which make the report inaccurate.
The rule is: =eomonth([cell],-1)+1
Mousing over the cell shows me the validation text, but the rule is set to reject the value completely! What is going on wrong here?
AI: Custom formula type of data validation is evaluated independently of the cell. In other words, I was assuming that it was checking if the value returned by the expression was equal to the current cell. In reality, it was checking to see if =eomonth(A169,-1)+1 equaled "true" (or -1, I suppose).
There are 2 potential solutions here.
Maintain "Custom formula" as the type, but change the formula to: =A169=eomonth(A169,-1)+1
Change the validation type to "Date" and set it to Date equal to: =eomonth(A168,-1)+1 |
H: Is there a link to automatically open the first result in Google Drive?
I am looking for an equivalent to the Google Search "I'm feeling lucky" functionality. Whenever I know the first search result will be the file I am looking for, I would like to skip the actual search results page and directly open the first hit.
I'm feeling lucky: https://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=stackexchange
Google Drive Search:
https://drive.google.com/drive/u/0/search?q=stackexchange
AI: No, Google's I'm feeling lucky works exclusively on their web search as it just forces the user to go the No.1 ranked hyperlink. The content in your Google Drive is not ranked in this manner thus an I'm feeling lucky button can't/won't work. The closest thing you have is something similar to Google Instant where a search term entered into your Google drive first returns results of files opened in the near past or opened most number of times. |
H: Hide Google Drive Folder but still Access with Link
Is it possible to setup a folder on Google Drive so that users can access the files within it if they have a direct link but they cannot see the folder if they browse to its parent?
Here's what I have:
The Files folder has a bunch of Google Sheets files that I don't want users to rename or move. I realize that they can do this from the File menu when they open the spreadsheet but my average user is not familiar with that functionality. (They are very used to Windows network drives, though.)
The Log of Files spreadsheet contains basic information about all those files as well as a direct link to each.
Scripts in the spreadsheet create the files in the Files folder (using the current user's authorization) and store their direct links in the log. The files are named as their record identifier. For example, the log might have record ABC170001 and the file for that record would be named ABC170001. Users have a tendency to want to rename it to something they can recognize when browsing the folder such as Widget 1234 move to new supplier. This behavior can mess up the scripts in the log spreadsheet.
Here's what I want:
The folder is still there and the direct links in the spreadsheet still work but people can't browse to the Files folder and see all the files. This would naturally encourage them from browsing to find their files and, instead, they would use the log to open what they want. This negates the most common reason the files get renamed.
Here's what I've considered:
Messing with access rights.
Problem: I haven't found a setting that hides the folder without also removing their ability to edit the files after opening them with the direct link.
Marking the folder as hidden.
Problem: I haven't find a property to do that.
Setting the property rights such that users can see the folder but can't open it and then setting the access rights for each file (when it is created by the script) such that anyone in the company can open/edit with a direct link.
Problem: I haven't trying changing access rights in Google Script yet and didn't want to spend the time with trial & error unless I thought it was likely to succeed.
Moving either the log or the folder somewhere else, thus obfuscating it from the user but not actually hiding it.
Problem: I'd like to avoid this option until I'm sure a more direct approach isn't available.
Share the folder with specific people instead of everyone with a link and then creating an installable trigger (or some other means) that runs under my authorization to create the files and set each authorization to "Domain with Link".
Problem: I haven't worked out how to let the user trigger it on demand and have it run under my access because the installable triggers seem very limited. I'm still trying to figure out how that could work.
AI: The solution to this seems to be quite simple.
Go to your log of files document and set up each of your records e.g
ABC170001
As a hyperlink
Set the hyperlink to link to the appropriate file they need to edit. The Hyperlink should be generated with "Anyone with this link can edit the document"
Then when giving out the link for the log of files document set it as Anyone can view.
Don't give anyone permissions to view the folder just the files, meaning they can't edit your log of files file but the links should take them to an editable document.
Your current mistake seems to be that you are sharing the entire folder containing both the "Log of Files" and the "Files" folder
I demonstrate below what not to do: |
H: How to use Facebook thankful reaction
Recently, I've seen some Facebook posts with a purple flower reaction on them, called "thankful." I can't find any way within the UI to use one. A Google search shows some news from 2016 about it being a temporary reaction for Mother's Day last year. There isn't a single Google result about Thankful reactions mysteriously returning in 2017.
How can I use a Thankful reaction? If it's impossible, how are other people able to use them?
AI: Alright, I've probed every last depth of the internet to find the answer to this thing and the best evidence I've come up with is this.
What seems to be the case is that either Facebook has glitched itself out or they have issued a limited release of this function in certain countries (India) as some form of beta testing. Thus far no mainstream media or any other credible source apart from internet speculation as to this functions release.
However this topic seems to be picking up considerable interest, so one can assume a large number of people are affected, in which case Facebook should release a press statement either today or tomorrow or some other coverage should take place.
I will keep this answer update with any new information.
Update 1 : May 11 2017 Update from TheDailyDot Indicates existence of
thankful emoji, but no mention to the year? and does not describe it
as a new feature. Perhaps it is recurring feature for every mothers day?
Update 2 : May 12 2017 Update from the metro as far as it shows the thankful reaction is now being rolled out across the word to coincide with the American Mothers Day which falls on the 14th of May
. It can be used throughout this weekend as a normal reaction but will disappear afterwards. The Stack Exchange network simply noticed this phenomenon hours before any major newspaper or even an official press release. Good Job Guys!!
Update 3: May 13th 2017, Update from TechCrunch Full complement of Mothers Day features released including cards, stickers, masks, filters etc.
IMPORTANT SIDE NOTE: I personally have not observed this phenomenon on my own Facebook, and only seen such reactions appearing on certain friends from certain countries. I therefore conclude this roll-out is limited to countries who celebrate mothers day on the 2nd Sunday of May.
Below is a list of countries that celebrate Mothers day on this day. If you do not reside in these countries you may not see this feature on your Facebook.
Anguilla
Antigua and Barbuda
Aruba
Australia
Austria
Bahamas
Bangladesh
Barbados
Belgium
Belize
Bermuda
Bhutan
Bonaire
Botswana
Brazil
Brunei
Canada
Cambodia
Chile
China
Colombia
Croatia
Cuba
Curaçao
Cyprus
Czech Republic
Denmark
Dominica
Ecuador
Estonia
Ethiopia
Fiji
Finland
Germany
Ghana
Greece
Grenada
Guyana
Honduras
Hong Kong
Iceland
India
Italy
Jamaica
Japan
Kenya
Latvia
Liberia
Liechtenstein
Macau
Malaysia
Malta
Myanmar
Namibia
Netherlands
New Zealand
Pakistan
Papua New Guinea
Peru
Philippines
Puerto Rico
Saint Kitts and Nevis
Saint Lucia
Saint Vincent and the Grenadines
Samoa
Singapore
Sint Maarten
Slovakia
South Africa
Sri Lanka
Suriname
Switzerland
Taiwan
Tanzania
Tonga
Trinidad and Tobago
Turkey
Uganda
Ukraine
United States
Uruguay
Vietnam
Venezuela
Zambia
Zimbabwe |
H: If I block some people on Instagram would they be able to...?
See only my older posts or would they see none?
See only my older activity on the tab "following" on the app, or none?
By older posts and activity I mean those that I posted, liked, commented, etc. before I blocked them.
Edit:
In case that they were already following me before I blocked them, would they see that all of a sudden all my posts disappeared from my profile page?
AI: From Instagram Help Page:
When you block someone, that person can't view your photos/videos or search for your Instagram profile. People aren't notified when you block them.
But they can mention your username on Instagram, but this mention won't appear in your Activity. If you block someone and then change your username, they won't be able to mention you unless they know your new username.
After you block someone, their likes and comments are not removed from your photos and videos. You can delete their comments from your posts.
People that you block can still see your likes and comments on posts that were shared by public accounts or accounts they follow.
To know more about how blocking people works, see Instagram Help Center. |
H: Split comma separated cell data into rows while keeping surrounding row data
I'm trying to accomplish the below input and output in Google Sheets.
I was actually able to find a partial solution on Stack Exchange.
This is the script I pulled, but it only functions on one column, whereas I need to function on two at the same time:
function result(range) {
delimiter = ", "
targetColumn = 1
var output2 = [];
for(var i=0, iLen=range.length; i<iLen; i++) {
var s = range[i][targetColumn].split(delimiter);
for(var j=0, jLen=s.length; j<jLen; j++) {
var output1 = [];
for(var k=0, kLen=range[0].length; k<kLen; k++) {
if(k == targetColumn) {
output1.push(s[j]);
} else {
output1.push(range[i][k]);
}
}
output2.push(output1);
}
}
return output2;
}
AI: I believe this will work for you:
function myFunction(range) {
delimiter = ", ";
targetColumn = 1;
targetColumn2 = 2;
var output2 = [];
for(var i=0, iLen=range.length; i<iLen; i++) {
var s = range[i][targetColumn].split(delimiter);
var s2 = range[i][targetColumn2].split(delimiter);
for(var j=0, jLen=s.length; j<jLen; j++) {
var output1 = [];
for(var k=0, kLen=range[0].length; k<kLen; k++) {
if(k == targetColumn) {
output1.push(s[j]);
}
else if (k == targetColumn2) {
output1.push(s2[j]);
} else {
output1.push(range[i][k]);
}
}
output2.push(output1);
}
}
return output2;
}
The other option would be to more or less run your own function twice. Create another copy of it, this time setting targetColumn = 2. Run the first function on the cells you have, and then run the second function on what the first function returns. |
H: How to get pronunciation spoken automatically when googling word's definition?
When a word definition is shown clicking the speaker icon will speak its pronunciation:
How to make it automatic on page load?
AI: Right click on the icon, choose Inspect Element. On the correct element, right click and choose Copy > CSS Selector. Then create a userscript with this line
document.querySelector("INSERT SELECTOR").click();
Userscript on Greasyfork
// ==UserScript==
// @name Google auto-speak pronunciation
// @namespace https://greasyfork.org/en/scripts/29771-google-pronunciation-speak
// @include https://*google.com*
// @version 1
// @grant none
// @description Auto speak pronunciation when googling word's definitions
// @author Ooker
// ==/UserScript==
document.querySelector(".lr_dct_spkr > input:nth-child(1)").click(); |
H: How do I Bulk Delete all of my YouTube Comments and Replies?
Is there a way to bulk delete all my YouTube comments without restarting my channel or deleting anything else?
I couldn't really find a good solution anywhere else.
AI: Go to the YouTube Advanced Account Settings page:
Press delete channel.
Expand the "I want to hide my channel" section.
Check everything and press the "HIDE MY CHANNEL" button.
You may need to wait a little before YouTube deletes your comments. You can check that all of your comments are delete here: Comments History
If necessary, you can go to your channel page (or this) to un-hide it (it will ask you for you name again). Doing this will also private your subscriptions, videos, and playlists, but you can set them to public as needed.
NOTE: I actually found this myself, though it's identical to this YouTube video and this Technicles article. |
H: Google Contacts: trash?
I deleted the wrong contact on Google Contacts by mistake... I noticed there was briefly an undo option, but I didn't realise I needed it until later.
Is there a trash folder that I can retrieve it from? Or is the ability to restore a contact only temporary?
AI: The same happened with me a month ago:-(
There is no option to retrieve the contact from a trash. Just like in Gmail.
You can however restore your contracts to a previous state by the undo option. But be careful it will restore you to that earlier point. It means any changes you made after that will be gone.
And what do you mean by ability to restore the contact? Clarify it a bit more. Will be happy to help :-)
Because all the changes made by the undo option are in your address book. |
H: LinkedIn Sales Navigator connection invites limit?
I'm growing my LinkedIn network for some time already and I send like 100 connection invites through sales now a day. Everything was fine for a few months, but last week or two I sometime encounter a problem - when I'm trying to send invite, I'm every time being asked for user's email in order to proceed. Next day I usually can move on with sending invites as usual.
I could not find any information related to limit of neither invites per day/week/anything, nor pending invites, which I actually remove time to time.
Are there any known rules or limits that I should respect in order to not get this?
AI: Here is the LinkedIn official link of Invitation Limitations, which says:
If you've sent a large number of invitations, your account may be limited from inviting more members. This is generally due to many of your invitations being rejected or ignored by the members you've invited.
If you are unable to send invitations due to this limit, please cancel as many outstanding sent invitations as possible. Once this is complete, you can continue to send invitations to members you know and trust.
Following are the reasons why Email Address Needed for an Invitation:
There are several reasons why you may be asked to enter an email address when you send invitations:
The recipient's email preferences are set to only receive invitations from members who know their email address.
A number of recipients have clicked I don't know [name] after getting your invitations.
An invitation has already been sent to the member. |
H: Gmail loses original "From" address when forwarding an email
This happens a lot, in our work email system, which uses Gmail and various internal email groups:
I receive an email to helpdesk@example.com, from Alice <alice@foomail.com>
I forward it to bob@example.com
in Bob's email, he can see the original message subject and body, but the From just says "Alice": it's lost the actual email address.
Even if you look at the actual email data, in the "Show Original" option, it's gone.
Does anyone know if there's a setting in Gmail to stop this happening?
EDIT: here's a screenshot. I've just noticed the "Via Helpdesk" bit, I wonder if that's part of the problem.
EDIT: Added another screengrab showing how the original appears.
This is how the original looks:
This is what the "forward" email looks like.
AI: From the pictures and updated information, Gmail is forwarding the email inline. Vanilla Gmail appears to only support forwarding emails inline. When emails are forwarded "inline", only a small amount of information from the original email is preserved. As shown in the pictures, the headers From, Date, Subject, and To are extracted from the original message and rendered in text form in the inline-forwarded email.
The technique your helpdesk system uses for forwarding emails replaces the From with helpdesk's own email address. This is necessary because otherwise Gmail's SPF policies would cause it to reject the mail or immediately mark it as Spam/Junk. Since your helpdesk system puts the original sender's email in Reply-To, you can still reply to those messages to reply to the original sender. However, if you forward the email inline, Gmail's inline-mail-header-formatter will not copy the Reply-To header because it just doesn't. That is, Gmail is keeping the From; it is your own internal system that is losing the From before the message gets to Gmail. And Gmail does not preserve Reply-To.
Now, it is possible to forward emails as MIME attachments in Gmail. If you did this, the receiver of the forwarded email would be able to see the original Reply-To header of the attached email. However, this is an involved and impractical process because Gmail's web interface is not able to do the work for you. I would suggest using Gmail's feedback feature to request support for forwarding emails as MIME attachments (as this is a standard feature in desktop mail clients). Another option is to set up a desktop email client (but that solution is outside the scope of "WebApps”, hmm…) with Gmail since it will not have this limitation. |
H: Google Spreadsheet AVERAGEIFS divides with 0
I'd like to calculate the average spending on given categories but not all. I use AVERAGEIFS for this. But it doesn't seem to work.
My sheet (just relevant columns):
B | D
Spent|Category
-----|---------
10 |Category1
11 |Category1
9 |Category6
30 |Category3
22 |Category4
15 |Category5
I have this formula:
=AVERAGEIFS(B2:B;D2:D;"Category1";D2:D;"Category2";D2:D;"Category3";D2:D;"Category4";D2:D;"Category5")
And it always gives me #DIV/0! Even when I have at least one value in all category. Based on the documentation I either do this right or I fail to see the error in my ways.
AI: Like @pnuts said in his comment, all AVERAGEIFS criteria must match. You seem to need all these values where one or more of the criteria is matching. This formula should give you what you want:
=AVERAGE(FILTER(B2:B,MATCH(D2:D, {"Category1","Category2","Category4"}, 0))) |
H: AND in ARRAYFORMULA giving error
I'm just getting myself confused here.
I have a Planning spreadsheet with people's name in A, their skills in C, and their status in I. I would like to create another sheet within this spreadsheet that contains just the rows where the skills contain the word Java and status contains pending. I'm having trouble figuring out how to do this
=FILTER('Planning'!A2:L900,
ARRAYFORMULA(
AND(
ISNUMBER(SEARCH("Java", 'Planning'!C2:C900)),
ISNUMBER(SEARCH("pending", 'Planning'!I2:I900)) )))
this doesn't seem to work erroring with
FILTER has mismatched range sizes
It seems that I'm using AND incorrectly as
=FILTER('Planning'!A2:L900,
ARRAYFORMULA(
ISNUMBER(SEARCH("Java", 'Planning'!C2:C900)) )))
works fine
AI: Another approach might be:
=query(Planning!A:L,"select * where C contains 'Java' and I contains 'pending' ") |
H: Is it possible to freeze multiple separate rows in Google Sheets?
Currently, Google Sheets can be used to "freeze" sections of a document so that those sections always persist when scrolling, as demonstrated in this video. However, a limitation of this is that only one section can be selected, and it must be relative to the beginning of the document, whether it's defined in rows or columns.
Is it at all possible to freeze a second, separate row further down the spreadsheet so that, when scrolling, the first frozen row persists at the top of the sheet until the second frozen row is encountered and replaces the first?
AI: Unfortunately not. Google sheets's freeze feature is pretty basic, and only supports freezing one section from the top (or left) of the spreadsheet to your desired endpoint.
If you select a column or row and look in the menu, under View > Freeze, you can see that you can't freeze individual rows/columns, you can only freeze UP TO a certain row/column. |
H: As a User how to move some email from Gmail to Office365?
I have some mail in my Gmail account that is tagged with a certain tag, and I want to move this to a office 365 email account. How Do I do this?
Background: An organization that I'm involved with, earlier had their mail configured with a third party provider, and I was using Gmail's POP3 access to get it into my Gmail account. I also have a filter which applied a tag to all such emails.
This organization has now moved to office365, and I would like all their emails which are right now in my Gmail, to be moved to my office 365 folders.
I'm a regular user of office 365, and do not have admin access to this organization's office 365 console.
AI: Since Both these services support IMAP, it's possible to use an IMAP client to migrate mails from one to the other.
If you want a GUI application, you could use Thunderbird or Outlook, and connect both the mail accounts. you can then drag and drop the messages from one folder to the other. Do note that your client will download the mails first, and then upload it to the target service. This can take a fair bit of time, depending on your internet connection.
If you prefer, you could also use a command line tool such as https://github.com/jarus/imap_copy which can be preferable if you are a programmer, or techncical enough. |
H: How do I copy a form across project spaces?
How do I copy a form from an application in one project space to a different application in another project space?
AI: You can copy a form across project spaces by clicking the Actions tab (or Advanced tab if viewing app manager before the redesign) when viewing the Form and click Download. Once you have that file you can upload that same file to a different Form. Note that Case Management settings will not be copied. |
H: Google Sheets Alternate Row Color by Unique Sorted Values
In Google Sheets there is now the Alternating rows formatting. It's almost the equivalent of of tables in Excel.
Background
What if I have a sheet that is sorted by Invoice #'s, my unique number associated with a bill I send out to someone, but that someone breaks my invoices up into multiple line items associated with their own number called a Purchase-Order-Number.
Question
How do I Highlight every other invoice such that I can more easily distinguish which Purchase-Orders belong to which Invoices?
Additional Applications
Any sheet sorted by a particular column whose values are not unique. For instance, if you have sales agents, and you want to highlight every other agent.
AI: Scenario
If you have 500 items, in column B, but only 20 of them are unique invoices due to them being broken up into purchase orders. It makes sense to keep them separate so you can more easily reconcile checks that are written to you.
Solution
The solution I came up with involves using the custom-formula for conditional formatting.
If column A is the Purchase-Order Numbers ( that are entirely unique ) and column B are your invoices that repeat multiple times. Assuming you have headers in row 1.
=ISODD(MATCH($B2,UNIQUE($B$2:$B),0))
Explanation of Solution
UNIQUE() is an array returning formula that is exclusive to google sheets (it does not work in excel). This allows you to figure out how many unique invoices exist within column B. So UNIQUE($B$2:$B) returns a list of only the unique numbers, removing all duplicates.
MATCH() returns an integer of where an item is located in a 1 dimensional range or array. I used it to look at each item in column B and find it's location within the array created by UNIQUE($B$2:$B) ; SO MATCH($B2,UNIQUE($B$2:$B),0) will look at cell B2, and find where it is located in UNIQUE($B$2:$B) and return a number that represents which place it is in the list.
=ISODD() returns TRUE or FALSE depending on the number you give it. For Instance ISODD(1) will return TRUE. So if we wrap ISODD() around our match-unique formula it will alternate with TRUE, FALSE per each different invoice. SO, =ISODD(MATCH($B2,UNIQUE($B$2:$B),0)) |
H: Is it possible to export Gmail folder organization to another "linked" Gmail account
I have a master Gmail account that is pulling in emails from a sub Gmail account.
The sub Gmail account has a lot of folder organization going on. I am now importing all those emails into my master email account. Would it be possible to somehow import that folder structure as well?
AI: This can be done with email client software since Gmail supports the IMAP protocol.
I use Outlook and Thunderbird, but should work with other desktop email software
Enable IMAP in your Gmail account: Navigate to Settings -> Forwarding and POP/IMAP. Under IMAP access ensure that “Enable IMAP” is checked. Click Save Changes.
Navigate to Settings -> Labels. Make sure that every system label you want to backup has a check mark for “Show in IMAP”. By default “Chats” is not checked, so make sure you check it. The only labels you should uncheck during this process are the Spam and Trash labels.
Export sub account Filters Navigate to Settings -> Filters. Each filter you’ve created has a distinct entry with a checkbox beside it. Check each filter you wish to backup and then click the Export button at the bottom. Your will be prompted to download “mailFilters.xml”. Save this file for later.
You can use our IMAP-enabled email client to transfer all our emails and chat logs between accounts.
CLIENT
Setup the Gmail account in your client software, based on google support instructions https://support.google.com/mail/answer/7126229
Using Thunderbird in this example
After installing Thunderbird, run it. Follow the instructions in the setup wizard, plugging in your sub Gmail account and password. If it doesn’t automatically pull your email account, click the Get Mail button in the upper left hand corner to confirm Thunderbird can connect.
Review the folders in Thunderbird make sure they are the Gmail labels
Once you’ve plugged in the login information for your sub Gmail account and confirmed you can connect to it, you can then add the main Gmail account
Click on the Menu icon in the upper right hand corner and navigate to Options -> Account Settings.
At the bottom of the menu pane there is a drop down menu labeled Account Actions. Click on it and select Add Mail Account. Add the login information of your main Gmail account. In the main Thunderbird navigation panel, you should see both your old Gmail account and your new Gmail account listed.
Installing Copy Folder: You can manually copy your email and chat files between folders but usually no verification system.
Or use a Thunderbird add-on called Copy Folder. Click on the menu button in the upper right hand corner and select Add-ons. In the search box type in “Copy Folder”. This specific add-on is Copy Folder by jwolkinsky. Click Add to Thunderbird and return to the main Thunderbird interface.
In Thunderbird, right click on the top listing for your old Gmail account
Once you’ve installed the add-on, navigate to Options -> Account Settings. Within the settings for your old Gmail account, ensure that under Synchronization and Storage “Keep message for this account on this computer” is checked..
You can do an IMAP account to IMAP account transfer but by copying it to your local machine first you cut down on the risk of errors and you’ll have a local backup of your entire old account.
Copying Labels Folders to Your Local Machine copy the contents of our old account to our local machine.
NOTE: The root directory for the local machine is Local Folders and the root directory for your new Gmail account is the gmail address, the folder structure needs to match up perfectly when you copy it. Copy Folder always gives you a confirmation when you select your folders. Check the confirmation each time you copy to make sure directories match (e.g. Local Folders > Inbox to Gmail > Inbox).
Repeat this process for all the Local Folders you wish to copy to your new Gmail account.
Importing Your Filters When the process is finished, log into your new Gmail account. Navigate to Settings > Filters. Click on Import Filters at the bottom of the screen and select the MailFilters.xml you saved during the filter export process on your old Gmail account. |
H: How to Auto Calculate the Missing Column
Let's say you have two columns that are related to each other by a simple formula. Perhaps Column A has monthly expenses and Column B has the expenses annualized. Now, for some rows you may want to enter the annual expense and have the monthly expense calculated, and other rows you may want to enter monthly expenses and have the spreadsheet calculate the annual expenses. One solution I have is as follows:
Column A Formula
=IF(NOT(ISBLANK(B3)),B3/12,)
Column B Formula
=IF(NOT(ISBLANK(A3)),A3*12,)
Ignore for the moment that I should probably be using ARRAYFORMULA which I only just discovered in searching for an answer to this question. The above two formulas will form a circular dependency.
AI: =IF(NOT(ISBLANK(B3)),B3/12,) and =IF(NOT(ISBLANK(A3)),A3*12,) will not work the in the manner you are thinking because, initially both cells, A3 and B3 are blank, therefore both forumlas will try to calculate a value which will make them non-blank; which means the formulas should not calculate a value, which means, …
Instead of ISBLANK() use ISFORMULA(). This will test the content of the target cell for a formula, not simply whether the displayed content is blank. Entering a literal numeric value:
=IF(NOT(ISFORMULA(B3)),B3/12,)
and
=IF(NOT(ISFORMULA(A3)),A3*12,)
Note that your manually entered values must not be entered as a forumla. That is, enter your expense values as their simple numeric values
2.54
and do not prefix them with and equal (=) character—an equal prefix signifies a formula.
=2.54
This will cause the NOT(ISFORMULA(…) check to fail and no value will be calculated. |
H: How to create a field that shows results based on another field's selection?
I'm building a form for signing up to car services. I want to set up a choice field that shows value-based results depending on the user's selection in the first choice field. To be more specific; If first field choice (Car Manufacturer) is "Audi", second field (Car Model) shows only Audi models (because there are many of them, all Audi models have been assigned a value "1".
AI: I'm a developer with Cognito Forms.
We do not offer a way to hide or disable choice field options at the moment, this is a feature on our Idea Board.
You can set up several Choice fields that only contain car models for the different car manufacturers. You can then use the 'Show When' logic and check to see what choice field option was selected. You can then have your different car model Choice fields show up when the car manufacturer option they relate to has been selected. |
H: How to know current background image name on Trello?
I want to get the name of my current Trello background so as to share to my colleagues.
I tried to look all around Trello menus but failed to find a way to do so.
So if you know how to get the background name, please share.
AI: Using Chrome:
Select the background for your board.
Press CTRL+Shift+I (Inspect)
Under the Elements tab see the < body > tag and copy the last part of the link. (e.g. "photo-1495313637066-a8afb6a68bfe")
You can share that with your friends to find it.
The background images are from Unsplash, so you can also use the link to download the image or follow the collection of that artist and find the image you need and download. |
H: How to freeze a block in Google Spreadsheets?
Lets say I have hundreds of rows in A B C and I have some calculation in a block from E1 to G11.
Is there a way to freeze that block, so when I scroll down and change something at say row 300 the calculations stick and I can see the result without scrolling back up?
AI: At this time Google Sheets only is able to freeze rows from top to bottom and columns from left to right, it's not possible to freeze a range in the middle of other columns.
One alternative is that you open two or more windows, one for the range that you want to keep "freezed" while you scroll around in the others. |
H: Remove blank choice in a drop down field
I'd like to get rid of the very first blank choice that populates all the drop down fields on my form.
How do I do that?
AI: I'm a developer with Cognito Forms.
We do not have a way to remove this blank section in the drop down list, unless you want to enable 'Allow Fill In' for the Choice field. |
H: How to calculate variance with criteria?
I would like to know how to calculate variance (VAR, VARA, VARP) with criteria as in AVERAGEIF and AVERAGEIFS. The VARIF function does not seem to exist. This question also applies to others functions such as median, etc.
AI: The FILTER function can be used to first select the parts of the range that meet your criteria. That result can then be passed to VAR (e.g. =VAR(FILTER(source_range, condition))).
FILTER can also be used to filter one column based on a condition on another column. For example, if you have columns:
x | 1
y | 2
x | 3
You can find the VAR for the rows that have x in the first column like this:
=VAR(FILTER(B:B, A:A = "x")) |
H: Get traffic statistics from Google Maps for a future trip
I would like to know traffic statistic information in order to for example predict how long tomorrow I will spend to go from home to work in case I will get out one hour later than usual. I suppose Google should have such information, but how I can retrieve it?
AI: Go to Google Maps and get driving directions. (For instance, Downtown Washington DC to Dulles Airport.)
On the left, under the start and end points, is a menu that says "Leave now". Click that and change it to "Depart At". Modify the time and date to your projected departure time.
Your projected routes will be adjusted for what traffic typically looks like for the day of the week and time you're looking at. (Here's DC to Dulles at 5:00 PM on a Friday.)
Note that you can't change your depart/arrival times if you use the multiple destinations feature. |
H: How does YouTube detect connection speed without testing/using all speeds?
When right-clicking on a YouTube video, open "Stats for nerds". You can see a column "Connection Speed" which, to my surprise, is usually correct. But how does it know?
A normal speedtest will of course show the maximum bandwidth, but YouTube is not doing that. "Network Activity" shows how much YouTube is really using (I confirmed that by another speed meter).
p.s., Youtube is not stress testing periodically; the "Connection Speed" updates in normal video playing.
The "Connection Speed" value is also correct on various pings. I tried VPN all over the world, from 10 ms to 400+ ms.
AI: Generally, the way you measure connection speed is by having the user download a file (or files) of known size and measuring the time this takes. This gives you speed (i.e. data transferred over time). See "Checking someones bandwidth and loading content based on it"
for a JavaScript implementation. Another example of this is fast.com, which is Netflix's speed test website. When I open my browser inspector on the page, I see it repeatedly requesting the same 25 MB file over and over again:
p.s., Youtube is not stress testing periodically; the "Connection
Speed" updates in normal video playing.
In the case of YouTube, the video itself (or the parts that comprise it) is a file of known size and your browser is downloading it, so with that information, your connection speed can be determined. |
H: What are "other contacts" in the new Google Contacts?
The new Google Contacts (Material) seems to have made a clear cut between
"My Contacts" (the contacts which were before in the "My Contacts" group) and which are synchronized to mobile devices
and "other contacts" which is a trashbin-looking group with contacts auto-generated, or the ones which were not in the old "My Contacts" group.
What is the status of "other contacts"? Is it possible to have it synchronized? is it possible not to have it auto-populate?
AI: "Other Contacts" consists of:
Contacts you've sent email messages to that weren't already in "My Contacts", if you still have that setting on in Gmail. (Stop Gmail from automatically creating contacts)
People who are (or were) in your Google+ Circles. (How to remove Google+ Circles contacts in Gmail contacts?)
I also see contacts I have imported but removed all of the labels (groups) without editing them.
You can keep it from auto-populating by changing that Gmail setting. Not much you can do about what it does with G+ Circles. And make sure all of your contacts have labels. |
H: Include Cell Content as Part of Hyperlink
I have reviewed other questions which get 'close' but don't quite address my issue.
I have a range of cells like (which we will call A1,A2,A3)
Bob
Charlie
Mary
within each cell I would like to embed a hyperlink in each cell in that range
which would look something like: =HYPERLINK("http://www.myURL.com/user/" & A1,"Bob") so that the URL effectively becomes http://www.myURL.com/user/bob
This (understandably) creates a 'circular reference'...Is there anyway around this?
AI: This (understandably) creates a 'circular reference'...Is there anyway
around this?
You can get circular references to work by going to File > Spreadsheet settings > Calculation > Iterative calculation in your spreadsheet and switching that to "On".
You can also set the number of iterations the circular references will be calculated for. For your case, you might need to set this to 1 or 2 or something like that to get the exact behavior you're looking for. |
H: Why are my edits and presence anonymous in Google document when I'm signed in?
I edited a Google spreadsheet document, while logged with my Google account. After looking into revision history, I could see that the revision is not under my name but under "All anonymous users".
I also tried to open the document in another window. I could see "Anonymous Kangaroo" in the list of active users instead of my own name. When I open the chat while logged in, it also shows anonymous animal name:
Why is this happening?
AI: It's probably because you weren't invited individually to the file:
If you share your file with a link, you may not see the names of
people who view it.
People you didn’t invite individually will show as anonymous when they’re in the file.
People you invite individually will show by name when they’re in the file.
You can only see other people’s names when you give them individual permission to view a file or if they are part of a mailing list.
From: https://support.google.com/docs/answer/2494888?hl=en |
H: How to view Gmail account changes by administrator?
In my company there was some mishap by admins and this lead to change employee Gmail account password resets several times (at least that is the reason that they give out for us).
What I need to know is there a way to get these password changes records (what I need is password change date, time and who invoked the reset password) just for my account?
ex -
password change : 2017/04/04
reason : administrator reset
A record like above is sufficient.
AI: This should be possible to see in the Admin console audit log. If you are an administrator of the domain, you access it this way:
Go to http://www.google.com/a/YOURDOMAIN.COM and log in.
Click Reports → Audit → Admin.
You should now see a table with the following columns (from Google's documentation):
Event Name
Event Description
User
You are looking for a row where Event Name is something like reset user password, Event Description should mention the account being affected by this, and User would be the name of the administrator who performed the change.
See Google's documentation: https://support.google.com/a/answer/4579579?hl=en
If you are not an admin, your possibilities are limited. You may still be able to see when your password was last changed:
Go to https://myaccount.google.com/ and log in
Click Sign-in & security → Google Login in the left hand menu
The right hand panel now shows some information, look for Password - Last changed. |
H: Reformatting a text string (hash tags) in Google Sheets / Apps Script
I have a spreadsheet in Google Sheets; one column tracks hashtags that were used in blog posts on a website. The posts are written on the website, and then the hash tags are copied from the website and pasted onto the sheet.
The problem is that the hash tags are formatted on the website in a strange way (they cannot be input as plain text because the designer hated making things easy), so when they are copied to the clipboard, they have no spaces like this:
#sex#drugs#rocknroll
However, I need to format them with a space in front of the #:
#sex #drugs #rocknroll
Right now I'm manually inserting the spaces, but sometimes there are 20 hash tags per post, so that will be painful long-term. Is there a way to automatically insert the space in Google sheets, or using Apps Script?
AI: It seems what you want is a very simple Replace # with # (hash with space hash).
If to skip a space at the start an alternative is the following formula:
=trim(substitute(A1,"#"," #"))
An alternative for skipping a space at the start, without an additional column, is to use a regular expression in Find/Replace:
Find: (.)(#)
Replace: $1 $2 |
H: Constrain a Array formula result to a list in a single cell
I'm using a formula that returns an Array of strings, so the result overwrites a range of cells, but I want to get the result in just that one cell.
(The actual formula I'm using is WIKISYNONYMS from a 3rd party add-on, but that shouldn't matter.)
I tried using ARRAY_CONSTRAIN, eg.
=ARRAY_CONSTRAIN( WIKISYNONYMS("en:Berlin"), 1, 1 )
But that throws away all the data that would have gone beyond the constraints, rather then constraining all the data to that one cell.
So I tried using concatenate, eg.
=CONCATENATE( WIKISYNONYMS("en:Berlin") )
And that is close, but I need to add ", " or something like that between each entry for readability.
AI: You can use JOIN to stitch the pieces together with a given delimiter:
=join(",", f o r m u l a ) |
H: How to create a dynamically updated floating table
In Excel I'm able to create a floating image which references a set of data and updates dynamically, which effectively creates a dynamically updating floating table. (See https://superuser.com/questions/547564/how-can-i-create-a-floating-text-box-in-excel-that-contains-data-from-a-workshee)
However, I can't seem to figure out how to do this in Google Sheets. Is there a way that I'm just missing?
Second totally unrelated question: In Google Sheets, is there a way to create one sheet, and then duplicate it but have all of the duplicates update with any changes made to the original sheet?
Ultimately, I need to have multiple sheets all formatted identically but with different data entered into each. I'd like to make it so that, should I need to make any changes, like adding a column or something, I can do it to the original sheet and all of the ones referencing it follow suit.
AI: I am not sure about a dynamic image, however you could have a dynamically updating data set by using the Query function. As you update data, it will automatically update based on how you'd like to display the information. I suppose you could always just have one browser window that was open with this information in it.
Google Query Function Documentation
The importrange function would allow you to keep one sheet as your source of truth, and then import that sheet into multiple others.
Import Range Documentation
You can even take it one step further and imbed a importrange function within a query function. I'll provide you an example:
=query(importrange("spreadsheetGUID","range!A:Z"),"select * where Col1 is not null")
If this doesn't work for you right out of the gate: A) Make sure you
have edit permissions for both sheets you're referencing. B) Try to put just
the importrange function into the cell first, then grant permission
for the sheet you're working in to access the sheet you're trying to
reference.C) Make sure you have the right GUID in your import range call. It's located in the URL between ...spreadsheets/d/ and .../edit#gid=...
The above query would import from the sheet data referenced in the importrange function, and then you can perform your filtering using where clauses. NOTE: You must interpret the column letters into column numbers. If your range went from B:D in your sheet, the mapping would be like so:
B => Col1
C => Col2
D => Col3
Note that Col1 is also case sensitive, so col1 or COL1 would not work.
Another REALLY cool thing, is that you can even nest query functions in query functions using these column references. Here is an example of that (PS - this is a real example I harvested from a sheet I use):
=query(query(AA:AZ,"select AQ,count(AM) group by AQ order by count(AM) DESC limit 1"),"select Col2 label Col2 ''"))
Here, I'm getting the name (AQ) with the highest record count (count(AM)) in my data set (EG: John, 5). I only needed the count, but I had to group it with a name so I could get an accurate breakdown by name to get the top result. To slice the name off, I simply queried my query to get only the second column from my data set, which was the count of the name (AM). Then I labeled it using label Col2 '', so that the result only took one cell rather than 2 (1 for the cell label, one for the data result).
There is more, but I'll stop here. Seriously, if you learn the query function + importrange your spreadsheet game will jump TREMENDOUSLY! Have fun! :) |
H: Dynamically sum each row and column by arrayformula
This shouldn't be too hard, but I can't figure it out. Please have a look at this sheet. Sample:
| Jan '17 | Feb '17 | Mar '17 | Apr '17 | |
|-----------|--------------|--------------|-----------|-----------|
| | SUM COLUMN B | SUM COLUMN C | [...] | |
| SUM ROW 3 | 0.00 | 0.00 | 13,954.00 | 13,954.00 |
| SUM ROW 4 | 0.00 | 0.00 | 0.00 | 0.00 |
| [...] | 0.00 | 0.00 | 0.00 | 0.00 |
I need to sum all each column in Row 2 and each row in Column A. However, since the columns and rows in this document are added dynamically, I want to accomplish this by using an arrayformula or similar.
I've tried using
=MMULT(B3:AK,TRANSPOSE(ARRAYFORMULA(COLUMN(B3:AK)^0)))
for summing rows in column A, this will yield incorrect results when a new column is added. Extending the range to B3:AAA causes errors in MMULT.
Any ideas?
AI: I would use custom functions for this.
Column sum in B2 would be =columnSum(B3:1000000) and row sum in A3 would be =rowSum(B3:1000000). The functions perform the summation required, treating blank cells as zeros (something that mmult has a problem with).
function columnSum(values) {
return [values.reduce(function(sums, row) {
return sums.map(function(s, i) {
return (s || 0) + (row[i] || 0);
});
})];
}
function rowSum(values) {
return values.map(function(row) {
return row.reduce(function(s, x) {
return (s || 0) + (x || 0);
});
});
} |
H: LinkedIn limiting number of views of public profile; requires joining/login for more views
My LinkedIn profile allows public viewing of my full profile. So even non-LinkedIn members should be able to see it, right?
But that's not what's happening. I've tested on multiple computers, browsers, and phones. And I've dumped cache to be sure I was starting a fresh test.
In all cases, LinkedIn insists on signing in to see the profile.
See screenshot for settings. Is there something I need to change in the "Customize Your Public Profile" settings? Or something I need to change elsewhere in LinkedIn? Or maybe I misunderstand LinkedIn's own explanation about how the public view works?
AI: Comments that others could see my profile suggested that something other than my settings was the issue. Based on further research and testing, here are my findings:
LinkedIn has limits on the number of times that you can view public
profiles without logging in. https://www.linkedin.com/help/linkedin/answer/69654
The LinkedIn counter appears to be tied to the IP address. Turning off
Wi-Fi and switching to cellular generates a new IP address and "fresh"
access.
The LinkedIn interface can be deceiving. My first two or three
views in cellular opened a clean view. On subsequent views, a LinkedIn
"Join" window overlaid a dimmed out view of my profile. Then I
noticed "See more" at the bottom of the screen. I scrolled and saw
everything. |
H: How do I create a PushButton in Google Apps Script?
I'm new here in this site and also new in Google Apps Script.
I'm trying to find an example to create a Pushbutton inside Google sheets.
I've found something saying it is "deprecated".
What I expect to do is putting a button called "Move to Sent" that when pressed must count some lines till the line saying "END" and then move the content of those lines to another location in the same sheet.
It looks quite simple to me but I've got stuck in the very beginning.
Some help would be appreciated at least to point me in the right direction to find out.
AI: As said in the deprecation message you found, user interfaces can be created with the HTML Service.
But if you just want to create a button that is displayed in your sheet, there is an easier way.
Click Insert → Drawing and draw a text box. Give it a background color and a border, so that it looks something like this:
Make sure you position the text box to the very top left corner of the drawing editor window.
When you're satisfied, click the Save and close button to return to your spreadsheet. The button (your drawing) is now positioned on your spreadsheet. You can click and move it anywhere you want.
Now click the button to select it, and click the little down-pointing triangle and select Assign script:
In the prompt that pops up, assign a function name to your button, e.g. clickMe.
Next, click Tools → Script Editor to open the Script Editor window. Here, define your function clickMe (or whatever you entered in the Assign script popup):
function clickMe() {
// Here, implement your script logic, e.g.:
Browser.msgBox("You clicked me");
}
Click the Save button (give your script file a name when prompted) and return to your spreadsheet. Try to click the button. The first time you do so, you will be asked to give the script permission to run, and to access your spreadsheets. Having done so once, clicking the button will show a popup saying You clicked me.
I have created an example spreadsheet to demonstrate, feel free to copy it. You have to be logged in order for the button to work. |
H: How to reference attachment id in form?
When using a multimedia question, I've noticed that the image/video/recording gets saved to an attachment ID on CommCareHQ. Is it possible to save or reference that ID in the form so that I can save it to a hidden value?
AI: CommCare automatically generates an attachment ID when multimedia is attached to a form. To save or reference this ID, you can create a hidden value and set the calculation equal to the media capture question. If you need to refer to this attachment ID in another form, you can save the hidden value as a case property and reference it as required. |
H: How do I write data to a single range in Google Apps Script?
I'm new here (second post) and also new in Google Apps Script.
I'm trying to find out how to write data to a single range in a spreadsheet using Google Apps Script.
Looks like Google Help in the section Writing data
is not good enough
to explain to beginners, for example, how to write TEXT in cell B5.
AI: You start by getting a reference to a Range with the getRange function. Once we have that, and since this range consists of a single cell, we can use the setValue function:
var range = SpreadsheetApp.getActiveSpreadsheet().getRange("B5");
range.setValue("TEXT");
... which will write TEXT to cell B5.
If you have a multi-cell range (which is more common), and you don't want to write the same value to all of the cells, you need to use the setValues function (note the plural), which takes an array of arrays ([[]]) as argument:
var range = SpreadsheetApp.getActiveSpreadsheet().getRange("B5:C5");
range.setValues([ ["This is column B", "This is column C"] ]);
In this case, we have two cells on the same row, so the outer array has a single element: the inner array, which again have two elements - one for each cell.
Compare to the next example, where we want to write to a range that spans multiple rows:
var range = SpreadsheetApp.getActiveSpreadsheet().getRange("B5:B7");
range.setValues([ ["This is row 5"], ["This is row 6"], ["This is row 7"] ]);
And finally, let's write to a multi-column, multi-row range:
var range = SpreadsheetApp.getActiveSpreadsheet().getRange("B5:C7");
range.setValues([ ["This is B5", "This is C5"], ["This is B6", "This is C6"], ["This is B7", "This is C7"] ]);
I have created an example spreadsheet to demonstrate these snippets - feel free to copy it.
Please note that any function that directly fetches or manipulates spreadsheet data directly, is slow, regardless of the amount of data involved. So keep the number of spreadsheet function calls low. If you want to update multiple cells, it is usually better to fetch the full array of values first, then update the values you want to change, and write back the whole array.
In this example, we have a spreadsheet with data from A1 to H8, but we want to update only two cells: D7 and G6. The rest of the cells should be unchanged.
var range = SpreadsheetApp.getActiveSpreadsheet().getRange("A1:H8");
var values = range.getValues();
values[6][3] = "This is D7";
values[5][6] = "This is G6";
range.setValues(values);
Note how we use range.getValues() to get an array of the existing values. Then we set the individual values in that array. Since JavaScript array indexes are 0-based, row 7 will be 6, and column D, being the 4th column, will be 3 - hence values[6][3]. Similarly, G6 will be values[5][6].
Finally, we write the array back to the range. We can update as many values we like in the array, while keeping the number of spreadsheet function calls low - only a single getValues and a single setValues.
From your comment it is probably worth mentioning how a pure function can be used from a spreadsheet. A pure function is a function that has no side effects, that is, its return value depends only on its arguments.
A pure function can be called from the spreadsheet with =functionName. Let's say you want a function multiplies an input value with 2, and returns its result. Enter this in the script editor:
function multiplyByTwo(num) {
return num * 2;
}
In your spreadsheet, let's say in cell A2, you would enter the formula =multiplyByTwo(4). A2 will then display 8.
You could also use other cells as arguments. Let's change the formula to =multiplyByTwo(B2), and in cell B2 enter the number 6. Cell A2 will now display 12.
Here's another example for pure functions, and read more about Custom functions in Google's documentation.
You can also return a multi-dimensional array, in which case the result will span several rows/columns in the spreadsheet. The function
function multiplyByTwoAndFour(num) {
return [[num * 2], [num * 4]];
}
can be used in cell D2 as =multiplyByTwoAndFour(3), which will cause D2 to display 6 and D3 to display 12. |
H: Move account and email away from Google apps, but still retain all other Google services, e.g., Drive, Analytics
I've got an email and user account (lets call it me@example.com) setup inside of a Google Apps account.
I have several domains and lots of users inside of this Google Apps account. All the other domains and users will stay with Google Apps; it's just this one domain and that domain's users (there is only 1) I want to move.
I want to move the email for *@example.com to another provider, but I would still like all my other Google products/services: Drive, Calendar, Analytics, Places, etc., to still work with this account.
I can easily change the MX record with my domain registrar to point at the new email host, which will point the emails to the new provider, but I'm unsure as to what to do with the Google account products/services as listed above.
I don't want to keep the me@example.com user as a paid user in the Google Apps account. In an ideal world I'd now like:
emails to be managed by my new email provider
my existing Google products/services to still be accessible by logging into Google with the same me@example.com login
AI: It appears that the only way to stop paying for a user is to delete them. This Google page explains that even a suspended user will still incur license fees.
This Google page describes what happens when you delete a user from a G-Suite organization. It essentially says that all of the data will also be deleted, some immediately and some after a bit of time.
G Suite access — The user can’t access any of your organization's G Suite services, such as Google Drive files, Gmail, and so on.
Files and calendars — All events the user created will stay on invitees' calendars. The user's G Suite data, including all file types, Gmail, and calendar data (except for shared calendars), is deleted after 5 days. For some data, you can transfer ownership to another user.
Sites pages — Pages created by the user aren’t deleted. As administrator, you can remove the sites.
Google Vault — All the user's Vault data is deleted after 30 days, regardless of any retention settings or holds that might be in effect.
Google Play — The user's Google Play developer account is also deleted. You can transfer some apps to another developer account, but apps that offer subscription products can't be transferred.
Google+ — The user's Google+ profile and circles are deleted. If the user is the sole owner of a community, collection, or event, it’s deleted as well.
Brand account — If your organization uses a Brand Account, any assets owned solely by one user, such as Google+ pages, Google My Business listings, and YouTube channels, are deleted immediately. If there are other owners, the assets are transferred to another owner’s G Suite account.
Non-core services — Content in the user's non-core services, such as YouTube and Blogger, is immediately deleted.
So, to continue using the non-email Google products with the same login, your options are:
keep paying for the G-Suite account
migrate all of your data to a personal account
Data migration is super complicated because each product has its own capabilities and instructions. Some of the instructions on this page might help, but they're designed for migrating between paid apps (just like the data migration tool). |
H: What are the benefits of case sharing via locations vs. case sharing groups
I am considering different case sharing configurations for my app, and am wondering what the main differences are between case sharing via locations/organizations versus case sharing groups.
Is the benefit of locations/organizations just the hierarchy of case visibility, or are there other benefits?
If I need the hierarchy, it's clear that locations is the best feature, but what if I don't need the hierarchy? Is there any benefit to using locations and setting up a flat structure?
AI: The organizations feature is meant to map to organization hierarchies, and is useful for larger projects where you may have, for instance, district managers who oversee a subset of the project. There is also a feature which allows you to grant web users access restricted to only data from their section of the organization hierarchy.
If your project doesn't have any sort of hierarchical structure, and you're specifically looking for a solution for case-sharing, then either locations or groups should work. Groups are also a little simpler to set up. |
H: Prevent viewing of different sheets to different users
I've got a workbook (is that what they're called in google sheets?) with several different sheets. I need to make it so that User1 can only view and edit Sheet1, User2 can only view and edit Sheet2, etc. However, Users 3 and 4 need to be able to view and edit all sheets.
This seems like it'd be simple, but I can't seem to figure out how to go about it.
Publishing the sheet doesn't seem to allow editing, and it doesn't look like you can prevent viewing through the Protect tool.
Ultimately, I need to have several sheets that users enter data into, say Sheets1-10, and a couple of sheets that reference the data in Sheets1-10. Each of the sheets in Sheets1-10 need to be visible only to particular users.
Right now I'm headed in the direction of creating Workbooks1-10 with just the single sheet in it and a master workbook that references those, instead of just the one workbook, but this feels like it will get quite cumbersome as more users are added over time.
AI: At this time it's possible to protect individual sheets from editing but it's not possible to protect them from viewing.
One workaround is to create create a spreadsheet for each user and add to that spreadsheet only the information that they should be able to view. It's worth to note that IMPORTRANGE could be useful for certain cases, in other you could require the use of Google Apps Script. |
H: Year function in Google Sheets gives unexpected results
Quick questions with Google Sheets.
I'm trying to extract the year from a date using the YEAR() function.
In the first column, I formatted all cells as dates, but in the second column, when I use =YEAR() and reference the first column I get really unexpected results.
Any ideas?
AI: The reason is that column is also formatted as a date. Format it as a number and you'll get what you're after.
Google Sheets stores dates as a number of days from 12/31/1899. Your YEAR() is appropriately pulling out "2010" (for example) but is then converting it to a date. 2010 days after 12/31/1899 is 7/2/1905. (The big clue is that the two sample rows you show are seven years apart in the first column, then 7 days apart in the second column.) |
H: Query specific values based on date ranges
Note: This doesn't have to be a query. Whatever works best!
I have the following data (anonymized) set in a Worksheet (File Upload Data)
A B C D E
Date Time Tenant Client Client ID
5/30/2017 9:13:35 client id 0 Test 0 id value 0
5/29/2017 13:05:44 client id 1 Text 1 id value 1
5/29/2017 13:14:53 client id 1 Text 1 id value 1
5/29/2017 13:27:13 client id 1 Text 1 id value 1
5/29/2017 16:57:43 client id 2 Text 2 id value 2
Where I'd like to, in another worksheet (in the same spreadsheet file) count the # of "Client ID" (E) values (unique) but only where the date is within ranges (yesterday, last 7 days, last 14 days, last 30 days, last 60 days)
I can't figure this out for the life of me. I keep getting hit with:
Unable to parse query string for Function QUERY parameter 2: ADD_COL_TO_GROUP_BY_OR_AGG: C
or some variance of an error message.
If the date ranges needs to be accomplished by hard-coding the values in, I can do that by spreading it across the columns. But, I have a bunch of columns that has data in this 'style', and once this is knocked down, I'd be able to replicate it across the rest of the spreadsheet.
Queries were as follows:
First I tried:
=QUERY('Sheet1'!A2:E, "SELECT C, SUM(E) WHERE C = 'client id 1'").
This got me the error message above.
Then I tried
=QUERY('Sheet1'!A2:E, "SELECT 'Sheet1'!C2:E SUM('Sheet1'!E)")
That got me
Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered "!"
Then I did:
=QUERY(
'Sheet1'!A2:E,
"SELECT C,
WHERE C = A2 AND WHERE A = 5/30/2017
"
)")
That got me:
Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered "WHERE" at line 2, column 17. Was expecting one of: "true"
Ad nauseam on attempts from there.
AI: Grouping
In general, aggregation functions such as SUM or COUNT are used in the presence of GROUP BY: one specifies how to group the rows so that summation or counting is executed within each group. You don't have any GROUP BY. It would make sense to group by E, so that you count each client id once.
Date format
When dates are used in a query, they have to appear like date 'yyyy-MM-dd', for example
where A >= date '2017-05-01' and A <= date '2017-05-21'
Creating such a string from dynamic dates (e.g., 60 days ago, =TODAY()-60 involves conversion to text using text and an annoying amount of concatenation:
"... where A >= date '" & text(today()-90, "yyyy-MM-dd") & "' and ..."
If you go this route, it is advisable to form the query string in its own cell so you can see what it is. query can take the query string by cell reference.
Alternative: filter
It's much easier to use filter for the task you described. Here is the count of unique values in E2:E where A entry is between 30 and 90 days ago:
=countunique(iferror(filter(E2:E, A2:A >= today()-90, A2:A <= today()-30)))
The wrapper iferror is included to suppress "#N/A" that filter returns when there are no matches. (As pointed out by ocWavean). |
H: Multiple uses of the same footnote
MediaWiki documentation:
To give a footnote a unique identifier, use <ref name="name">. You can
then refer to the same footnote again by using a ref tag with the same
name. The text inside the second tag doesn't matter, because the text
already exists in the first reference. You can either copy the whole
footnote, or you can use a terminated empty ref tag that looks like
this: <ref name="name" />. The quotes are not required (but still
correct) if the name contains no embedded spaces. The space before the
closing "/" may be omitted.
I understand how to use the same footnote several times, but not how to create a reusable footnote in the first place. What is the exact syntax?
example reference:
<ref>{{Cite web|url=http://stackexchange.com/sites?view=list#traffic|title=All Sites - Stack Exchange|website=stackexchange.com|language=en|access-date=2017-04-01}}</ref>
AI: Use <ref name="name"></ref> with the footnote you intend to reuse. For the example reference:
<ref name="name">{{Cite web|url=http://stackexchange.com/sites?view=list#traffic|title=All Sites - Stack Exchange|website=stackexchange.com|language=en|access-date=2017-04-01}}</ref>
Insert your own title inside quotation marks ("). |
H: Use an array/list as VLOOKUP search key
I have two sets of data. The first is an ever growing list of names, which we'll call Names (not necessarily a named range). Something like:
John
Bill
Bob
Steve
The second is also a growing set of data, includes (but is not limited to) the above names, and has some corresponding values. We'll call this Data.
John 4
Jack 7
Bill 6
Jane 1
Bob 9
Steve 10
What I'd like to do is iterate through Data, looking any items defined in Names, then summing their corresponding values. In this case, it'd return 29 (4+6+9+10).
I immediately thought to use VLOOKUP, as that's the normal function to use for matters like this. However, VLOOKUP seems to only accept a single value as its search key, so I'm at a loss.
AI: Let's say your names are in H1:H4, and your data is in J1:K6. Then to obtain the sum you want use the formula:
=sum(arrayformula(vlookup(H1:H4, J1:K6, 2, false)))
The key to the solution is obviously ARRAYFORMULA, which takes a single-argument VLOOKUP and iterates it over an array of arguments. |
H: How can I view or add reminders on the web version of Google Calendar?
I often set reminders in Google Calendar on the Android version, but when I check my Calendar on the web, those reminders are nowhere to be found. Even though this article states it should have been possible in 2016: https://blog.google/products/calendar/reminders-come-to-google-calendar-on-the-web/
I also checked the web version of Google Keep, since Calendar reminders seem to have a strange symbiotic relation with Google Keep notes, but my reminders aren't there either.
Maybe asking for a way to add reminders is too much, but I'd really like to at least be able to view my reminders without relying on a specific device.
Edit - My "creation dialog" also looks different from Walt's: there is no input for selecting reminder:
AI: Normally reminders are shown in Google Calendar along with events:
and are created in the same way, by selecting "Reminder" on top of the creation dialog:
Troubleshooting:
Check the list of "My Calendars" to make sure that Reminders are selected there.
You may be experiencing a transient issue with reminders not showing up in the web version of Google Calendar. (I had this a couple of days ago). If so, all you can do is wait until the hiccup passes. |
H: Compare single cell to multiple values
I have a cell in a spreadsheet that can have virtually any value. However, if that cell has one of four different values, I want a different cell to display certain text.
Right now I have this:
=IF(OR(A1="Cyan",A1="Magenta",A1="Yello",A1="Key"),"CMYK","Other")
Is there a simpler (less verbose) way to compare A1 to those values?
I looked at IFS() and SWITCH(), but they don't seem to be any less verbose.
AI: For the specific case on the question it looks to me that the formula included already has the simpler formula
=IF(OR(A1="Cyan",A1="Magenta",A1="Yello",A1="Key"),"CMYK","Other")
as the alternatives are more complex in one or another way.
IFS and SWITCH are pretty new Google Sheets built-in functions. Side-note: their help articles are not translated yet to Spanish. If they were found to not be any less verbose, then the following examples of alternatives will not found any less verbose either.
Using MATCH returns a number or an error and it requires that its second argument to be an array or a reference to a range. If it doesn't found the input value, it will return an error so it use for this case implies a way to catch the error.
Using VLOOKUP also requires that its second argument to be an array or a reference to a range. Also if it doesn't found the input value, it will return an error so it use for this case implies a way to catch the error.
The use of REGEXMATCH to be considered "simpler" implies that the formula writer feels comfortable writing regular expressions and that simpler doesn't mean shorter, as the resulting formula will be larger than the above formula. |
H: Pivot table on the results of a query
I have a sheet that consolidates raw inventory and sales.
Raw inventory takes the first few hundred rows. Then I have a query statement that pulls sales data from Cust_Sales.
When I run a pivot table to query this to get Uncommitted inventory, the query portion of the data is not included.
I have edited the data range of the pivot table to just the query portion, and I get a blank pivot table.
Is the result of a query only available for further processing under special circumstances?
AI: No. A pivot table can be created from cells populated by a query.
Check your selection range (etc.). |
H: How to show the license overview in GitHub?
but when I add the same LICENSE to my repo no overview is shown.
How to achieve this?
AI: If you use GitHub's built in way of adding a license, either when you create a repo or through adding a new file, it adds the overview/preview as well.
I don't know of a way to add the overview when you upload your own license file (not through GitHub's way of adding a license). |
H: Why does my email have random hyperlinks where there are none?
Just to elaborate on that, I typed out an email on Word and copied it to Yahoo Mail and I noticed that one paragraph had been hyperlinked automatically! There isn't supposed to be a hyperlink there! So, I deleted the text and typed it out again on Yahoo Mail and there was that hyperlink again. This happened several times, but eventually it allowed me to type it without a hyperlink. But after sending it, the same paragraph was hyperlinked again!
I tried clicking the link and it doesn't go anywhere. I tried copying the email text to Word and editing the hyperlink, but it just showed me that the link was empty.
I tried opening it on my Android phone - tapping the link opened a blank chrome tab, but long-pressing the link gave me this x-thread://-76874911/10984
There is no reason for the software to assume that it is a link. The entire para is just plain text, like "Once upon a time, email got weird etc. etc."
Any idea what that is? Or why some random text on my email got hyperlinked?
AI: This is a bit of a guesswork answer, based on the Q&A in comments. Feel free to add further detail if anyone knows how this may have happened.
My initial guess was that Word had some invisible embedded RTF instructions or similar, that it was carrying over in the copy/paste.
Experimentation has proven this to be the most likely explanation - though the 'why' remains elusive.
The 'simple fix' is to copy/paste from Word into any app that can only handle plaintext, then copy/paste back again, based on the theory that the 'RTF' data would either be exposed by this method, or discarded entirely.
This appears to be totally successful.
However, as the extra data causing the issue seems to be completely discarded in the copy via plaintext, I can't figure out exactly what is was that caused the issue. |
H: Can I host a private or unlisted livestream on YouTube?
I want to setup a private livestream for my classmates from university. I don't want the stream to be publicly available online, and Twitch doesn't have an option for private streams.
Is it possible to set up a private or unlisted stream on YouTube?
AI: Yep. Under "Live Streaming" -> "Stream Now" (or "Events"), set it as private to start like so:
Then under "Live Streaming" -> "Events" click "Share" then enter the email addresses of those whom you want to invite (separated by commas). |
H: Google sheet group column data and display values in row
I have a Google sheet with values like:
Column 1 Column 2
----------|--------------
A 256
A 271
B 270
C 262
A 266
C 258
D 257
I want to transform the data into the following:
Column 1 Column 2 Column 3 Column 4 Column 5
-----------|--------------|-------------|--------------|------------
A 256 271 266
B 270
C 262 258
D 257
I want to group the distinct values of Column 1 and then for each value add them to columns for that value.
I don't have a lot of experience with pivot tables but I could not get it to work because the values were looking for aggregates of some kind like SUM or COUNT. I don't want to aggregate, I want to list in columns all the values found for the group.
I hope this makes sense.
Anyone have any ideas how to do this. I am comfortable with APP Scripts but was hoping there was a quicker way than dozens of lines of code building a custom sheet.
EDIT #1: Peter's Answer
hi peter, thanks for the answer, the following works great for the first step
=SORT(unique('HOURS & MILEAGE LOG'!D7:D))
but the second step is not working for me. It is just copying the same values for every row. In the real sheet the unique column is actually D and it starts at D:7 and the values to be filled out across in the row are from column A:7 and down: see the following screen shot:
so I switched the transpose formula to:
=transpose(filter('HOURS & MILEAGE LOG'!A:A,'HOURS & MILEAGE LOG'!D:D=D8))
and this is the result:
the values you see are header rows for the type of vehicle, CHIEF, PUMP, TANKER etc...
I need the unit numbers between these rows to fill out to the right.
AI: You can accomplish this in two steps:
Create a new sheet Sheet2 and use the following formula for A1 (or wherever you want the column to begin): =unique(Sheet1!A:A). This will give you a vertical column of simply A, B, C, and D as the unique values in Sheet1's A column.
Combine transpose and filter in the cell adjacent to each cell in Sheet2 as follows: =transpose(filter(Sheet1!B:B,Sheet1!A:A=A1)). Here, you are filtering the second column of your Sheet1 according to whether or not the letter next to in Sheet1 matches the latter next to it in Sheet2. This normally prints vertically, so you use transpose to make it print horizontally, i.e. in the same row as you show above. Then, drag the formula down to apply it to each successive row.
The formulas in Sheet2 end up looking like this: |
H: Show only tweets in TweetDeck (exclude replies)
When I add some user as column to the TweetDeck I see both tweets and replies ("Replying to ..."). How to add a user and see only his tweets without/exclude replies?
AI: Make a column from the Search button rather than from User.
Then, customize the search as follows: from:[user handle without @] -filter:replies
So, if I wanted every tweet by the @StackOverflow account without their replies, I'd set the following as the search term in my TweetDeck column:
from:stackoverflow -filter:replies |
H: How can I speed up Google Sheets?
I'm looking for insights on how to make Google Sheets update more quickly. At present my spreadsheet has 22 sheets with 15 to 100,000 cells each. Mind you many cells are blank.
Cust_Orders
has a lookup on product code (Sheet Trees) to fetch product descriptions.
has a lookup on product code and size to get prices (Sheet Trees, and Sheet Standard Prices).
Inventory does a query on Cust_Orders to fill in what people have ordered. It also does lookups using Trees and Standard Prices.
Inv_Grouped does a pivot table on Raw Inventory to show what remains.
Anyway, at times when I update a number it takes well over a minute for the sheet to update.
I'm looking for a general set of guidelines to speeding up updates. A quick search for Google Spreadsheet optimization has found nothing of note.
Some of the sheets are reference only. They tend to be small, and mostly just keep similar stuff together.
After one good, but very general answer below, I'm editing this to try define what I'm looking for:
Here's a sheet that I use for trouble shooting to find all orders for a particular item:
=filter(Cust_Orders!A6:K3690,Upper(Cust_Orders!I6:I3690)=I2,Upper(Cust_Orders!G6:G3690)=G2,RegexMatch(upper(Cust_Orders!C6:C3690),C6))
Would a QUERY be better?
e.g. this is a query used to fill in the plant description:
=query(Tree,"select H where E = '"&UPPER($G3266)&"'",0)&" -- "&query(PriceBase,"select D where B = '"&I3266&"'",0)
Should I rearrange my data so that I can use VLOOKUPs instead?
Are conditional formats expensive?
Does it cost much to use named ranges instead of sheet!RC references?
Is it better to put intermediate results on a different sheet, or to put them in hidden rows or columns?
Is it worth while to try to arrange your sheet linearly so that dependencies flow in a particular direction?
There are likely a bunch of things I've not thought of.
AI: When we are looking to reduce the recalculation time of a spreadsheet we should try the following actions among others:
Reduce the number of formulas:
Avoid to do fill down/right across hundred or larger number of cells.
When this it's possible, use array formulas instead of filling down/right your formulas
Reduce the number of cells on the spreadsheet:
Remove unnecessary rows and columns.
Split independent sheets into several spreadsheet files.
Use FILTER(), ARRAY_CONSTRAIN() functions to get only the cells that are required for calculations
Reduce the number of cells that use custom functions.
While googling for advice on spreadsheet optimization and measuring recalulation time I found that in software engineering there is the concept of "code smell" which in simple words means bad code resulting of bad programming practices. Check out Detecting Code Smells in Spreadsheet Formulas
A couple of my posts related to this topic
Note: One of them is in Spanish, but try Google Translate or something similar.
My answer to Which changes will have the most impact on recalculation times for a very large and slow spreadsheet?
¿Cómo medir el tiempo de ejecución del recálculo de una hoja de cálculo de Google? |
H: How to make links that redirect you to the same document in google docs?
How to make links that redirect you to the same document in google docs?
I'm quoting some stuff in google docs. How can I make it similar to wiki style?
https://en.wikipedia.org/wiki/Wikipedia
I want to know how to use this feature when quoting:
To be redirected to the quote
Edit: It doesn't have to be a link. Notes (1,2,3,4,5...) that will allow me to do the same are just as good.
AI: From what I can gather, you are trying to create a system of internal links in a Google Doc. There are two effective ways to accomplish this.
One, take advantage of different headings from Format > Paragraph styles. You can modify the look and feel of these headings as you see fit. Then, when you highlight text to create a link, you will have the option of linking to the different headings you have created.
Two, create bookmarks within your document using Insert > Bookmark. This would be more suited to links that aren't headings but might be the start of a paragraph of something smaller that does not merit a heading. You can then create the link as with the previous option.
The design choice between the two is yours; you can mix and match them as well. |
H: Search & Replace Script in Google Sheets
I am scrapping info from a webpage into Google Sheets using scripts. The information contains addresses similar to 123 Test St, MKE
I am seeking help with a script that will take 'MKE' at the end, and convert it to 'Milwaukee, WI'
I have looked into regex replace functions but cannot solve this problem.
I have also come across code that assists, but does not complete what I am looking for.
function doTest() {
var sheets = SpreadsheetApp.getActiveSpreadsheet().getSheets();
for ( var i = 0 ; i<sheets.length ; i++) {
var sheet = sheets[i];
sheet.getRange('C:C').setValue('Milwaukee');
}
}
Any further suggestions?
AI: The regular expression that matches "MKE" at the end of a string is MKE$ where $ anchors the match to the end of the string. It's not necessary to use a script to perform such replacement: the regexreplace function is available, and it can be applied to arrays. For example:
=arrayformula(regexreplace(C:C, "MKE$", "Milwaukee, WI"))
If using a script to do the same, the logic would be
var sheet = ... ; // whatever sheet you work with
var range = sheet.getRange("C:C"); // or another range
range.setValues(range.getValues().map(function(row) {
return [row[0].replace(/MKE$/, "Milwaukee, WI")];
})); |
H: How to set up a CommCare excel import to update a case property to null
I have a case property in a CommCare app that has a value for a few hundred cases. This case property should never have been set for these cases. I have corrected the app structure to prevent the issue going forward, but I also need to set the value of the properties for existing cases to null using the Excel Case Importer tool. Setting the cells to empty or "---" did not work.
How should the Excel file be formatted in order to accomplish this?
AI: What you're trying to do is slightly tricky and has tripped up many of us, but fortunately it is possible!
I assume you tried to do an import with 2 columns, one for case_id with the IDs of all the cases you want to update and one for property_x, which you left blank or as "---". Unfortunately, excel importer ignores any cases where all of the values are blank or "---", so none of your cases were updated. :(
The way around this is to add a 3rd column to your import. I would make this column "name", as the name property should be non-null for every single case. The values for this column should just be the names of the cases as they are in a case export. Now when you do the import, every cases will have a non-null value to update, so the case update will not be ignored. This won't affect the name property, since you are updating to the same value that it was before, but it will update the property_x property to blank (just use an empty cell, not "---"). |
H: How to combine the numeric values of all columns with a similar second text field
I have a Google Sheets like this:
Hours | Project
2.5 ABC
0.5 DEF
1.0 ABC
0.25 GHI
1.5 DEF
I would like to create an output that shows me all combined hour values on a per-project basis, so something like:
Hours combined | Project
3.5 ABC
2.0 DEF
0.25 GHI
This seems a rather simple logic, but I don't even know what exactly to search for.
AI: The easiest way to achieve that will be with QUERY(). Assuming your data is in A6:B11, to obtain the result you want use the following formula:
=query(A6:B11, "select B, sum(A) group by B", 1) |
H: Trying to copy a cell formula with a dynamic range
Trying to figure out how copy and paste a formula using Google Script in google sheets. When I use the getFormula and setFormula it does copy the formula but it keeps the same range, it does not dynamically update the range like it normally does when you use the spreadsheet without a script. Wondering what I am doing wrong... here is my code
var source = formulaSheet.getRange(row+1,col-1).getFormula();
var target = formulaSheet.getRange(row+1,col);
target.setFormula(source);
AI: Use R1C1 notation instead of A1 as the first allows to use relative coordinates. For this you could use getformular1c1 and/or getformulasr1c1 and the corresponding "set" versions. |
H: Conditional color scale not working with functions
I want to apply conditional color scale but it doesn't work. This is the original cell (A12)in a sheet called ProcessedData:
= votes:[2074
Then, I use in B4:
= REGEXEXTRACT(ProcessedData!A12&".";"\b+[0-9]+\b")
to convert it to only numbers, so I have 2074 in the cell.
But it doesn't work with the conditional color scale. It only works if I write the number manually, and that isn't useful for me.
Any help?
AI: Okay, I actually solved it.
The answer is using VALUE() to convert a string to number, so using:
=VALUE(REGEXEXTRACT(ProcessedData!A12&".";"\b+[0-9]+\b"))
It works perfectly. |
H: What does an italic title of a Wikipedia article indicate?
The titles of most Wikipedia articles aren't italic (example article). But some are (example).
Making the title of a Wikipedia article italic isn't trivial and there is a special Wikipedia article about how the make a Wikipedia article's title italic but I wasn't able to find out why some Wikipedia articles' titles are italic. So why are they? What does it indicate?
AI: This template is used to help facilitate the Wikipedia Manual of Style, which lists a lot of different circumstances where Italics need to be used.
Also found on the guidance on Article titles:
Use italics when italics would be used in running text; for example, taxonomic names, the names of ships, the titles of books, films, and other creative works, and foreign phrases are italicized both in ordinary text and in article titles. |
H: Disable warning about "unintended external reply" in G Suite / Gmail
I'm trying to get rid of warnings about "the recipient xxx@yyy.com does not belong to your organization", which shows up for me pretty much every time I reply to someone not in my contact list.
https://support.google.com/a/answer/7380041 tells me to look at Apps / G Suite / Gmail / Advanced settings, which is fine, but I cannot find anything about "Unintended external reply warning" on that page, and there is nothing about how to "Select your top-level organization" either.
For me, the Advanced settings page has three tabs: General settings, Email addresses and Labs (titles roughly translated from Swedish), and neither of them mention anything about "unintended externaly reply" (in any language :)
Edit: this is on a free account
AI: I am also having this same issue. One of my G Suite accounts has many more options at the top, as seen here, which includes the ability to disable the "Unintended external reply" warning:
However my other G Suite account does not have these options, and is missing several others, as seen here:
I will note that the latter account (without the options) is the older of the two, which was grandfathered in under the FREE option...which could be a factor. |
H: Can I use location-based data access to restrict users' access to certain applications in a project space?
I have 3 applications in one project space, one per country for 3 different countries. I have configured an organization structure with different locations for each country, and supervisors below each country. I have configured the location-based data access to ensure that supervisors are only able to access data and reports for their respective country, but when I log in to HQ as one of these restricted-access supervisors I still am given the option to export data/reports for all 3 countries, even though I can only access the data for one of those countries (if I export the data for a different country the export is blank). Is there any way to restrict the access to the other applications as well based on locations?
AI: No, you cannot assign mobile workers or web users to applications. Using Locations to restrict access solely limits their access to data and reports. |
H: Why does Google Drive think I'm using so much space?
When I click on the little blue i to view my quota there is no way there's 7GB worth of used space. There's not a ton of revisions. All my photos take up zero space because I bought a Pixel XL. All my docs are Google Docs not Word Docs so they don't take up any space. The biggest files I have are a few PDFs which are manuals for my dishwasher or clothes dryer. They start at 8MB and get smaller.
That's the top of my quota list. How can I find the problem files? If it's a mistake, how can I request Google to reindex my GDrive and fix the limit?
AI: Make sure to check your trash as well because that also counts towards your quota and doesn't auto-empty.
After emptying the trash, it could take a couple of minutes before the X GB used number is updated. |
H: Is there an "add_months" function in xpath?
I know I can write something like: new_date = if(month = 12, date(year+1, 1, day), date(year, month+1,day)
But hoping there is some function that can do that for me instead?
AI: I sometimes write it in a rearranged format where I calculate the year, then the month, then the day and then concatenate. Depending on how the exact equations fall out (and because "year", "month", "day" are actually long expressions), it sometimes looks cleaner.
new_date = concat(year + if(month = 12, 1, 0), if(month = 12, 1, month), day)
This doesn't really solve the problem that there is no clean way to add months in our calendar (which are different numbers of days). Perhaps we should all switch to the Ethiopian calendar where every month has 30 days. Turns out this kind of calculation is one thing that is actually much easier in that system! |
H: How is Facebook targeting me with ads for a site that I viewed in Incognito mode?
I visited a site in Chrome, on a desktop computer, in Incognito mode. (I had received an email with spammy content but from an otherwise legitimate-looking source; I visited the source website in Incognito mode to confirm this if it was genuine or spam. It seems that an "share this by email" feature had been abused to send a spam message.)
Later, after closing the Incognito window, I visit the Facebook site. I see a Sponsored post from the website I viewed in Incognito mode.
This strongly implies that Facebook knows I visited the site, even though I was using Incognito mode at the time. I've confirmed in my browser history that I didn't inadvertently visit the site in the non-Incognito window.
How is this possible? I was under the assumption that an Incognito window did not carry forward any cookies or other persistent information. Is my assumption wrong, or is Facebook able to use some other mechanism to identify me in an Incognito session?
I have seen this behaviour once before (in that case, it was on two different devices - one desktop and one mobile, although I cannot remember which was viewing the site and which saw the ad in Facebook) so this does not appear to be an isolated incident.
AI: Incognito mode only prevents the browser from saving cookies, history, etc. It does nothing to prevent servers from recording other meta data about you. At the very least, you visited the spammy site and Facebook using the same IP address. That's an easy way to connect the two browsing sessions.
I've also heard of other ways to profile you, based on user agent string, screen resolution, and even the patterns in your typing and mouse movements.
If you want to hide your visits to spammy sites from the sites themselves, use a VPN. |
H: How do I find a product name from a product key?
How do I get individual labels (names) for different products keys? I want to detect the product key and based on that assign the right product name to it.
If it was just one product key in question, this could be easily done using IF function as in IF(H2="Product Key","Product Name") but there are many product keys.
The project is to scan a barcode and pull up its name.
AI: As commented by pnuts, you could solve this with the VLOOKUP function.
Create a list of all your products and their keys:
| Column A | Column B |
---------------------------------------
1 | Product key | Product name |
2 | 1234567890001 | Corn Flakes |
3 | 1234567890002 | Coco Pops |
4 | 1234567890003 | Special K |
5 | 1234567890004 | All-Bran |
6 | 1234567890005 | Rice Crispies |
Now, anywhere else in your spreadsheet, let's say cell G4, create a formula
=VLOOKUP(G3; A2:B6; 2; false)
Then, in cell G3, try to enter a valid product key. G4 should now display the corresponding product name.
The VLOOKUP function first takes an input value (from cell G3), then a list of keys and values (A2:B6), then a boolean specifying if the list is sorted or not, which we for now can leave at false.
I have set up an example spreadsheet to demonstrate, feel free to copy it for your own experimentation. Also, see the documentation for VLOOKUP |
H: Can I use the export tool to output a case's 'parent_id'?
It seems like the information is there in the JSON. I've tried indices[0].case_id and indices[1].case_id but neither worked.
Alternatively, if there's a way to export all the child_ids from a parent case that would solve my problem too.
AI: You can access the parent case ID with the following expression:
indices.parent.case_id |
H: Is there any way to change the default Gmail empty trash behaviour?
Gmail automatically in 30 days, deletes all the emails trashed by the user. Is there any way to change this default behaviour to 7 days?
AI: No, there's no way to change the default Gmail trash behavior. That includes making the duration shorter or longer.
You can create your own trash bin that does something similar, but it's kind of a pain and doesn't really do what you want. You'd have to add a custom label other than clicking the delete button every time (Via the "Labels" button then your custom trash label).
Then you'd have to create a filter (one time; under "Settings" -> "Filters and Blocked Addresses" -> "Create new filter") that "Has the words" label:custom-trash older_than:7d with the action Delete it ("Create filter with this search" -> "Okay" -> "Delete it").
But this only sends it to Gmail's trash.
To automate deletion of the trash at this point would require a userscript to open up the trash folder (using document.querySelector('[href="https://mail.google.com/mail/u/0/#trash"]').click()), clicking the "Empty trash now" button (using document.querySelector('.ya span').click()), then clicking the "Okay" button (using document.querySelector('.Kj-JD-Jl button').click()). But even still you'd have to run it with the page open, which kind of makes the filter useless...
TL;DR: No, it's not possible. |
H: View LinkedIn business page without login
I've created a LinkedIn business page as an administrator, but no one can see it without being logged in (login page redirect). I know that there are LinkedIn company pages that can be accessed without a LinkedIn account.
Am I missing something?
AI: This only seems to happen with the new 'company-beta'
For example, this redirects to log in:
https://www.linkedin.com/company-beta/7050191/
This does not:
https://www.linkedin.com/company/stack-exchange
You can use either, so just use the old way.
UPDATE
I've done the donkey work for you:
https://www.linkedin.com/company/rubicon-audit-consulting
If the user is logged in, it will redirect to the new beta page. If not, it will continue to the old page. Open an incognito window and try it.
For anyone else wondering how to do this...
Open an incognito window and paste the URL, then remove '-beta'.
For example, your URL is:
https://www.linkedin.com/company-beta/123456789/
Enter this in an incognito window: https://www.linkedin.com/company/123456789/
It will redirect you to the URL with the company name in (as long as it exists, of course). |
H: AutoFill Large Number of Cells in Google Sheets?
I have 10,000 rows in my Google Sheet and I want the following sequence to repeat (without using formula):
A B
1 Q_1 R_1
2 Q_2 R_2
3 Q_3 R_3
. . .
. . .
10000 Q_10000 R_10000
I went through THIS article, that suggests to select the 2 rows and drag the square at bottom-right, which is practically time consuming to drag it down to 10,000 rows.
How to do it without using formula?
AI: Enter this formula in the first cell: =CONCATENATE("Q_",ROW())
Select the first cell again.
Type Ctrl+C to copy.
Click in the address box (at the upper left corner of the sheet) and type in the range (e.g. A1:A10000) followed by Enter. This will select the range to be filled.
Type Ctrl+V to paste formula into all selected cells and you're done.
Alternatively, if you have Excel, you may use Home > Fill > Series... menu to do this without using a formula. |
H: How to get the reference ID of an extension case during a case export?
I am using a series of extension cases in my application (structure shown below) and need a way to associate the extension cases with each other after doing a case export.
Extension case structure:
Adult > Child (extension case) > Health Task (extension case)
When I download the case export for the health task cases, the indices for the associated child cases are blank, making it impossible to map the health task cases to their associated child cases.
Using the raw_doc ID search for the health task case I am able to find the reference ID for the associated child case. However, this only allows me to search for one health task case at a time.
Is there a way for me to extract the reference ID for associated child cases in bulk for all of my health task cases?
AI: The standard way to link exports between a case and it's parent case (or host case if you're using a host/extension relationship instead of parent/child) is to enable the section at the bottom of the Export Settings page called "Parent Cases" (select all boxes). Make sure [row] number is selected in the main case export.
Then when you look at your export in excel, you will have 2 tabs, the main one with the case's properties and a second one with the parent case ids. If every case in your export has a parent case, then the column for parent_case_id can just be copied from this tab into your main tab. If only some cases have parents, then you will have to use the "number" columns to match them up. Either way, you will end up with your export of all of the cases along with their parent_case_id. You can then use that id to link the cases to a separate export of the parent cases. |
H: How to sum only visible cells on Google Sheets?
As per question title, how to sum only the visible cells on Google Spreadsheets?
AI: I found the solution, which is to use the SUBTOTAL function with 109 as its first argument.
Here's an example that will sum only the visible values in the B2:B11 interval:
=SUBTOTAL(109,B2:B11)
In German and some other languages, you use a semi-colon instead of a comma:
=SUBTOTAL(109;B2:B11) |
H: Is there a way to organize the Cognito forms list into categories?
Is there a way to organize my Cognito forms into Categories?
AI: The ability to organize forms into folders is a feature that we are currently working on; you can follow our progress on this feature (or leave comments/suggestions) on our Idea Board. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.