text
stringlengths 83
79.5k
|
---|
H: In Google Sheets, can you apply a regex to a generated range?
I have a list of UK postcodes, looking roughly like this. Entries may not be unique.
A1 1AA
A1 2BC
A1 3PN
B2 4XY
B2 5LH
C3 6NJ
They're in a range named Postcodes. I've set up the following arrangement to count how many instances of each postcode area (the part before the space) there are.
A B (range "PostcodeAreas") C D
1 =SORT(Postcodes) =REGEXREPLACE($A1, "\s\w+", "") =UNIQUE(PostcodeAreas) =COUNTIF(PostcodeAreas, $C1)
I've extended the formulas in B1 and D1 downwards to cover the data output of the formulas in A1 and C1.
This works, and the output would be this for my example data:
A B C D
1 A1 1AA A1 A1 3
2 A1 2BC B2 B2 2
3 A1 3PN C3 C3 1
4 B2 4XY
5 B2 5LH
6 C3 6NJ
Columns A and B, being workings, aren't relevant to the target audience of the sheet, so I've hidden them. The end result is a nice set of counts in columns C and D.
All well and good. However, I can't help feeling that this can be optimized a bit. Particularly, I don't like the manually-extended formula in B1. Is it possible to write a single formula that applies the regular expression to all of the SORT() output? Which I could then perhaps even wrap in the UNIQUE(), and eliminate the need for working columns entirely? I've searched around a bit but couldn't quite find an answer.
AI: Assuming your data is in A1:A, try in B1
=query(ArrayFormula(iferror(regexextract(A1:A, {"^(.+)\s", "\s(.+)$"}))), "select Col1, count(Col2) where Col1 <>'' group by Col1") |
H: Should I use my personal GitHub account for work?
I have both a personal and a work GitHub account.
Switching between them is a pain; even though the CLI identity management is doable (1, 2), logging in and out from GitHub's excellent website is extremely annoying.
Is there anything wrong with using a personal GitHub account at work?
Is there formal GitHub advice on this topic?
AI: Yes. It's recommended that you use your personal github account for work.
On their help page Merging multiple user accounts:
If you have separate accounts for work and personal use, you can merge the accounts.
Tip: We recommend using only one user account to manage both personal and professional repositories.
On their help page Can I create accounts for people in my organization?:
While you can add users to an organization you've created, you can't create personal user accounts on behalf of another person.
Because you access an organization by logging in to a personal account, each of your team members needs a personal account. Once you have user names for each person you'd like to add to your organization, you can add them to teams.
It works. |
H: Gmail text overlapping when editing
I'm having a strange issue in Gmail.
I couldn't edit the text that was already typed. It overlaps the existing text. The cursor itself looks boxy instead of line.
It's hard to explain with text, So here is a GIF what I mean.
Any idea how to get rid of this annoying thing?
Some details
Chrome Latest
Windows 8.1 64 bit
I tried refreshing my Pinned Tab, But it still exist. When I opened in a new tab, it works fine but again after some days, again the same issue.
AI: As mentioned in comments, what you are experiencing is consistent with being in "overtype/overwrite" mode, as opposed to "insert" mode (the usual default). This mode is usually toggled by simply hitting the Insert or Ins on your keyboard. (Which might require a key combination on some keyboards - particularly laptops.)
I get the same result if I hit the Ins key whilst composing a Gmail message, although there is no indication as to the selected mode in Gmail (or the browser) itself.
Bizarrely a lot of other people seem to have experienced the same problem in Gmail without having knowingly triggered overtype mode on their keyboard. Although the threads I've seen on the subject don't appear to be entirely conclusive, it maybe that on some keyboards, overtype mode might be triggered inadvertently with some alternative key combinations. |
H: Change or add email address to Google account
My primary email address is going to be invalid soon. So I want to change my email address for my Google account. However, it seems that I can't change my email address and I can't even add a new email address. This is what it looks like:
AI: NOTE: On a recent comment to another answer, the OP mentioned that their domain is gulli.com, a German domain. According to Wikipedia, on May 2018 the domain was sold.
The email addresses of Google Apps accounts, including those of Google Apps for ISP, can't be changed by the user, only by the organization administrators. They should have access to the administration panel for your organization by signing into http://admin.google.com.
It's worth to say that when the original revision of this answer was posted it was not possible to change the primary domain of an organization [1], so if the domain will be invalid soon, then the organization information (the information of all the organization accounts) should be migrated. For details about how to migrate Google Apps information go to Migrate data away from Google Apps - Google Apps Help.
Nowadays G Suite allows to change the main domain. For details see Change your primary domain
Notes:
[1]Change your primary domain - Google Apps Help
Related
Google Apps for ISP EOL
Gulli.com (Wikipedia in German) |
H: Mark Tweets on Facebook with e.g. "from Twitter"
I have setup my Twitter account so that new tweets is automatically posted on my Facebook page. I would like these Facebook posts to be marked with "from Twitter" or similar tag, like it does with Instagram posts. Any ideas?
AI: The Facebook/twitter integration does that by default.
If you need something more than this, you probably will have to roll out something on your own |
H: Can I add a registration form to a Wordpress.COM page?
I want to create a simple registration form site for free in the fastest way possible.
WordPress seems appropriate, but I am not sure, whether the (free) .COM version supports such registration forms. Does it?
If it does, where can I find it?
AI: After further research I found what I was looking for.
There is no "Registration form" option in the free .COM flavor wordpress.
There is on the other hand a contact form. You can find it in the Add page editor in WP-admin as "add contact form".
You can customize this to your liking, add fields including radio and check buttons, simple text and such.
Then you can review the sent information in the WP-admin Feedback page, including downloading everything as CSV. |
H: Gmail freezing after opening on multiple browsers
I'm encountering a strange issue with Gmail where it will freeze and crash the browser tab within a few seconds of accessing it (while logged in or after logging in). It seems to be consistent across browsers and platforms — it happens in Chrome 40 and Internet Explorer 11 under Windows 8 on my personal laptop, and in Chrome 40 under Ubuntu 14.04 on my desktop at work.
I managed to quickly access Settings and disable the People widget as suggested here, but it did not help.
AI: I just tested in Firefox 37 under Ubuntu and finally got a useful error message:
A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.
Script: https://talkgadget.google.com/…
It seems like it might be related to this bug report.
Following this I turned off Chat:
Click the gear icon and choose Settings.
Click the Chat tab.
Choose "Chat off."
Click Save changes.
That seems to have fixed the issue. |
H: Automatic currency conversion
I would like to add an automatic conversion thing to my spreadsheet.
I have two columns, A1 titled Money in USD and B1 titled Money in BRL.
I want to make it so whenever I enter a value in the USD column, it automatically enters the BRL value to the BRL column.
I found this:
=GoogleFinance("CURRENCY:"USDBRL")
...but I don't really know how to work with it for my purpose. And basically, I don't know how to work with any functions at all.
Is that easy enough or even possible?
AI: The value of GoogleFinance("CURRENCY:USDBRL") is the value of one US dollar in Brazilian currency. This needs to be multiplied by the dollar amount that you want to convert. So, if B5 is the USD amount, the formula
=B5*GoogleFinance("CURRENCY:USDBRL")
will give the equivalent amount in Brazilian currency. |
H: Google Sheets Problem with Chart Axis
I have a Google Sheet with a some data that I need to chart. The horizontal axis should be a list of dates. When I plot the chart, though, it's inserting dates that aren't part of the data set. For example:
I've been playing with this for a while, and I can't figure out how to get it to use my actual headers as the axis rather than inserting dates that aren't there.
Any help would be greatly appreciated.
AI: If the row you are using for labels contains dates, the spreadsheet supposes that you need an accurate representation of time. So it arranges the data chronologically and marks the time axis at equal time intervals:
If you want the specific dates to be used as labels, this means they should be used like text labels. Select the top row and apply Format->Number->Plain Text:
Now the columns are labeled with the text from the top row, and they are presented in the order of appearance in the spreadsheet. |
H: Is it possible that I could see the mobile number of Facebook friends
Is it possible that I could see the mobile number of Facebook friends?
I saw the following post, but I did not find it because Facebook has changed.
How do I get the phone numbers of my Facebook Friends?
AI: You can get phone number of your friends by going into
His/her profile->About->Personal information
there you can find his/her mobile number.
If and only if he/she provided his mobile number and also only if it
is not secured it totally depends on his/her profile privacy settings.
If the privacy is set to "Public" no matter whoever you are you can
get that mobile number.
If is set to "Friends/Friends of Friends" then if you are direct
friend of his/her or at least if you have any mutual friends then you
can get the number.
If is set to "only me" then there is no way for you to get the number. |
H: Why won't my Google+ photos appear completely in Google Drive?
After enabling the new photos feature I waited a couple of days to let Google sync my 30K+ photos from Google+ to Google Drive. But now it's stuck for days without any indication of progress. How can I get every photo to Drive? Is there any way to restart this sync or something like that?
AI: When the feature was announced (http://googledrive.blogspot.com/2015/03/photosindrive.html) it indicated that new photos being uploaded would appear immediately, but that older photos would take longer:
You’ll start seeing your photos in Drive today—immediately if they’re new, and a few weeks for your entire library—so give it a try, and let us know what you think.
"A few weeks" is pretty vague - the process is still in progress. There is little you can do to force all 50,000 to show up, although doing something with older photos (resharing them to Google+, for example) has sometimes forced those particular ones to sync. |
H: Custom highlighting style on Google Spreadsheet
I am new to Google spreadsheet and I'm wondering if there are any other ways to draw attention to a box rather than just change its colour.
I want to emphasize a box drawing a circle on it.
I saw that you can draw a figure and assign it to a script, Is it possible to make it transparent and through a script be positioned over a box with a certain value? Or this feature is meant only to trigger scripts?
AI: It's possible to use Google Apps Script to insert an image to a sheet in a spreadsheet, but as far as I know, Google Apps Script doesn't have a service to draw that image, so you should create or get the image first.
If you are new to Google Spreadsheet and to Google Apps Script, consider to start learning about them at https://developers.google.com/apps-script/
UPDATE:
The Slides Service was added to Google Apps Script, so now it's possible to make a drawing there, but it's not yet ready to edit a box to draw a circle into it directly on Google Sheets, but it's closer :)
See Extending Google Slides.
Related Q&A on Stack Overflow
Modifying a drawing using Google Apps Script |
H: Google Form responses to match OU membership
We have some forms that we send out Domain wide, and require the user to login with their Google credentials. I'd like to collect the responses and display OU membership of the user, so we can determine which users in which OU's have not responded.
It's more of a way to see who has acknowledged that they have received a policy, instead of sending out a truckload of papers. However, keeping track of who responded is a bit of a manual process since I have to sort based on email address, then match up each OU.
AI: Overview
The built-in response summary of Google Forms is not customizable, but you could set your form to send responses to a spreadsheet and use it to do assist you to count the responses by organizational units. You could create a "master" spreadsheet to use as template to do the follow up of each Google Form.
Example of the "master" spreadsheet setup
Create a spreadsheet
Add an additional sheet
Rename the sheets as follow:
Responses
Roster
Responses
This sheet will be used as the destination for the responses of one form.
Roster
Use this sheet to hold the list of email addresses and the OU that each of them belongs to. This sheet also will be used to check if each email address sent at least one response. Columns:
Column A: email addresses
Column B: organizational unit
Column C: response
In the response column use the following formula
=ISERROR(MATCH(A2,Responses!B:B,0))<>NA())
Report
Insert a pivot table using the range of data in the Roster sheet.
1. Click the Data menu, then Pivot Table.
2. Write Roster!A:C, then click in the OK button
A third sheet will be created showing a blank pivot table and its settings panel. In the settings panel set the following:
Rows: Add the Organizational Unit field.
Columns: Add the Response field.
Values: Add the email address field. Summarize by COUNTA.
Rename the sheet as Report.
Next steps
Now the spreadsheet is ready as a "master" spreadsheet. You could use it to create a copy of for each of form that you require to do a follow up by organizational unit. After that, set Responses sheet as the destination of the responses of the corresponding form. |
H: AutoFill dates but skip weekends
I need to auto fill the some dates which is easy and I know how to do. However, I do not know how to do this skipping the weekends. I want it to auto fill skipping weekends and jumping to Monday.
AI: This can be done with a conditional statement involving WEEKDAY
Let's say you put 5/7/2015 in A2, and the conditional formula
=IF(WEEKDAY(A2)=6,A2+3,A2+1)
in A3. (Weekday=6 means Friday, after which two days are skipped). Dragging this down you'll see
5/7/2015
5/8/2015
5/11/2015
5/12/2015
5/13/2015
5/14/2015
5/15/2015
5/18/2015
and so on. |
H: I need to hide/show a group of columns in Google Sheets in a simple way
I need to hide and show in a easy way a group of columns in Google Sheets.
In Excel I used a Macro with a button, but in Sheets I cannot put a button.
How can I add buttons with custom functions in Google Sheets?
AI: It is possible to assign a function to a button in Google Spreadsheets, but in practice it's easier to add commands to the spreadsheet menu. This way you do not have to look for them in the spreadsheet, and they do not get in the way of your data.
Suppose you want custom commands "show/hide columns B-D, G". Create and save the following script in (Tools->Script Editor):
function onOpen() {
var menu = [{name: "Show B-D, G", functionName: "showColumns"}, {name: "Hide B-D, G", functionName: "hideColumns"}]
SpreadsheetApp.getActiveSpreadsheet().addMenu("Custom", menu);
}
function showColumns() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getActiveSheet();
sheet.showColumns(2,3); // B-D, three columns starting from 2nd
sheet.showColumns(7); // G, column number 7
}
function hideColumns() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getActiveSheet();
sheet.hideColumns(2,3); // B-D, three columns starting from 2nd
sheet.hideColumns(7); // G, column 7
}
Next time you open this spreadsheet, it will have "Custom" menu option with two commands, for showing and hiding this range of columns.
If you still want to trigger scripts by an embedded element in the sheet, see this illustrated example. |
H: How to automatically increase the exponent in Google Spreadsheet?
In a Google Spreadsheet, I put in the following numbers in a column, each line is an entry in the column.
100
100*1.01
100*1.01^2
100*1.01^3
The highest exponent of 1.01 is 3 for now. But I would like to keep filling this column until the exponent of 1.01 is 30. I can only do it by filling each entry in the column manually. How can I do this easier?
AI: Introduce the POWER function and use the ROW function to increment the exponent. Your second line would be,
=100*power(1.01, row(1:1))
Fill down and the ROW(1:1) will increment as 1, 2, 3, 4, 5, etc.. |
H: Automatically save Facebook photos where I have been tagged
I would like to automatically capture any photos post on Facebook in which I am tagged. For instance, a friend posts some photos from a get-together and I'm tagged in some. I'd like to be able to grab them before something bad happens (like the poster realizes that maybe some of them shouldn't have been made public).
Ideally I would get these photos in one of the cloud accounts I have, but any method of getting the image files would suffice (like email).
AI: A webapp like IFTTT - If This Than That is probably the easiest way to achieve this.
Sign up on IFTTT, use this recipe that I have published & click on Add recipe button (if required, you'll be prompted to activate the necessary channels) to automatically store a copy of the pic to Dropbox.
If you prefer, you can have the picture sent to you via email or via other options - you'll need to search/create a recipe of your own.
Caveat: Because of the way IFTTT works, it might take couple of minutes for it to be added to Dropbox, but it definitely does work. |
H: Blogger: Is post-preview URL stable?
I have written a Blogger post to report a security vulnerability in a popular online photo printing service. I have set an embargo (scheduled post) for this to go live on Tuesday at Noon.
There is a "preview URL" for this post similar to:
https://privacylog.blogspot.com/b/post-preview?token=zdVaO00_____xGn0Ig&postId=279___342&type=POST
I would like to send this URL to the vendor in reference to the issue. Can I be assured that this URL will continue to work when they receive it and if they open it in the future?
AI: This link won't work because it is a preview & for security purposes, a token is attached to the URL which is no longer valid |
H: Organizing Shared Gmail Account
I've recently been given command of a shared Gmail account and I'm trying to find a way to organize it well.
It's shared among 7 people, all of whom have different responsibilities and need to field different emails and respond to different threads at different times.
My initial thought was to make "folders" or have each person be able to tag an email with a certain color to signal to others that it is their responsibility and that they will take care of it.
I can't quite figure out how to do that unfortunately. Any help would be greatly appreciated.
AI: Individual Gmail accounts are not intended to be used by several users.
From Share an account among users - Google Apps Help (this apply to Gmail consumer accounts too).
Each Gmail account is intended and designed for use by an individual user. If you have multiple users frequently accessing the
same account from various locations, you may reach a Gmail threshold
and your account will be temporarily locked down
One alternative is use the mail delegation feature in Gmail. To learn about it, see Set up mail delegation - Gmail Help
Another alternative is to use a group of Google Groups as a shared Inbox. For details, see Use a group as a collaborative inbox - Google Apps Help. Besides the article mentions Google Groups for Business, the free version could be used for that too.
Regarding the way to organize email messages in Gmail, you could use labels. Labels can be nested as if they were folders. Also you could assign colors to labels.
To learn about Labels in Gmail, see Using labels - Gmail Help |
H: Is there a way to automatically delete messages older than a certain date with a certain label?
I have a ton of filters created that label e-mails in my inbox as they come in, so that I can easily discern between what groups they belong to with a quick glimpse. There are e-mails that get nested under, e.g. LABEL, and these are e-mails I read once and then archive, or sometimes just mark as read and archive (the subject line sometimes is enough to know what's going on inside it). However, after a week or so, the messages labelled LABEL are no longer of interest to me, and I delete them to prevent piling up of read and archived useless messages/e-mails.
What I want to know, is if there is some automatic way to get this latter part accomplished, since I now need to delete e-mails older than 7 days nested under LABEL manually. I know I can use filters to, in addition to adding a label to them as they come in, also delete or archive the e-mails. But that's not what I want; I want to be able to accomplish something like this:
E-mail comes in, filter acts upon it, and I see it labelled as LABEL as it drops into my inbox. This part is why a filter (as far as I could tell) is of no use for what I want, since I don't want the e-mail to skip the inbox;
I either read it or mark it as read, and then manually archive it;
It goes away from my inbox, but I can still access it through search, All Mail or LABEL;
It gets deleted 7 days afterwards, automatically.
Is there anyway to accomplish this? Either via the tools GMail has by default, or by some other means?
AI: Here's a script that is supposed to auto-purge older email messages: http://www.labnol.org/internet/gmail-auto-purge/27605/
I haven't tried it. |
H: Green arrow notifications Google Play Store developer console
I'm not quite sure when have these arrows
appeared as some sort of notifications but I'm also not sure what they mean.
What do they notify about?
AI: The following notification appears when unpublished changes are ready to be tested.
Source: Open the developer console ->Game services ->Choose your app->Publishing. There you will find what the notification arrows mean. Note that you can't see the explanation for the arrows there, unless you have changes to be tested. I hope this is enough of a source!
Cheers! |
H: Blogger: How can I add a "Code" paragraph type?
Blogger paragraph types are Normal, Heading, Subheading, and Minor Heading. How can I add a Code type that will set a small, bold, fixed-width font?
AI: You can add a Code style to your template (Template / Customize / Advanced / CSS).
But you cannot add the value to the drop-down menu in the post editor's Compose mode. Instead, to use the style you need to switch to HTML mode, and apply it manually with something like
<div class="yourClassName"> your paragraph of code </div> |
H: Static web hosting on Dropbox — index.html
To host my blog, I added a file called index.html to Public/blog in Dropbox.
https://dl.dropboxusercontent.com/u/01234567/blog/index.html
However, I get a 404 message if I try to access without the index.html. Is there anyway to get it to work? Possibly with the / at the end.
https://dl.dropboxusercontent.com/u/01234567/blog
See this article as well. The site works, I just want to take off the index.html at the end.
AI: Dropbox is intended for file sharing, not really web hosting and will even limit the traffic to your site if it gets too much traffic. If you are just trying to host some kind of blog I suggest using a blogging platform such as WordPress that allows you to create a free blog. |
H: Link to a filtered view based on params
I have a spreadsheet1 with the following columns:
name, country, value
In another spreadsheet2 I'd like to have set of clickable links based on parameters:
param1, param2, link
where:
link opens a new, filtered view of spreadsheet1, based on params from spreadsheet2
something like:
spreadsheet1 where name=param1 and country=param2
How can I achieve this in Google Spreadsheet? I know nothing about scripts yet.
AI: As I mentioned in comments, this can't be done as you wanted because of the lack of programmatic access to filtered views (until this request gets implemented).
So I wrote a script that does something along the lines that you wanted, but using the show/hide columns functionality. To simplify things, I am assuming that the data and the parameters are in different sheets of the same spreadsheet.
For example, suppose the first sheet of your spreadsheet is
+------+---------+-------+
| name | country | value |
+------+---------+-------+
| Alex | Canada | 111 |
| Mary | Canada | 222 |
| Alex | Brazil | 333 |
| Mary | Brazil | 444 |
| Mary | Canada | 555 |
+------+---------+-------+
and the second sheet has
+------+---------+
| name | country |
+------+---------+
| Mary | Canada |
| Alex | Brazil |
| Mary | Brazil |
+------+---------+
Instead of placing links in the second sheet, I opted for a simpler (for me) approach, a custom menu option:
To use this:
Click on any cell in the row of the second sheet that has the parameters you want.
Choose "Filter" from the menu
You should see the first sheet filtered by the desired parameters:
+------+---------+-------+
| name | country | value |
+------+---------+-------+
| Mary | Canada | 222 |
| Mary | Canada | 555 |
+------+---------+-------+
To go back to seeing all rows, use the menu command "Show all".
Here is the script that does all of this: copy-paste it to Tools->Script Editor (erasing the placeholder there). After saving it, you will need to close and reopen the spreadsheet to have the custom menu option appear.
function onOpen() {
var menu = [{name: "Filter", functionName: "filter"}, {name: "Show all", functionName: "clear"}];
SpreadsheetApp.getActiveSpreadsheet().addMenu("Custom", menu);
}
function filter() {
clear();
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getActiveSheet();
var cell = sheet.getActiveCell();
var row = cell.getRow();
var range = sheet.getRange(row, 1, 1, 2);
var values = range.getValues();
var name = values[0][0];
var country = values[0][1];
if (name&&country) {
sheet = ss.getSheets()[0];
var range = sheet.getDataRange();
var values = range.getValues();
for (var i = 1; i < values.length; i++) {
if (values[i][0]!=name || values[i][1]!=country) {
sheet.hideRow(range.getCell(i+1,1));
}
}
SpreadsheetApp.setActiveSheet(sheet);
}
else {
Browser.msgBox('Parameters not found in the active row');
}
}
function clear() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var lastRow = sheet.getLastRow();
sheet.showRows(1,lastRow);
} |
H: Subtract values in a list that fit certain criteria within Google Sheets
I've got this sheet where I do some basic accounting, and I want to be able to input the balance in my pocket every once in a while. The idea is that the expenses I record until the next balance will be subtracting from the latest amount recorded (through a form).
In order to achieve this, I'm attempting the following line:
=index(FILTER(J:J,not(ISBLANK(J:J))),rows(filter(J:J,not(ISBLANK(J:J)))),1)-dsum('Respostes hipotetiques'!$A:$E,"Quantitat",{"Cash?","Data de registre";"",">index(FILTER(i:i,not(ISBLANK(i:i))),rows(filter(i:i,not(ISBLANK(i:i)))),1)"})
J:J contains the list of balances, and that part works. The problem lies in the dsum statement.
"Respostes hipotetiques" is a sheet that holds some fake data, and the amount is recorded in Quantitat. Cash? is either blank or "n" for not cash (I don't want to take a bank transaction into account to update my pocket money), and the "Data de registre" holds the automatic timestamp from the input form for each record of expense.
Lastly, I:I is where the timestamp is held for the fake data.
I've been experimenting with several combinations, and it seems I can't make any operations with cell references in the dsum criteria. If this is so, is there any way to achieve the intent of what I wrote?
EDIT 12/05/2015
Just to clarify, a verbose description of the thought process the formula is trying to capture is this:
If I had 20 euros/dollars/whatever yesterday at 3pm, subtract only those cash transactions that occurred after yesterday at 3pm.
AI: You can refer to cells in the DSUM criterion. The problem with your query that you put a function inside of a string instead of appending its result to a string. That is, instead of
">index(FILTER(i:i,not(ISBLANK(i:i))),rows(filter(i:i,not(ISBLANK(i:i)))),1)"
you need
">"&index(FILTER(i:i,not(ISBLANK(i:i))),rows(filter(i:i,not(ISBLANK(i:i)))),1)
One can also use CONCAT or CONCATENATE for building query strings.
Since your formula is a bit convoluted, I illustrate the above with a simpler example. The Total table of the column below calculates the total population of cities founded after the date specified in the Cutoff column. The formula for the Total is
=DSUM(A$1:B$4,"Population",{"Founded";">"&C2})
+---------+------------+--------+-------+
| Founded | Population | Cutoff | Total |
+---------+------------+--------+-------+
| 1234 | 200 | 1333 | 153 |
| 1568 | 130 | 1111 | 353 |
| 1890 | 23 | | |
+---------+------------+--------+-------+ |
H: If time is before 17.00 use 17.00 OR if time is after 17.00 use value in cell
Headline says it all. I'm trying to calculate worktime in minutes. Ex: https://docs.google.com/spreadsheets/d/1GmGyi4kQf8I2qvEJjfG3OZvm_n_kBbsw_doTi9J0KCk/edit?usp=sharing
I have to state when meeting start and when it stops. Overtime is from 17.00 so:
If a meeting is starting at 16.00 and last till 21.00 it, result must be 4 hours = 240 minutes.
But if a meeting starts at 18.00 and last till 21.00, result must 3 hours = 180 minutes.
Any suggestions?
AI: In cell G9 of the spreadsheet you shared, I entered this formula:
=arrayformula(if(len(B9:B33)*len(C9:C33)*(C9:C33>B9:B33);if(timevalue(B9:B33)<timevalue("17.00.00"); mod(C9:C33-time(17;0;0);1)*1440; mod(C9:C33-B9:B33;1)*1440);))
It will only output a result when there are values in col B and col C and when col C > col B.
See if this helps ? |
H: Displaying given recommendations on LinkedIn profile
The recommendations I've received on LinkedIn appear just fine. I've given a recommendation to a person I believe I friended in an “other” capacity. It shows up on their profile, but it is not displaying on mine.
How do I make sure the recommendation I wrote for someone else displays on my own profile?
update
I don't see a "Given" link in the top right of the Recommendation section on my profile. All I see are "Ask to be Recommended" and "Manage". When I click on "Manage", it brings me to the Recommendations page, which includes links for "Received" and "Given". Under "Given", the given recommendation appears, with the option selected to "Display on my profile" to "connections." However, nothing is displayed. Is it possibly because I have not worked with this person, and friended them in an "other" capacity?
AI: Recommendations that you write for other people appear:
In the Recommendations section on your profile. You'll need to click the Given link in the top right of the Recommendation section to see them.
In the Recommendations section on the recipient's profile, after they accept the recommendation.
To hide or display a recommendation that you gave:
Go to your profile.
Scroll to the Recommendations section and click the Given link.
Scroll to the recommendation you want to hide or display.
Under Display on your profile to, select Your Connections, Everyone, or No One.
Note: This only changes how the recommendation displays on your own profile. It won't hide it from the recipient's profile. You must remove your recommendation to prevent it from displaying on their profile.
For more information look at LinkedIn help center of Hiding and Unhiding Your Recommendations.
Update:
When you click on Profile tab you simply enter in edit profile mode. So that time it does not show Given link. But if you click on View profile as (a tab near to you profile picture), It show how your profile looks to your connections, that time you can see the Given link. This confirms that the recommendation you have written is added on your profile and visible to your connections (or public, depends or your setting).
Hope this update will help you. |
H: Extending dget to a column in Google Spreadsheet
Given the following formula:
=dget(Sheet2!$A:$C,Sheet2!B$1,{"USER ID";$A2})
Is there a way to alter this formula so that it fills all the values in a column? I've tried with arrayformula, changing $A2 for $A2:$A, but I can't make it work .
AI: I would use VLOOKUP instead of DGET; it has simpler syntax and works with ARRAYFORMULA. Example:
Sheet2 columns A and B
+---------+-------+
| User Id | Name |
+---------+-------+
| 4444 | Grace |
| 1111 | Jon |
| 2222 | Tim |
+---------+-------+
Another sheet has numbers 1111, 2222, 4444, 2222 in cells A2-A5.
Entering in B2 the formula
=ARRAYFORMULA(VLOOKUP(A2:A5,Sheet2!A:B,2,FALSE))
will fill out the table
+------+-------+
| 1111 | Jon |
| 2222 | Tim |
| 4444 | Grace |
| 2222 | Tim |
+------+-------+
But you probably want =ARRAYFORMULA(VLOOKUP(A2:A,Sheet2!A:B,2,FALSE)) to avoid specifying the end row. As written, this will work but will produce a bunch of #N/A errors in empty rows, because VLOOKUP fails when given an empty string as a key. These can be suppressed with IFERROR: change B2 to
=ARRAYFORMULA(IFERROR(VLOOKUP(A2:A,Sheet2!A:B,2,FALSE))) |
H: Reorder labels order in Gmail
Is there a way to reorder labels in Gmail? There is one specific label I need to access more than the others and I would like it at the top.
I'm using Airmail 2 as my local IMAP client connected to my email running on Google Apps for Work.
AI: Gmail doesn't provide a way to reorder labels. They are listed in strictly alphabetical order.
What I have done is put a relatively unobtrusive punctuation character in the front of the label. For example:
_followup
!important
+client
That way they flow to the top. You can do a similar thing to drop labels to the bottom, all depending on whether the character is sorted before or after letters.
For symbols that sort after letters, {|}~, (or between upper- and lower-case, [\]^_ and ` ), see
ASCII on wikipedia. All the rest will sort before, matching the table ordering. This underlying bit representation gives an index number, and therefore ordering, "lexicographic", to each character. |
H: Can I star a single attachment in Slack?
Sometimes I get slack messages (most often from webhooks or bots) that contain several attachments in a single message. Is there a way I can star only one of such attachments without staring the entire message?
AI: Nope.
Slack is super limited in it's capabilities, I find. In much the same way you can't comment on individual topics that people post, you also don't have the granularity to favorite things other than an entire post. |
H: How to create a personal map with Google Maps and navigate with Street View?
How can I create a new map (with my personal POIs) using Google Maps from a PC browser and use Street View options to see details?
I am not able to create a map, give a name and add new points.
I need to use it from a smartphone but I prefer to create it by PC because of the screen dimensions.
AI: To create a new map is it necassary to login with your personal google account and BEFORE any search you can see the menu where you can find your maps and create new ones |
H: Why are Amazon reviews under the wrong product?
When you go to Premium-PC-Steckernetzteil ("Rydges® High-Quality PC Netzteil - by OTB 2A - / 2000 mAh Ladegerät 5V 2000 mAh für Raspberry Pi Modell A und B & Banana Pi - Pi Model B+ (B Plus)" - I'm sorry, it's the German amazon website) you can see from the title it is about a power supply unit for raspberry pi. However, when you scroll down to the ratings / reviews it is clear that they are about cases for raspberry pi.
See the link for an image of the page. It is quite large, so I don't want to include it here directly.
Why did Amazon mess that up? Is it a bug?
AI: An amazon user just send me the answer. Amazon seems to relate reviews to the "page", not the product. This makes perfect sense for T-Shirts which come in different sizes. Sadly, in this case the seller put different products on the same page (see image below). This means the reviews of all those different products get mixed. |
H: Script to create a new worksheet in Google Spreadsheet
I want to be able to have a button on a Google Spreadsheet. The user clicks on the button and a new worksheet is created based on a template (or blank existing worksheet). The new worksheet should have the name of the current date.
How can I achieve this?
AI: Here's a script that you can tweak further for your use case. It adds a couple of custom new commands to the menu when the spreadsheet opens:
The commands copy the content of the currently active sheet to the new one, named in the ISO date format, e.g., 2015-05-15.
function onOpen() {
var menu = [{name: "New Sheet as First", functionName: "newSheet"}, {name: "New Sheet as Last", functionName: "newSheetLast"}];
SpreadsheetApp.getActiveSpreadsheet().addMenu("Custom", menu);
}
function newSheet() {
var sheetName = formatDate();
var ss = SpreadsheetApp.getActiveSpreadsheet();
var templateSheet = ss.getActiveSheet();
ss.insertSheet(sheetName, 0, {template: templateSheet});
}
function newSheetLast() {
var sheetName = formatDate();
var ss = SpreadsheetApp.getActiveSpreadsheet();
var templateSheet = ss.getActiveSheet();
ss.insertSheet(sheetName, ss.getSheets().length, {template: templateSheet});
}
function formatDate() {
var month, day, d = new Date();
month = ('0'+(d.getUTCMonth()+1)).slice(-2);
day = ('0'+d.getUTCDate()).slice(-2);
return d.getUTCFullYear()+'-'+month+'-'+day;
} |
H: Find all Facebook comments on external websites
Is there any way to find all comments on external websites connected with a Facebook account? Let's say I want to find all my Facebook activity on external pages based on profile URL; is there any way to do this?
AI: Unfortunately not. Facebook does not allow the end user who uses Facebook connect to see all of your information across the web that uses the Facebook login. Here's the Facebook page to see how Facebook connect works. Facebook does allow you to see in your account settings which apps/pages you have authorized to connect to your Facebook account, as well as revoke that access.
It may help to read the Facebook comments plugin site for developers to see how it works on the site's end. |
H: Highlight cells whose content cannot be parsed as number
How can I highlight cells whose content is not parsable as number?
AI: Use conditional formatting with a custom formula. For example, select cell A1, go to Format/Conditional formatting, select "custom formula" and enter
=ISERROR(VALUE(A1))
In the same dialog you can choose the range to which this formatting should be applied. |
H: Calculate compound interest rate in Google Spreadsheet
Assume the PV=100, FV=150, yearly IR=X, number of period = 60 (5 years of interest and compounding is monthly basis)
Therefore:
FV = PV * (1 + X / 12)^60
How can I calculate X easily?
Technically I can use (root(FV/PV))-1)*12, where root(N) is the 60th root of N. But is there any existing function I can use such as PV and FV?
AI: Yes, and it's called RATE. Example of usage:
=RATE(60,0,-100,150)
calculates the percentage required for growing $100 to $150 over 60 interest payment periods, while taking out $0 each period. The answer is 0.68%. Wolfram Alpha agrees.
The complete list of financial functions in Google Spreadsheets is here. |
H: Downloading Gmail associated with a label
I just finished a project and would like to download (to my local hard drive) copies of all of my emails in Gmail associated with this project. These emails have already been applied with a common label that uniquely identifies them. What are some ways to do this please?
I'm comfortable with "everyday" software, can look things up, follow instructions, etc. but not advanced enough to write my own scripts.
AI: One way is with Thunderbird, another way is with the Google interface, as follows:
When you're in your gmail account, there is a profile icon in the top right corner. It might look like a blue person, or it might have a custom photograph you uploaded. Click on it, and choose "Account." Now click on "Download data" under "Account tools." Click on "Select none," and then click to the right of Mail in the alphabetized list. There is a little arrow just to the left of the green checkmark. Click on that. Choose "Select labels", choose appropriately, and at the bottom of the page, click "Next." Choose the appropriate delivery method (Drive or email), and click on "Create archive." I tried this out and it hadn't finished yet after half an hour, for a label with a dozen short messages. While it was working, a message was displayed saying "Please note that mail archives may take a long time (hours or possibly days) to create."
If it gives you trouble -- thunderbird works great. Your gmail label will show up as a folder in thunderbird. And that will correspond to a folder in your thunderbird profile. |
H: Is there a way to calculate a Google Maps commute based on past traffic delay times?
I am using Google Maps to determine my route to work. It is about an hour currently, but I know that when I factor in traffic it will be longer. I want to know just how much longer it will be.
I was wondering if there is a way to use the past traffic delays to calculate what my travel time might be given a specific travel time for that day?
AI: If you hover over the directions box (top-left) on the map, you will see that it tells you the estimated time for leaving now.
If you click on the "Leave Now" part, you can change the departure or arrival time. When you do, you will see the estimated time update to take into account known traffic flows for that date/time.
That's as good as it gets since those kinds of calculations are highly complex and based on all sorts of factors including road works and average traffic flows. |
H: In Google Drive, how do you find the folder a file is contained in?
In Google Drive, how do you find the folder a file is contained in? For example, say you search for a file named big_apple.jpg and find it. Is there a way to know which folder it is in, for example maybe you uploaded it to a folder named pictures?
AI: One way is to view the "File Details" by selecting (single click) the file. The "Location" is shown in the file details in the right column. This is the same whether you are in thumbnail or list view.
In the screenshot below, the selected file is in the folder "TEST".
It would probably be more useful if this information was immediately available in list view or something, but it does not seem to be.
UPDATE 2022-06-22: The folder location is a clickable link that takes you to that folder. There is also a clickable breadcrumb trail at the bottom of the page that shows the complete folder structure. |
H: How do I block rows/columns/cells from certain users on the shared Google Spreadsheet?
I have a spreadsheet with sensitive data. How might I block a certain column from others users viewing it?
AI: UPDATE: Now is possible to block viewers to make a copy or download a shared spreadsheet. For details see Stop, limit or change sharing.
There is no way to securely block viewers or editors from getting viewing access to a range of cells. I.E. anyone having access to a spreadsheet as editor could create a copy, this will make the copy creator the owner of it.
One alternative for editors is to use two spreadsheets, one for sensitive data and another for non-sensitive data each of them with the proper access permissions.
NOTE: I'm working on an spreadsheet add-on that I hope to be able to release during September 2018. |
H: I just got an email from Google saying that someone logged in to my account using some different email address?
This got me pretty alarmed:
I immediately checked the devices from which it was accessed but couldn't see any different from what I use usually. Nevertheless, even though I use two-factor authentication, I changed my password immediately.
Now, has any one of you had a similar experience? I thought the "problem" could be related with Google ignoring the dot (.) in the email thus for example john.doe@gmail.com and johndoe@gmail.com would come to the same email address. But, someone used the added numbers 33, so this hardly would pass as the same use case.
Anyways, still kind of baffled about it, so would appreciate some insight from more knowledgeable users.
AI: It's hard to tell exactly what you've got here. (I don't speak or read the language. (Slovenian? Croatian?)) I suspect one of two possibilities:
Someone logged in (or tried to log in) from an area where you usually aren't. (I might get a message if someone tried to log in from China, when I'm on the East Coast of the U.S.)
More likely, I think, is someone has set your email address to be their recovery email or alternate email, and probably by mistake
I think you've done the responsible thing. You're already using two-step authentication and you've changed your password. This probably won't ever come up again. I wouldn't worry any more about it. |
H: Using IF Formula to get data from another Cell
I am just trying to use the IF formula:
COLUMN A COLUMN B COLUMN C
Cats NULL
Dogs Monkeys
Kittens NULL
So, I want to do this while having selected A1:
=IF(C1='NULL',B1,C1)
So, the end result for A1 would show me "Cats" because C1 is NULL
But A2 would show me Monkeys because C2 is NOT Null.
I get an error when I use this formula AS IS.
AI: Use double instead of single quotations marks
i.e. =IF(C1="NULL",B1,C1)
References
IF - Google Editors Help |
H: Creating a copy of a sheet by copying values only?
I use the below script to basically duplicate an existing worksheet. The worksheet I am copying contains the ImportRange. I don't want the copy spreadsheet to have the formula just the value from the field on the original worksheet. Is there a way of specifying that the inserted sheet only inserts values?
function newSheet() {
var sheetName = formatDate();
var ss = SpreadsheetApp.getActiveSpreadsheet();
var templateSheet = ss.getSheetByName("MeetingTemplate");
ss.insertSheet(sheetName, 4, {template: templateSheet});
}
function formatDate() {
var month, day, d = new Date();
month = ('0'+(d.getUTCMonth()+1)).slice(-2);
day = ('0'+d.getUTCDate()).slice(-2);
return d.getUTCFullYear()+'-'+month+'-'+day;
}
AI: Replace the last line of the first function,
ss.insertSheet(sheetName, 4, {template: templateSheet});
with the following:
var sheet = ss.insertSheet(sheetName, 4, {template: templateSheet});
sheet.getDataRange().copyTo(sheet.getDataRange(), {contentsOnly:true});
Here, the first line gets the reference to the inserted sheet. The second line uses copyTo to copy the inserted sheet into itself, but pasting only the values. |
H: Multiply cell value depending on keyword
I would like to apply a transformation to a table which basically looks like this:
If there is a certain keyword in column A, then the number in column B should be multiplied by 2.
Is that possible with google spreadsheets? if so, how?
AI: Add the following formula to the cell C1, and fill down as necessary
=IF(A1="keyword",B1*2,B1)
References
IF - Google Editors Help |
H: Method to filter based on dropdown list of months
I'm trying to convert an Excel spreadsheet into Google Sheets. I have the entire year on a sheet and would like to filter the list based on a selected month from a dropdown. For example, selecting "June" would filter the page to only show June 1 through June 30.
Google Drive link: Google Sheets
OneDrive link: Excel Spreadsheet
I'm thinking I need to set the data validation of the dropdown to point to a secondary sheet and use a filter function to select dates with a position number corresponding to the month number (i.e. 1- January, 2-February, etc); but for some reason, my filter function returns an error message even if I attempt sorting by a manually entered date range ; (i.e.) date>=(2015,1,1), date<=(2015,1,31).
Edit: I just realized that OneDrive does not work with the VBA code. I'll attach it to this post:
Private Sub ComboBox1_Change() '2015 Sheet
Dim FromDate As Integer
Dim EndDate As Integer
Dim YearPortion As String
Dim NextYear As String
YearPortion1 = "-01-2015"
YearPortion2 = "-01-2015"
FromDate = ComboBox1.ListIndex + 1
EndDate = ComboBox1.ListIndex + 2
If EndDate = 13 Then YearPortion2 = "-01-2016"
If EndDate = 13 Then EndDate = 1
Sheet4.Cells(7, 1).CurrentRegion.Columns(1).AutoFilter 1, ">=" & Format(FromDate, "00") & YearPortion1, xlAnd, "<" & Format(EndDate, "00") & YearPortion2
End Sub
AI: To convert YYYY, MM, DD to an actual Date object, you need the DATE command. The following works:
=filter(A6:F371,A6:A371>=DATE(2015,1,1),A6:A371<=DATE(2015,1,31))
But I see you want to filter based on dropdown entry. For this I would use MONTH function. For example, suppose cell J10 has validation rule: list of items
01 (January), 02 (February), 03 (March), and so on
Then your filter in J11 could be
=filter(A6:F371,MONTH(A6:A371)=VALUE(LEFT(J10,2)))
The idea here is that the names of month help the user in selection, but the filter uses the numeric format (month number). |
H: How do I bulk remove all of the videos from my watch later list on YouTube?
I already have 200+ videos at watch later list on YouTube. So, I stopped adding videos to my watch later list to avoid messing it even more.
Now I simply want to remove them all so I can start fresh again, only with things I really want to watch later, but there is no option to remove them all, and I won’t hurt my finger clicking there.
A userscript could do the trick also I guess.
AI: I just found out a method that is much easier and works 100% of the time! In your browser go to your Watch Later playlist and click the menu (the three dots in the right top corner) and add to playlist. Create a new playlist and name it something easy (I named it WL for example). Now go to that playlist and go to the same menu and instead of adding it to a playlist uncheck Watch Later. Now your Watch Later playlist is cleared and you can delete the temorary playlist you just created. Hope this helps some people!
Source. |
H: Missing Favorites on Twitter
I had over 8000 favorites at the start of the year. I've been purging them recently and now I've got 5000. However, it's only showing the most recent favorites. The last tweets I noticed were from Jan 2014.
Is this a known issue, anything I can do?
AI: Yes, this is a known issue. See the Twitter Development Talk.
As Mark McBride has written:
You can use below link to report this issue,
http://help.twitter.com/requests/new
That way we can track volume and get a better handle on the issue. It
seems fairly rare at this point, but that doesn't mean it's not a big
deal for those affected.
Hope this will help you. |
H: Multi-column Conditional Formatting and Row Export in Google Sheets
I need to (a) indicate and (b) export several columns of data into a separate sheet, but only the rows that satisfy a certain condition: three columns (which are not exported) must be after today's date.
I'm new to coding, and spreadsheets for that matter, but this is the logic behind it:
If (F2, G2, and H2) are all dates after today, then:
(a) A2 turns green or something, and
(b) Row 2 turns up on Sheet 2
I feel like this has a simple solution but please help!
AI: For conditional formatting, apply the following to A2: "Custom formula is"
=AND(F2>TODAY(),G2>TODAY(),H2>TODAY())=TRUE
(You can then indicate what the range of formatting should be, e.g., A2:A to get all A column except the header).
To filter the content, use either Query or Filter. Here is an example with FILTER:
=FILTER(Sheet1!A:E,Sheet1!F:F>TODAY(),Sheet1!G:G>TODAY(),Sheet1!H:H>TODAY())
If you place this on Sheet 2, it will pick the columns A-E from the rows where the stated conditions hold.
Note that having the same condition enforced in two different places is not future-proof: someone might change the condition in one place and forget to change in the other. I would add another column to Sheet 1, such as "Export":
=AND(F2>TODAY(),G2>TODAY(),H2>TODAY())
which will contain TRUE if the row is to be exported. (One can use the IF statement to enter custom strings there.) Then both conditional formatting and the filter would use that column. |
H: Can I sign into two different Trello accounts at the same time?
Can I sign into two different user accounts on Trello at the same time using a single browser?
Clarification: I'd like to have them in two tabs on the same browser window.
AI: If you use Chrome, you can create multiple personalities and use them side-by-side, each remembering its own login. I use this regularly for multiple Google and Microsoft cloud service logins.
Each personality has it's own set of history, cookies and credentials.
UPDATE: There is a Firefox plugin called Multifox that claims to allow multiple logins. Not tried it I'm afraid.
UPDATE2: Firefox has introduced a "Firefox Multi-Account Containers" capability via a plugin. However alternative containers are not included in the Firefox sync capability and it isn't clear how deep the isolation goes - cookies are mentioned but nothing else. Probably enough for Trello use though. |
H: How to change the order of albums in Facebook?
Has anyone figured out how to change the order of albums with new Facebook layout which was rolled out in 2013?
AI: As of May 24, 2015, it has been reported that going through the following link will allow changing the order of albums easily:
https://www.facebook.com/media/albums/?id=xxxxxxxxxxxx
The solution was posted on Facebook here, and most users, including myself, found that it is working. |
H: How to search a particular Google Group and Body (versus Subject)
I'm trying to search for a past post to the Google Group Android Security Discussions. The search I used is:
app rating site:groups.google.com/forum/#!forum/android-security-discuss
I'm getting back spurious results because it appears Google's search only considers "groups.google.com", and not the "forum/#!forum/android-security-discuss".
There's also a way to search directly from Google Groups, but it only has a Subject field, and I need to search in the Body:
How do I search a particular Google Group and the Body of a message (versus the Subject of a message)?
AI: In the Advanced Search of Google Groups use the "Has the words" or "No has the words" fields. This will look in the body and the subject.
The search operator for subject is subject:keyword.
In Google Web Search use the following
for topics (the initial post of each thread)
site:groups.google.com/d/topic/groupname/ term1 term2
i.e.
site:groups.google.com/d/topic/android-security-discuss/ app rating
for messages (all posts)
site:groups.google.com/d/msg/groupname/ searchterm1 searchterm2
i.e.
site:groups.google.com/d/msg/android-security-discuss/ app rating |
H: Block someone 100% from my Gmail
I recently got into an ugly argument with someone and now I wish to block them and remove them from my Gmail and chats. How can this be done?
AI: For email: make a filter for messages from that address. Skip the inbox and put the messages directly in the trash.
For chat: I'm sorry, I know nothing about chat. |
H: Two different Facebook domains?
Today I realized that when I entered facbook.com in the domain bar in my browser, it loaded up the domain facebook.com/?_rdr. But when I removed this ?_rdr part, the same page was loaded again. I was just wondering what this means? Or is this something that I don't know about?
AI: It probably means that Facebook bought some (or all) domains that are similar to facebook.com, in order to avoid phishing schemes and the likes. (Just as facebook.co does the same thing.) It’s a form of brand (and traffic etc.) protection. |
H: How to link back to a specific Cognito-form entry? URL format for appending each entry's unique ID
We can link to all the form's entries using the following:
https://www.cognitoforms.com/forms/[form name]/entries
How would we link to a specific entry?
Each entry generates a Basecamp Project via Zapier.
How would we send Basecamp a link back to the data in Cognito?
Also, is is possible to make the link clickable when it appears in Basecamp?
AI: You can link to a specific entry by adding the entry number to the end:
https://www.cognitoforms.com/forms/[form name]/entries/[entry number]
This link will still require you to log into Cognito Forms to view/edit the entry, but will take you to the specified entry. We are working on administrative share links, which would allow people with the link to view/edit individual entries without having to log into Cognito Forms.
Not sure about the Basecamp question. |
H: Is there any way to delete pull request status checks on GitHub?
I've been looking for a means of removing some status checks created by a CI tool I was evaluating from my pull requests in my GitHub repository, but I haven't had any luck finding a way of achieving this.
Looking at the status checks API docs, there doesn't seem to be DELETE endpoint for the Statuses API and I could not find anything obvious in the UI.
AI: The best solution I've been able to come up with is to create a new status on the same context as successful. This way I can remove the build URL from the status checks and the PRs don't show up as failing (as they were in my case).
To do this I iterated through all the most recent SHAs of my Pull Requests and made the following API call using curl:
curl --user "username" --data @- https://api.github.com/repos/:owner/:repo/commits/:sha
{
"state": "success",
"description": "The build succeeded!",
"context": "default"
}
It doesn't completely erase the build history (so it can still be found using the API), but on the pull request pages everything looks like business as usual. |
H: Search for non-watermarked images
I often Google Image Search for simple images to add to my blog. For example I just searched 'lots of coffee'.
However, for certain terms (like the aforementioned one) it produces a lot of results from stock image companies, that are all obnoxiously watermarked.
I'm not interested in paying for the stock images so I'd rather just not have those results show up.
Is there a google-hack I can do avoid these images?
AI: While I cannot think of a "Google Hack" to do this I can think of two options.
You can try to search with Google Images under Search Tools --> Usage Rights --> Labeled for Reuse etc. This may give you a non watermarked image since it is free to be reused.
A second option you have is to use one of the many sites to get images, these include Flickr (or PhotoPin), Creative Commons Search, PixaBay, or any of the various other websites that offer free stock images. |
H: Making a link in a tumblr post re="nofollow"
Ive got a tumblr post that ive written, i would like to make one of the links in the post rel="nofollow" i seem to remember doing this in the past by being able to edit the html of the post ive composed, but i now cant seem to be able to that - Is that correct ? Or is there another way to make a link in a post rel="nofollow" ?
AI: When composing a new post, click on the gear icon in the top-right corner.
There’s a line "Text editor" which has the following options:
Rich text
HTML
Markdown
Select "HTML", then you can write something like:
<a href="http://example.com/" rel="nofollow">link</a> |
H: Gmail send from forwarding address
I have a forwarding address foo@acm.org that forwards to foo@gmail.com. I want to be able to send from my acm.org email, so I tried to add the email in Settings → Accounts and Import, but it didn't work since acm.org isn't an SMTP server—it just forwards everything it gets to my Gmail. How can I send from my acm.org email in Gmail?
AI: I found the answer here. For security reasons, Gmail requires you to provide an SMTP server for your alias email. However, they don't check that they match up. I just used smtp.gmail.com as the server and my Gmail username and password for the username and password and it worked. |
H: How can I transpose multiple rows into a column with multiple matched outcomes?
I have this data set:
and I want to transpose it where the Date is in a Column then A is in the next Column and B on the next
I used this formula
= Transpose(Index($B$1:$D$11,match(F$1,$A$1:$A$11,0))) but the outcome gives only the first table
What can I do to make my data look like this?
(so that whenever I would add a new week's data, my table would also change).
AI: This might be possible with some ingenious queries, but to me it seemed easier to write a script (entered via Tools > Script editor). It updates the sheet as new data is entered. Some explanation:
The output is set to begin at cell F1, as in your example. This can be changed by changing the row number and column number 1, 6 near the end of the script.
The number of desired columns, newColumns, is inferred by going through column A until there is an empty cell in it. In your case, A4 is the first empty cell, which signifies you have 3 rows of data, so there will be 3 columns.
The script assumes there is an empty column to the right of the input, which serves as an indication that the input ends there.
The logic is pretty straightforward: grabbing and pushing data around.
function onEdit() {
var i,j,k;
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getActiveSheet();
var range = sheet.getDataRange();
var v = range.getValues();
i = 0;
while (v[i][0]) {i++;}
var newColumns = i;
var row = [];
for (k=0; k<newColumns; k++) {
row.push(v[k][0]);
}
var values = [row];
for (i=0; i<v.length-newColumns+1; i++) {
if (v[i][0] == 'Date') {
for (j=1; j<v[i].length; j++) {
if (!v[i][j]) {break;}
row = [];
for (k=0; k<newColumns; k++) {
row.push(v[i+k][j]);
}
values.push(row);
}
}
}
var newRange = sheet.getRange(1, 6, values.length, newColumns);
newRange.setValues(values);
}
If you want to put the output on another sheet, replace the command
var newRange = sheet.getRange(1, 6, values.length, newColumns);
with
var targetSheet = ss.getSheetByName('Your target sheet name');
var newRange = targetSheet.getRange(1, 6, values.length, newColumns);
(You may also want to change 1, 6 to something else like 1, 1 now that the output has its own sheet.) |
H: Markdown editor on GitHub
I sometimes need to enter code into an issue I would like to comment on but always struggle. Indenting by four spaces is cumbersome for larger blocks, ticks work weirdly for larger blocks and I keep forgetting the <pre> and <code> tags (and they are cumbersome to write by hand).
Am I missing something or does GitHub lack a markdown editor (like the one here that lets me select a text and then click on "B" in the menu above the editor window to make the text bold)?
AI: Indeed, Github flavoured markdown is significantly better than the MD supported here on stackexchange.
However, it is true that you don't get a toolbar to help you. It is expected that you know some basics. You can use the toolbar here to help learn some basics if you like though there is a help page linked on Github. Worth learning the github extensions.
For code, the easiest approach is to use 3 backticks on their own line, optionally followed by the code language.
In addition, you can edit things in the WIKI which does have a toolbar.
Alternatively, you can use a text editor that supports MD. |
H: How to receive a notification when someone edits my project's GitHub wiki
I own a GitHub organisation and project. Unknown people (out of the organization) sometimes edit my project's wiki, which is cool.
How can I receive a notification when someone edits my project's GitHub wiki?
I "watch" my project but don't receive any notification.
Preferably via email or RSS/Atom.
AI: I think that you only have to have the project watched. It should send you notifications when anything such as issues and the WIKI are updated.
UPDATE:
As the updated question states, watching does not give you updates on the Wiki.
However, this question has been asked on StackOverflow: How can you track or be notified of changes to GitHub wikis? A couple of approaches are given including an RSS feed & one based on Service Hooks.
The RSS feed is easy to use. The URL is not exposed anywhere but is built up like this:
https://github.com/<user>/<repo>/wiki.atom |
H: View 6+ months of Twitter follower history?
Twitter analytics use to graph your followers history but it seems they no longer do that.
Does anyone know of a way to view Twitter follower growth over a period greater than 6 months and graphically?
AI: I use Twitter Counter. They charge a monthly fee. Their least expensive (other than free) plan is $6 per month and lets you go back 12 months. |
H: Skip duplicates uploads with Google photos?
Yesterday I joined the Google Photos new service.
I selected huge libraries ( images and videos) and dragged them to the browser for upload.
It is already taking 3 days now (uploading)
Question:
what if my computer goes shutdown for some reason ?
I know that I will have to do it again since it doesnt skip existing files.
Is there any solution to this scenario where browser is closed / computer gets shutdown /reset or something ?
AI: I was wondering the same thing when I had to shut down my computer yesterday during a 3000+ photo transfer. It seems to skip duplicates now that I upload them again. I tried just uploading a folder of ~20 photos that were already on my google photos and it chugs through them as usual (uploads them) but there's just one copy in my library so it seems to have some way of skipping duplicates. |
H: Could I add a new Gmail email address to my Google account?
If I delete my Gmail address from my Google account (with this method), then could I register a new one? Google support pages don't say anything about it, sadly. I think maybe it is possible because you can register a Google account first and add a Gmail address later, but maybe it is allowed only once.
AI: No.
Your Gmail address is your Google account. You can't separate them. If you delete the Gmail mailbox by using the help page you have linked to, you'll not be able to create a new Gmail address and link it to that account.
You'll need to create a new Gmail/Google account. |
H: Do photos under 16 megapixels still consume space when "Original Size" option is chosen?
The new Google Photos service supplies "Unlimited" space for photos 16 megapixels and under. However, if I choose to upload photos at "Original Size" that are already at or under 16 megapixels, will they fall into the "Unlimited" space category? Or will they consume my limited quota?
AI: It's not just about megapixels.
If you upload photos with the "Original Size" option then they will consume your limited quota, regardless of the megapixel dimensions of the photo uploaded.
This is because, under the "Original Size" option the original compression ratio is also used... the photo stored is the actual photo you uploaded.
Under the "High quality (free unlimited storage)" option all photos (including < 16mp) are resampled at a higher compression to save file space. This can affect the quality of the image (although most people probably won't notice). When photos come off the camera they generally have very little compression applied. The file size can be greatly reduced by resampling at a (slightly) higher compression with very little degradation in quality. However, a reduction in quality could be dependent on the type of photo used.
From the Google Help docs:
Choosing a storage size
What if I choose "High quality"...?
If the camera takes photos with 16 megapixel (MP) resolution or lower, most stored photos will essentially look the same using either storage option.
Note they are not the same.
Can I change my mind?
Changing the setting will affect storage sizes in the future and won't resize items that you've already stored.
"resize" also implies "resample" in this context. |
H: How to mark all e-mails as read in Gmail?
I was checking my email on my phone, and for some reason it glitched out and marked every single of my thousand emails unread. Is there any way I can mark all emails as read as once instead of doing 50 or 100 at a time?
AI: If you go to the "All Mail" view from a computer (not sure how the mobile version works) and click the 'select all' checkbox, a little notification saying something like "All 50 conversations on this page are selected. Select all 24,037 conversations in All Mail" should appear, where the last part is a link. If you click that link, then click 'Mark as Read,' it should take care of the problem. |
H: How to make to an existing public post private in Google Plus?
I wrote a post, tagging two people, intending it for their eyes only. A good conversation was had, but a week later, I noticed getting +1s on it from other people I didn't intend to share it with. I'd like to keep the post, its comments, timestamps et c, both for the tagged people's and my own benefit, but drop its most accidental "Public" status. (I don't mind keeping the +1s, too.)
This is more or less the opposite question to How to add user to an existing post in Google Plus? – and I can't think of any good reason why I would be forced to either kill it for everyone, or keep it available for everyone. Every day it sits openly accessible, it keeps randomly leaking to people it wasn't meant for, eroding away the privacy the original post was meant to have.
AI: Unfortunately, once posted, you can't change the privacy level of a post.
Your only recourse is to delete the post. |
H: How to set filters/automatically put email into correct bundle?
I am using Google's new Inbox, as a long time (pre-beta) GMail user I'm used to setting up filters to make sure some emails go to the correct places, as google never categories them correctly.
This option seems to no longer exist in inbox, how do I make sure emails about jobs (from specific job related email addresses) go into my 'Jobs' bundle, and not into low priority?
I have 'moved' specific emails of this type into the jobs folder, but once another one comes through it ends up in low priority again. I'd normally setup a filter but I can't find that option.
AI: As @Sathya stated, you can't edit what ends up in the predefined bundles, but it's possible with the ones you create yourself.
In the menu, almost at the bottom, just above Settings you have Create new....
But I assume you've already created "Jobs", since it I don't have it predefined in my Inbox.
Then, still in the menu, hover the bundle you want to edit and press the cog that appears.
The bundle's settings appear.
Press ADD to define what messages should be sorted into the bundle.
Here you have some options to filter by.
You can read more at the support page:
https://support.google.com/inbox/answer/6067566 |
H: Why “filter:retweets” is not working in TweetDeck?
filter:retweets, filter:replies Doesn’t seem to be working.
from:1tvpmr filter:retweets show no results on Twitter. Why?
AI: This is the right URI: https://twitter.com/search?q=from%3A1tvpmr%20AND%20-filter%3Aretweets&src=typd
Source. |
H: In Google Sheets, how do I change a string which encodes a date into a date?
I have some cells in the format 15/05/15. Here is an example. These are dates, but as I copied them into Google Spreadsheets, they are apparently treated as strings. How do I convert them into date objects, preferably in the format 2015-05-15?
Clearly I should be choosing Format->Number and then a date format, choosing MM/dd/YY if needed to pin it down. I might then re-select and choose another format like the YY-MM-dd that I need. But this does nothing.
(Actually, in some cases I got this sort of thing to work and in some cases I did not. I am not sure what makes the difference. Maybe ambiguous strings?)
How do I convert the dates?
AI: The relevant command is DATEVALUE, which converts a string to date object. However,
Understood formats include any date format which is normally autoconverted when entered, without quotation marks, directly into a cell. Understood formats may depend on region and language settings.
Since these are not understood when pasted in, chances are that DateValue would not understand them either. So you'll need to rearrange the string from dd/mm/yy into the universally digestible yyyy-mm-dd first:
=DATEVALUE(20&RIGHT(A3,2)&"-"&MID(A3,4,2)&"-"&LEFT(A3,2))
The inner commands turn, say, 17/05/15 into ISO 8601 2015-05-17, which DATEVALUE understands without ambiguity.
Now that you will have a date object, you can pick a formatting for it by usual means, via Format menu.
(Remark: based on your sample, I'm assuming that both month and day always have two digits. If you had other variations like 17/5/15 or 2/3/14, it would be better to use SPLIT(A3,"/") to divide the string correctly, and then reassemble by concatenation as above.) |
H: Google Security Checkup Gmail Settings
Today, Google suggested running a security checkup. While almost everything was clear and helpful, one section Check your Gmail settings was unclear. It says:
"Make sure that your Gmail settings are up to date and remove settings that are not familiar to you.", and as a suggestion, it gives: Remove display name: <My full name>.
What is the significance of that? Where will the name be removed from?
AI: I believe that's the name that gets sent as part of your email address when you send messages, ergo:
John Doe <snipehunter334@gmail.com>
(I think also exposes your name when someone uses Gmail to send you a message as well.)
If your email address isn't your name (mine is) and you want to keep some anonymity, you might want to change that.
You can also change that setting directly in Gmail by:
(Gear) > Settings
Accounts and Import
Send mail as > edit info |
H: Loading a Form with Repeated Items: All Items are Numbered as "1"
REF: Update permitting large data sets to be prepopulated.
That (awesome) ability to prepopulate large datasets into forms has exposed a presentation issue. When we initially enter data for repeating items, say identifying each child, each repeated section is numbered sequentially in the browser, e.g. Child 1, Child 2, etc. HOWEVER, when the same data are sent back to the form to prepopulate it, each child is presented as Child 1. So if there are 3 children, we get Child 1, Child 1, Child 1. The data are fine, the numbering is just a little startling.
QUESTION: Do we need to provide an ordinal number for each Child object? Or might this be resolved in a future update?
Thank you!!
AI: We have identified this as a bug and were already actively working on it. It should be resolved by a hotfix next week. As you stated, the entry is just fine and will look correct when managing entries This is a presentation issue that will be corrected on our end. |
H: How to create an automatically updating Google spreadsheet with information from Steam?
How would I create an automatically updating Google spreadsheet containing information about Recent Activity in Steam?
Table must look like here:
But the hours column must automatically updating current hours from here:
Steam acc: http://steamcommunity.com/id/PerfectPlays
AI: You can do this with IMPORTXML.
In A2:
=IMPORTXML("http://steamcommunity.com/id/PerfectPlays", "//span[@class='actual_persona_name']")
In B2: either
=IMPORTXML("http://steamcommunity.com/id/PerfectPlays", "//div[@class='recentgame_quicklinks']/h2")
which will return "108.9 hours past 2 weeks", or
=REGEXEXTRACT(IMPORTXML("http://steamcommunity.com/id/PerfectPlays", "//div[@class='recentgame_quicklinks']/h2"),"[^ ]* [^ ]*")
where REGEXEXTRACT cuts the string down to "108.9 hours".
If you are going to do this for several account, you may want to have a column for Account Id, e.g., PerfectPlays. For example, if this column is C, the first parameter of IMPORTXML would be
"http://steamcommunity.com/id/"&C2 |
H: How to add a link to Google Search in a range in Google Sheets
I have a google spreadsheet, where I want to link each cell in a range to the google search page, where the search term is the text in this particular cell. So if I have a cell with content 'Bikes' I want to turn it to a link that will search for 'Bikes' in Google.
How do I achieve that short of manually going over each cell in the range and turning it into a link?
This is what I have:
Note that the list is much longer than a few cells.
This is where I want to arrive:
These will hyperlink to
google.com/search?q=Alpha
google.com/search?q=Beta
google.com/search?q=Gamma
google.com/search?q=Delta
etc...
Since there are a hundred of cells I would like a more practical method than inserting a hyperlink manually for each cell.
AI: You can use the HYPERLINK function. In your example you have the values in column A. Do this:
Paste the following into another column, say, in B1 cell: =hyperlink("www.google.com/search?q="&A1,A1)
Now copy this B1 cell (CTRL+C) and paste it to the required range in the same column as this new cell, in your example B2:B4. (Select the range and press (CTRL+V)
Now you have what you wanted to have in column A but in column B. Select column B, copy it (CTRL+C) and then paste values to column A (CTRL+SHIFT+V) overwriting the original content of the column.
Now you can clear column B and you are done |
H: Twitter's Facebook connect behaves inconsistently
I'm having a lot of trouble getting Twitter's native Facebook connect app to work. It works one day, doesn't work the next, and I find myself wasting hours trying to get everything to sync.
Does this app just not work?
Any other suggestions to reliably send tweets to FB Pages automatically?
AI: There are plenty of other ways to get tweets sent automatically to Facebook, either to your own timeline or to a page.
I used to use IFTTT. There are a bunch of recipes for this, such as this one.
One caveat: You can only have one Facebook Page (and I think one Twitter account) configured for an IFTTT account. If you've got multiple Facebook pages you'll need multiple IFTTT accounts. |
H: How to create an auto updating Google spreadsheet with information from Steam?
How would I create an automatically updating Google spreadsheet containing information about Recently Played in Steam?
Table must look like here:
A2 taking information about account name from here: http://steamcommunity.com/id/PerfectPlays with this code: =IMPORTXML("http://steamcommunity.com/id/PerfectPlays", "//span[@class='actual_persona_name']")
B2 must take information about recentle played from here:
http://steamcommunity.com/id/PerfectPlays/games/?tab=recent
But only from Dota 2 game.
Can someone help with code for B2?
AI: This is more complicated from your other question about ImportXML with XPath, because the table on the page with ?tab=recent is dynamically formed by a script. The table does not exist in the page source which ImportXML accesses.
Inspecting the source, one can see the data embedded in a script:
<script language="javascript">
... "name":"Dota 2","last_played":1433455140,"hours":"97.3", ....
So, to get it:
Get all scripts on the page with XPath //script (it's also possible to get only the 12th that we need with (//script)[12], but then the import will break when they add or remove some other script).
Extract the number of hours with REGEXEXTRACT. This took me two commands because the regex library that Google Spreadsheets use is pretty limited; it does not support either lookaheads or lookbehinds.
Add any text to the number that you want.
In a single line, this is done by
=REGEXEXTRACT(REGEXEXTRACT(CONCATENATE(IMPORTXML("http://steamcommunity.com/id/PerfectPlays/games/?tab=recent", "//script")),"Dota\s+2[^{]*\d*\.\d+"),"[0-9.]*$")&" hrs last two weeks"
For readability, here is the linebroken and indented version.
=REGEXEXTRACT(
REGEXEXTRACT(
CONCATENATE(
IMPORTXML("http://steamcommunity.com/id/PerfectPlays/games/?tab=recent", "//script")
),
"Dota\s+2[^{]*\d*\.\d+"
),
"[0-9.]*$"
) & " hrs last two weeks" |
H: Twitter keeps sending me the "Confirm your account" emails, although I never signed up
It's annoying, I never gave them my e-mail address, and never intended to create an account.
They keep sending me the e-mails that go like:
{my real name},
Confirm your email address to complete your Twitter account. It's easy - just click on the button below.
Click on the link below or copy and paste it into a browser:
{link}
The link looks like this:
https://twitter.com/account/confirm_user_email/123123123/AB123-CD345-12345?t=1&cn={base64_string}%3D&sig={md5_hash}&al=1&iid={md5_hash}&ac=1&autoactions=1231231234&uid=123123123&nid=123+456
I'm used with randos getting my e-mail - I mean most spammers just try various addresses to see if those would work. But the fact that they somehow know my actual name as well is kind of creepy.
Again,
I never went through their sign up process
I never gave them my name & e-mail address
They're sending me these emails every week, while if it's a real confirmation e-mail, I get it once and it normally says it's going to expire shortly
There doesn't seem to be any way to unsubscribe from those, because even if I click some link or log in there they'd know that it is a working address
How did that happen?
This can be considered as spam, right?
AI: Maybe somebody you know who has your email address decided to sign you up. I mean, they'd have to know you or they wouldn't have your real name. Spammers aren't that clever. (Unless, of course, it's easy to parse your real name from your email address.)
I suppose it could be a phishing attempt. But that link looks legit to me. Did you look in the message headers or, assuming it's an HTML message, the source code of the message for anything hinky?
Assuming it really is from Twitter, I don't think you can really consider these spam, since it's a responsible company trying to confirm your account, even though you don't want one. If you really want them to stop you'll need to ask them to, even though, yes, then they'll know that there's really a person at that address. But so what?
Otherwise, from what I see you have two options:
Arrange for such messages to "bounce" with the appropriate "no mailbox here" message. How to do that depends on your email provider (and is beyond the scope of this site).
Use your email client's filtering tools to automatically send such messages to the trash. Then you never need to see them and presumably, after some time, they'll stop sending them. (Just don't forget to turn it off if you ever decide to sign up.) |
H: Copying rows to another sheet based on column value
I have a sheet in a document with details of hundreds of signups for an event. As part of this event, there are roughly sixty 'centres'. People have signed up through one form, and now I want to allocate them to centres.
I've created a new column in the big "Master Sheet" (where the form submissions are dumped) called "Allocated Centres", and a new sheet in the document for each centre - let's use "Centre A" as an example.
I would like to copy the whole row of information from "Master Sheet", where the value in the column "Allocated Centre" is "Centre A", to the new sheet created for that centre.
AI: This can be done in a couple of ways, depending on how the spreadsheet will evolve later.
Copy once, so that after copying the second sheet exists independently of the master (changes in one will not affect the other). For this, select the column with Centre information, choose Data > Filter in the menu, then click the filter dropdown in the first row and select only "Centre A" in the filter.
After this, only the rows with Centre A will be shown. You can copy-paste into the new sheet; only visible cells will be copied.
Reference: filtering your data.
Put a formula in the second sheet that will update its contents based on whatever changes are made to the master. This can be done with FILTER command: for example,
=FILTER('Master Sheet'!A:D, 'Master Sheet'!D:D="Centre A")
With this approach, any future edits to the master will propagate to Centre A sheet. You will not be able to edit this data in Centre A sheet. |
H: Easy way to move photos from Gmail attachment to Google Photos
Is there a more intuitive way to add an attachment from GMail (either standard or Inbox) to Google Photos than saving it into the Google Photos folder in Google Drive?
AI: Edit 2019: This answer is now out of date.
Google Photos no longer synchronizes with Google Drive. See the official blog post.
It seems that you missed the news. Google Photos and Google Drive are now synchronized with each other. Check it on Googleblog and Google Help
Now you just need to save these attachments to Google Photos in Google Drive. Voila! Your images are automatically saved to Google Photos |
H: Same x-axis for multiple graphs in same plot window
I am trying to do exactly what the answer to this other question explains (I have several sets of data to be plotted in one graph with the same x-and y-axis); but with one difference:
I don't have simply one column with the x-values; I have the x- and y-values of different sets in pairs of columns by themselves. See the picture:
I want to plot all sets in one plot window in different colors. The problem is that if I choose the x-values (in column B) and y-values (in column C) for #2i in the picture, then I cannot also choose the x-values and y-values of the others #2o and #3i, etc. I can only choose the y-value for those, which means that their y-values are plotted to the #2i x-values - which of course is wrong.
If I do try to mark the x-value column ranges also, these just show up as yet another data set in the graph (as y-values).
As you can see in the plot below, all points have the exact same x-value and are placed exactly above each other (while their y-values are correct):
I choose the ranges as shown here:
where you can see that I have chosen the x-values in column B over the whole range (which does not work), since I cannot find out how to choose each set of x-values to match the respective y-values in column C.
How can I solve this?
AI: With a sleight of hand, you can use Bubble chart for this.
First, you'll need to move your data a bit (this can be arranged automatically) so that the name of data series appear in its own column, in every row that belongs to the series. This is Column D below. Columns B and C are x- and y- values. Column A is intentionally left blank (it is ordinarily the text that's written on the bubble.)
+---+------+------+-----+----+
| A | B | C | D | E |
+---+------+------+-----+----+
| | 1 | 4.00 | #2i | 1 |
| | 2 | 1.41 | #2i | 1 |
| | 3 | 1.73 | #2i | 1 |
| | 4 | 2.00 | #2i | 1 |
| | 5 | 2.24 | #2i | 1 |
| | -0.5 | 1.22 | #2o | 1 |
| | 0.5 | 1.58 | #2o | 1 |
| | 1.5 | 1.87 | #2o | 1 |
| | 2.5 | 2.12 | #2o | 1 |
| | 0.7 | 1.70 | #3o | 1 |
| | 1.7 | 2.70 | #3o | 1 |
| | 2.7 | 3.70 | #3o | 1 |
| | 3.7 | 4.70 | #3o | 1 |
| | 4.3 | 4.00 | #3o | 1 |
| | 0 | 0.00 | | 10 |
+---+------+------+-----+----+
Column E gives the size of each bubble, in some relative terms. It is optional, but if you omit it, or put the same number everywhere, the bubbles will be much too large. My workaround is to add a dummy data point (last row), which gets size 10, so that the real data points will become proportionally smaller. To hide this dummy point, I put a space in its column D, and made the color of the bubble white (I also removed the border of all bubbles, otherwise it was still showing).
A bit too much fuss for my liking, but this is the only way I know. |
H: How to sign up to Twitter?
It sounds strange, but I'm unable to sign up to Twitter.
When I try to use Google Chrome, the sign up form contains only name and e-mail fields. And even though all of them are filled-up and contain valid values (notice check-marks), I'm bumped with Please complete all required fields error every time, I click Sign Up:
When I'm using Opera, I'm able to see username additional field (but still no sign of password field), but I'm hitting the wall with the same error message, even though -- again -- all fields are correct:
When I try to use Internet Explorer, I can finally see all the four fields, but effect is exactly the same:
What am I missing? I know, how much stupidity is in this question, but... how should I sing up to Twitter?
BTW: In all my attempts (in all browsers), I'm trying to use my own e-mail and all the time it is the same, if that matters. When I tried to used some fake, probably not existing e-mail address, I managed to pass through this step. I closed web page after that, because -- quite naturally -- I want my Twitter account on my real e-mail, not on some fake one.
AI: This problem is directly linked to this question. I was trying to register a Twitter account, that contains .com in name (which is not allowed since recently).
There's a bug in Twitter, which causes to display error:
Please complete all required fields
and mark name field as having correct value. While it actually should mark it as invalid (because it contains .com part, prohibited) and should display correct error message. Like for example:
Account creation failed: Name must not contain URLs
Or something around that.
There's still, of course, an open question, when did they changed their rules (I managed to create an account containg .com in name about three months ago) and why do they limit domains prohibited in name to only a certain group (you can use .pl and probably many more ccTLDs in Twitter name)? |
H: Automatically group data by month
I am using Google Sheets and I would like to display monthly in and out.
date units unit cost cost
2015-01-05 200 0.24275 -48.55
2015-01-05 1 1.43 -1.43
2015-01-09 4 7.5 -30
2015-01-09 50 0.7852 -39.26
2015-01-09 1 0.82 -0.82
2015-01-14 1 275 -275
2015-01-20 1 1.24 -1.24
2015-01-23 10 0.099 -0.99
2015-01-24 1 6.99 6.99
2015-01-24 1 0.44 -0.44
2015-01-24 1 0.7 -0.7
2015-01-24 1 0.93 -0.93
2015-01-26 1 6.99 6.99
2015-01-26 1 0.44 -0.44
2015-01-26 1 0.73 -0.73
2015-01-27 1000 0.23798 -237.98
2015-01-26 200 0.00945 -1.89
2015-01-26 100 0.0495 -4.95
I am using =SUMIF(E2:E299,"<0") for total outgoings and =SUMIF(E2:E299,">0") for total incomings.
How can I automate it to display every month?
updated
Using the following formula the month is not being displayed in order?
=query(ArrayFormula(if(len(Sheet1!B2:B), {text(Sheet1!B2:B, "mmm"),if(Sheet1!E2:E<0, Sheet1!E2:E,0), if(Sheet1!E2:E>0, Sheet1!E2:E,0)},)), "select Col1, sum(Col2), sum(Col3), sum(Col3) + sum(Col2) where Col1 <>'' group by Col1 label Col1 'Month', sum(Col2) 'Outgoing', sum(Col3) 'Incoming', sum(Col3) + sum(Col2) 'Gain'")
Month Outgoing Incoming Gain
Feb -105.02 66.71 -38.31
Jan -650.37 34.95 -615.42
Jun -143 139 -4
Mar -179.79 263.34 83.55
AI: Assuming your dates are in col A, try:
=query(ArrayFormula(if(len(A2:A), {text(A2:A, "mmm"),if(E2:E<0, E2:E,0), if(E2:E>0, E2:E,0)},)), "select Col1, sum(Col2), sum(Col3) where Col1 <>'' group by Col1 label Col1 'Month', sum(Col2) 'Outgoing', sum(Col3) 'Incoming'")
or, if you want an extra column with the 'gain':
=query(ArrayFormula(if(len(A2:A), {text(A2:A, "mmm"),if(E2:E<0, E2:E,0), if(E2:E>0, E2:E,0)},)), "select Col1, sum(Col2), sum(Col3), sum(Col3) + sum(Col2) where Col1 <>'' group by Col1 label Col1 'Month', sum(Col2) 'Outgoing', sum(Col3) 'Incoming', sum(Col3) + sum(Col2) 'Gain'")
If your data spans several years, you may want to change the formula to:
=query(ArrayFormula(if(len(A2:A), {text(A2:A, "mmm yyyy"),if(E2:E<0, E2:E,0), if(E2:E>0, E2:E,0)},)), "select Col1, sum(Col2), sum(Col3), sum(Col3) + sum(Col2) where Col1 <>'' group by Col1 label Col1 'Month', sum(Col2) 'Outgoing', sum(Col3) 'Incoming', sum(Col3) + sum(Col2) 'Gain'")
EDIT: another way may be (formatting dates as MM-YYYY if that is okay)..
=query(ArrayFormula(if(len(A2:A), {text(A2:A, "MM-YYYY"), if(E2:E<0, E2:E,0), if(E2:E>0, E2:E,0)},)), "select Col1, sum(Col2), sum(Col3), sum(Col3) + sum(Col2) where Col1 <>'' group by Col1 order by Col1 label Col1'Month', sum(Col2) 'Outgoing', sum(Col3) 'Incoming', sum(Col3) + sum(Col2) 'Gain'") |
H: How do you Right align a paragraph?
I try to align a single paragraph to the right (Right align), but it Right aligns the whole chapter no matter how I make the selection.
AI: Put the cursor in the paragraph. It's not necessary to select the whole thing. In fact, you shouldn't "select" anything.
Use the right-align tool. Either the right-align button the menu bar, the menu (Format > Align > Right), or the keyboard shortcut (Ctrl+Shift+R).
See my before and after screen shots below. |
H: How to move a standalone chart back to an existing sheet?
I regret moving my chart to a new spreadsheet in Google Sheets.
How do I move it back?
Using the revision history to undo the edit is not an option, since it has been a while since the original move, and I would have to undo all the changes since then.
AI: You can copy the chart and paste it into the sheet you want; then delete the chart sheet. The copy button is in the toolbar:
Copying preserves the changes made to the chart. |
H: Sum of cells within a given range of dates
I'd like to calculate my revenues in a given trimester, based on the invoice total and the date it was paid.
Column B - invoices to add up
Column E - date paid
Here is my attempt (which comes up with an error):
=sumifs(Paiement!B2:B100; Paiement!E2:E100; "=>01/01/2014", "<01/04/2014")
Any ideas? Sorry if this has been answered already, but I couldn't seem to get formulas in other answers to work when I applied them to my case!
AI: You are very close: the only mistake is not stating the range to which the second criterion is to be applied. Recall the syntax of SUMIFS:
SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])
So, you need
=sumifs(Paiement!B2:B100; Paiement!E2:E100; ">=01/01/2014"; Paiement!E2:E100; "<01/04/2014")
(You may think it's obvious that the second criterion is also to be applied to the same E column, but it's not obvious to the software.) |
H: How to refer to a cell in the same column at given row?
I would like to get a cell in a particular row above the current cell.
This is to be used in conditional formatting, so I can't specify a particular cell, e.g. A$4—the reference would be the same for whole range.
What I need is something like:
GET_CELL_AT( COLUMN(CURRENT_CELL), 4 )
What I use it for is to color a cell red if it's bigger than a treshold in the other cell.
AI: Solved with:
=INDIRECT( ADDRESS( 4, COLUMN() ) )
ADDRESS gives me a string like "$A$1" and INDIRECT makes it a cell reference. |
H: How to highlight an entire route or way on an online map?
For brevity, I'll write throughfare instead of 'route', because I ask NOT only about vehicular roads, but also nature paths, trails, waterways, etc...
On Google Maps, how can I highlight the entirety of a throughfare (eg the Bruce Trail in Ontario, Canada)? For example, I wish to thicken the length and width of its depiction on the map, and to intensify its colour. To wit, I seek something like this:
.
AI: Make your own custom map:
Go into Google MyMaps,
Click Create new map.
This opens a new map-editing window.
Use the Draw a Line tool (under the search bar, looks a bit like a share-icon), to draw either just a line, or a driving, walking or biking route. Note that your map can have one or more lines in it. Finish off each line by double-clicking on the final point.
Then in the components list on the left of the screen, hover your mouse over a line: this brings up a small paint-bucket icon to the right side of the line-name. Click this icon, and you have options to choose the colour and thickness. |
H: How can I create a URL for a specific cell in Google Sheets?
I am a teacher who is trying to create QR codes for book reviews to be placed on books in the library. I have collected all of my students' book reviews via a Google Form, so that their answers are on a Google Sheets (one column, about 100 rows). Instead of creating a QR code from the reviews and limiting the characters for the length, I'd rather have each review be a separate URL and use that address to create the QR code instead. Instead of creating 100+ different web pages or sheets in Google, if there was a way to create a link directly to a specific cell in the sheet that would be incredibly helpful.
I tried to use the query formula (limit and offset) after publishing the web page and also not publishing it, but I get an error each time.
I tried adding the range/cell using this URL: https://docs.google.com/a/apsva.us/spreadsheets/d/1agxRLfypqjknOHPGPq_zRqJNvSRso-0b8XOH3P67a1E/pubhtml?gid=0&single=true&range=A1
but it comes up with the error page saying:
Sorry, the file you have requested does not exist.
Please check the address and try again.
I'm not sure if I typed it in wrong or what.
The code I used originally was: /gviz/tq?tq=limit 1 offset 32
It actually is working today to give me the limited row, but there are a lot of extraneous characters included (this is the actual link: https://docs.google.com/a/apsva.us/spreadsheets/d/1agxRLfypqjknOHPGPq_zRqJNvSRso-0b8XOH3P67a1E/gviz/tq?tq=limit%201%20offset%2032)
Is there a way (or an easier way) to do this?
Is there any way to keep the formatting of the Google Sheet?
AI: Google Query Language will return a JSON string. To get the cell value and format as you see in the spreadsheet, instead of /gviz/tq?tq= and the query string, use /pubhtml?gid= and the "right" parameters.
The easiest way is to get the URL resulted of publishing the spreadsheet to the web. Then...
Add range=A1 to the URL of the published spreadsheet, where A1 is the cell that you want to display.
I.E. for https://docs.google.com/spreadsheets/d/1NIIqpRSYCXT0OlvDgXa0g4GVxmrnvQOSn_L-HcgPqVA/pubhtml?gid=0&single=true
to display only the cell B13, the resulting URL is:
https://docs.google.com/spreadsheets/d/1NIIqpRSYCXT0OlvDgXa0g4GVxmrnvQOSn_L-HcgPqVA/pubhtml?gid=0&single=true&range=B13
to remove the header, add chrome=false:
https://docs.google.com/spreadsheets/d/1NIIqpRSYCXT0OlvDgXa0g4GVxmrnvQOSn_L-HcgPqVA/pubhtml?gid=0&single=true&range=B13&chrome=false
Note:
Use ? before the first parameter.
Use & when adding the second and subsequent parameters.
References
Publish a document, spreadsheet, presentation, or drawing - Docs editors Help
Cómo publicar en Web un rango - Ejemplos para los foros (How to publish a range in the Web - Examples for forums, self citation) |
H: Direct link to create a Facebook event?
Is there a direct link to bookmark that creates a new Facebook event?
The following button is associated with the URL https://www.facebook.com/events/upcoming# and thus does not directly link to creating a new event.
AI: No, there isn't a direct link to a standalone page to create a new Facebook event.
That "Create" button is only designed to create that overlay you would have seen, and never take you to a page where you would fill in the event details. |
H: CONCATENATE inside IMPORTRANGE inside Query
I found this formula:
=QUERY(IMPORTRANGE("key","A:Z"),"SELECT Col1, Col2, Col3 WHERE Col1 contains 'value' ORDER BY Col1")
here and I'd like to add a concatenate function where value is taken from cell (B1) for example.
Is this possible?
AI: Yes, it's possible.
But first, bear in mind that =CONCATENATE("a","b") is the same as ="a"&"b", but shorter.
Example:
=QUERY(
IMPORTRANGE("key","A:Z"),
"SELECT Col1, Col2, Col3 WHERE Col1 contains '"&B1&"' ORDER BY Col1"
)
References
CONCATENATE - Docs editor help |
H: 'Add to Calendar' is absent in Inbox by Gmail
When I used Gmail and got email with appointment and hover mouse on date, I got the message:
But now in Inbox by Gmail I don't have this option. Is it possible to add it?
AI: Unfortunately this hasn't been implemented yet in Google Inbox. They recommend that if you want the feature, provide your feedback by following these steps.
Go to the area in Inbox that you're having trouble with. We'll take a screenshot of the page, and it helps if we can see the problem. You can choose not to include the screenshot.
Go to the main menu in the top left .
Scroll to the bottom and choose Help and feedback.
Click Send feedback.
In your feedback, try to share as much detail about the problem or suggestion as you can.
Source |
H: How do I interleave two lists or data in Google Spreadsheets?
I want to combine two lists in Google Spreadsheet so that the cells interleave.
Both lists have the same amount of elements.
So that:
1 A
2 B
3 C
becomes:
1
A
2
B
3
C
The closest I came up with is something like JOIN({List A},{List B}), but in this way the Elements of List B are only split by the first Element of List A.
It would be great if someone has an idea without any add-ons using only the built-in functions. Transposing and formatting is not that important.
AI: Try:
=ArrayFormula(transpose(split(concatenate(A1:B&char(9)),char(9))))
(note that concatenate has a limit of 50000 characters)
or
=transpose(split(join(" ",query(transpose(A1:B),,50000))," "))
Where list A starts in A1, list B in B1. |
H: How can I upload Facebook photos into Dropbox?
I want to store my all Facebook images in Dropbox without compressed of images.
AI: Use Facebook's built in archiver.
Account settings> Download a copy of my data
(Remember, that doesn't grab photos you're tagged in.)
If you want store all the photos there are some Tools available. By using these tools you can store your Facebook's images into Dropbox:
IFTTT
PICBACKMAN
PhotoGrabber
Hope this will help you. |
H: Attach image url then email using Google Sheets
What is the correct syntax for emailing an image url in a row as an attachment?
I'm trying to loop through all rows within a Google Sheet and attach an image url as the image. I can send the correct subject line and message body using the below code (minus the attachment stuff below), but when I try and add the attachment stuff it doesn't let me save it and says "Missing : after property ID. (line 22, file "Code")" which is on the line that reads "attachments: attachment, blob]"
function sendEmails() {
var sheet = SpreadsheetApp.getActiveSheet();
var startRow = 2;
var numRows = sheet.getLastRow();
// Fetch the range of cells
var dataRange = sheet.getRange(startRow, 1, numRows, 2)
var data = dataRange.getValues();
for (i in data) {
var row = data[i];
var emailAddress = "removed@gmail.com";
var subject = row[0];
var message = row[1].toString();
var attachment = UrlFetchApp.fetch(row[2]).getBlob();
MailApp.sendEmail(emailAddress, subject, message, {
name: 'Automatic Emailer Script',
attachments: attachment, blob]
});
} // for
} // sendEmails
AI: You need to put the blobs in an array.
MailApp.sendEmail(emailAddress, subject, message, {
name: 'Automatic Emailer Script',
attachments: [attachment]
}); |
H: GitHub - Can I receive email notifications using non-primary address
On GitHub I have multiple email addresses. I would like people to contact me using one address (i.e. show this address on my profile), but actually receive email notifications using another. However I don't see there being an option for that. Is there any way to do that? What's the point of letting the user keep multiple email addresses while only one ever gets to have any effect.
AI: Yes, you can. There is two different options: one in the Profile "Public email" and one in Notification center "Primary email address". |
H: How do I navigate to the album in Spotify?
When using Spotify web player (https://play.spotify.com/) how can I navigate to the album for the currently playing track?
AI: Click "Open Queue app" button (below Previous Track)
Click the Current Track album name. |
H: How to send file using the Gmail chat?
Can I send files using the Gmail web chat? That feature exist in that chat? What are my options in case not?
AI: At this time Google has two chat services that could be used inline with Gmail web interface: Google Chat and Google Hangouts.
You could use Hangouts to send photos/pictures [1,2] but no other kind of files. Instead you could send files by a Gmail message up to 25MB [3] or uploading the file to Google Drive or another file hosting service and use Chat/Hangouts to send the link to the file.
References
1. About Google Chat
2. Share and delete your photos from Hangouts messages and Google Voice MMS - Hangouts Help
3. Add attachments - Gmail Help |
H: What is the "long description" field on a Facebook page? Is it publicly viewable? If so, where?
I help to manage a Facebook page. We've filled in the "short description" field, and it's visible on our Facebook page's About tab. We've also filled in the "long description" field, but I wasn't able to figure out where the contents of this field were made visible to the public. Can the public see the contents of the field? If so, where?
AI: I temporarily logged out of Facebook, in order to experiment and discover the answer.
A page's About tab is divided up into sub-tabs, which may include "Overview", "Page Info", and/or "Milestones". For example, the Facebook page for Fog Creek Software includes both "Overview" and "Page Info".
I thought that the "Page Info" sub-tab was visible only to me, a page administrator, and was used only for modifying page settings and data. I was therefore hoping that the long description would be shown somewhere on the "Overview" sub-tab.
But I was wrong. It turns out the "Page Info" sub-tab is actually visible to the public; they simply see fewer fields. But they do indeed see the contents of the "long description" field right there on that sub-tab.
So it turns out that quite a few clicks are required for the user to see the contents of the "long description" field. If you prefer, you can instead describe your company or product in a pinned post on its page's timeline; that way, more users will see your words. |
H: How to get a notice by Gmail if someone plans a meeting in my Google Calendar?
Had this numerous times: someone planned a meet in my calendar without getting a notice somewhere (preferably by mail) that this happened.
Result: getting of meeting notice 10 min before, without me even knowing it was planned.
Must be some setting to change this?
AI: If you haven't done this, you can add/edit notifications in Calendar settings. The default is a popup notification 10 min. before the event so I suspect you haven't edited this.
Go to Google Calendar.
Click the Settings gear at top right.
Choose "Settings" in the dropdown.
Click the "Calendars" tab (top left).
Look at your list of Calendars. On the right you can "edit notifications" for each calendar.
In here you can Add/edit a notification, choose to get an email or sms when someone invites you to an event, receive a daily agenda etc. |
H: How to access a gauge chart in Google Spreadsheets?
I have a gauge chart in my spreadsheet. I am looking for a line for accessing it.
function myFunction() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName("Gauge");
var charts = sheet.getCharts();
var crt = charts[0];
return(charts.length);
}
The problem is that sheet.getCharts() does not seem to encompass gauge charts. I have tested that by inserting a line chart into the same sheet. return(charts.length); then returned 1.
How to access the gauge chart?
AI: This is a known issue with Google Spreadsheets, first reported a year ago. You can star the issue in the hope of increasing its importance. So far, the response from Google is
Thank you for your report. We have been able to reproduce the problem and have filed it internally.
Since getCharts is the only Sheet method returning embedded charts, Apps Scripts cannot access the charts that getCharts does not support. Gauge is not the only type that lacks such support: same issue exists with some other types listed under "Other", e.g., Polar and Sparkline types.
My impression is that Google shifted resources toward Google Charts API, which is not tied to Spreadsheets. It does support Gauge charts as well as many other types. If you require programmatic access to gauge charts and are okay with them not being in a spreadsheet, this may be your best bet. A standalone script can still get data from a published spreadsheet, but of course this process will involve a bit more coding than with a spreadsheet-bound script.
Related: Embedding a Google Visualization Chart inside a Google Spreadsheet |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.