text
stringlengths 83
79.5k
|
---|
H: How can one obtain an AWS session token on the AWS website?
How can one obtain an AWS session token on the AWS website?
(I know how to do it through CLI, but sometimes getting it from the website could be handy)
AI: This isn't possible.
Session tokens and their accompanying temporary key and secret are only available from Security Token Service (STS) via API calls that the console does not offer a way to access.
The only ways to obtain tokens and credentials are those mentioned in the IAM User Guide -- CLI, Powershell, and SDKs, all of which call the STS API, which you can also call with third-party code. |
H: Unable to delete blank page after Table
In this google doc that has a blank second page, I can't seem to find a way to delete it (assuming I can't change the table in any way).
It doesn't seem to be a newline or a whitespace character. But, never the less I can't delete it.
Curious enough, there seems to be the same thing at the top of the page:
Any idea how to get rid of these?
AI: It looks that Google documents requires a paragraph before an after a table, so to avoid having a blank page after a table, reduce the table or the page margins to leave enough space for the "after table paragraph" (you could try set the last paragraph font size to the smaller allowed font size).
Related
Always a blank line above where I insert a table? |
H: Using The + Alias In G-Mail
I recently started using the + symbol method in GMail to set up multiple accounts relating to my personal email address (social , personal , work , etc), and now I want to use the same method for my business.
But, I'm wondering how to format my emails properly as I have some sub-divisions under my parent business. Is it possible to use multiple + symbols, or is it best to use a . or a -?
I'll give an example:
business@gmail.com // Main Business Email
business+subdivision@gmail.com // Sub Division Email
business+subdivision+contact@gmail.com
business+subdivision-contact@gmail.com
business+subdivision.contact@gmail.com
Any recommendations as to which can, or should be used?
AI: You only get one '+' per email address, but you're free to use '-' or '.' (or both) after the plus. In your case, all the these would be valid:
business+subdivision-contact@gmail.com
business+subdivision.contact@gmail.com
business+another-subdivision.contact-name@gmail.com
...and so on. Basically the plus has to come immediately after the primary address and anything that follows (except another plus) is ignored. |
H: Formula that will take a number in a cell, and then add that number to itself -1, until itself -1 = 0
I need a formula that will take a number in a cell, and then add that number to itself -1, until itself -1 = 0. For example, if the number were 5, the formula would be:
5 + 4 + 3 + 2 + 1
I could do this pretty easily in a for loop, but I hoping to avoid messing with sheets scripting.
AI: I figured it out. Assuming the number in question is 38 minus whatever is in cell B15, the following formula works perfectly:
=((38-$B15)*$B15) + ((38-$B15) * (38-$B15)/2) - (38-$B15)/2 |
H: How to open facebook.com/recover from the mobile app?
Someone forgot his Facebook password, he got logged out but is still logged into Facebook messenger. He wants to login again.
He has 2 methods of recovery:
Send password to email, and he can't do that because he linked his Facebook account to an old Hotmail account which he no longer remembers.
He has 3 trusted contacts, he should ask them to visit https://www.facebook.com/recover and give him the code.
The 3 contacts are his mom, dad and sister. All 3 forgot their passwords so they can login only from mobile. They are not able to access the link from a browser while logged in.
They should go to https://www.facebook.com/recover and give him the code for him to login. How to do that on mobile?
AI: I just solved it after asking the question immediately:
Ask your contact to send a message to someone in Facebook messenger containing the link https://www.facebook.com/recover, with https://, so it should be a link, or he can write the link on his timeline, the link should be written somewhere inside the app or the messenger
Then ask your contact to click on it, only then, the link will open within Facebook, and you can get the code.
If there's an easier way to do it let me know, I'll upvote and accept your answer. |
H: Can a Google form be locked temporarily for maintenance?
Can people be presented with a "form is down for maintenance" message just temporarily until the form is ready again?
AI: At this time Google Forms doesn't include a way to setup a custom message like "form is down for maintenance".
Considering the above, it could be a good idea to embed the form on a web page, maybe on Google Sites, so instead of sharing the form URL you share the web page URL and you could replace the embedded form with a message or other content.
Reference
View and manage form responses |
H: Is it possible to login to Facebook From Facebook messenger?
Someone is logged out of Facebook and can't access it, long story, but he's still logged in to messenger.
Is it possible to log in to Facebook mobile app, by using Facebook's messenger session, without entering his password, so that he can change it?
Because back when I used Facebook, it was possible for me to login to messenger automatically without using a password if i'm logged in to Facebook, I want to know if the opposite is also true.
AI: No it's not possible. You will have to login again using the main Facebook app. |
H: How to request more than 15 items from NPR RSS feed?
The rss feed https://www.npr.org/rss/rss.php?id=4473090 lists 15 items. Is it possible to request more?
AI: You can use the numResults parameter to specify the number of results, which appears to max at 50 items. To access beyond that many items, you can use the startNum parameter to iterate through the results.
Examples:
https://www.npr.org/rss/rss.php?id=4473090&numResults=50
https://www.npr.org/rss/rss.php?id=4473090&startNum=51&numResults=50
Reference: https://www.npr.org/api/inputReference.php |
H: Select rows with relevant dates
Scenario
At our office we track our time in the following format:
DATE | EMPL | HR | COMPANY
-----------|------|-----|--------
09-26-2018 | John | 2 | ABC
09-26-2018 | John | 2 | DEF
09-26-2018 | Jane | 1.5 | ABC
09-25-2018 | John | 1 | ABC
09-25-2018 | Jane | 1.5 | DEF
Etc, etc.
I have a query that figures out everyone's total hours worked for each company, but I have to manually put in the rows that correspond to the pay period, eg. SELECT(A2:E30). A pay period is from the 1–15 or 16–3x (last day of month).
Question
How can I write a query that looks at only the first group of rows that fit into a date of 1–15 or 16–3x?
AI: The key to a solution is to get the day value from the date so that it can be evaluated:
<=15 ( = 1-15) or >15 ( = 16-3x).
This part is pretty easy. Use the DAY function to return an integer value for the "day".
That leave two issues:
1 - Do we want the first half of the month, or the 2nd half?
2 - What statement do we use to actually get the rows?
Which half of the month?
I suggest a dropdown list to use in conjunction with an IF statement. If the dropdown = "1st half", then return the data using criterion of day <=15, otherwise day>15.
Getting the rows
I suggest either FILTER or QUERY.
FILTER
=if(B1="1st half",filter(A6:D,day(A6:A)<=15),filter(A6:D,day(A6:A)>15))
If the dropdown list (cell B1) = "1st half" then filter the payroll data (columns A to D) using the day component of the date as the criterion (day<=15), otherwise use the same criterion but a different value (day>15 = "2nd half").
QUERY
=query(A5:D,"Select A,B,C,D " & IF(B1="1st half","WHERE day(A) <=15","WHERE day(A) >15"),1)
Query the payroll data (columns A to D); if the dropdown (cell B1) = "1st half, then return data for the 1st to the 15 of the month; otherwise, return the data for the 16-3x of the month.
Apart from syntax, the main difference between the two is that QUERY returns column headings, whereas FILTER requires you do create your own headings.
Here's how the results looks on the screen
Here's a link to a spreadsheet
PS:
I've deliberately sized the payroll data as "infinite" by declaring column D without a row number. That adds greatly to the overheads consumed by these formulae. In addition, my strictly informal observation is that the QUERY updates fairly quickly, but the FILTER takes longer. Of course, I've got both running in the same spreadsheet so maybe that has something to do with it. But you might care toi experiment by specifying an end row (albeit bigger than you might need), and also testing with your own data which of QUERY or FILTER updates more quickly.
Supplementary
You asked why this formula is giving problems.
=query(A6:D,"Select A,B,C,D, sum(C) group by B,D" & IF(day(A6)<=15,"WHERE day(A) <=15","WHERE day(A) >15"),1)
These comments are offered on the basis that I closer to being an apprentice than an expert when it comes to SQL. Give that proviso...
1 - database range = "A6:D". But this excludes the header row. The range needs to include the header, it should be "A5:D".
2 - There is a missing "space" that separates the segments of the Select statement. In this example, the Select statement has two segments that are joined by "&". The second segment is dependant on the evaluation of the IF statement. When the segments are combined, there needs to be at least one space between them so that the language of the segments doesn't run together. This is probably better resolved by adding &" "& into the formula.
3 - FWIW, by focusing specifically on the value of cell A6, you can never run a report for the first half of the month. Unless of course, the data in the payroll range only ever consists of entries for the first half OR the second half of the month.
4 - SQL syntax - this is an area where you would do well to bone up on SQL. Google provides a useful Query Language Reference
4-1-1 As soon as your Select includes aggregation (Sum, Count, etc) and/or grouping, you can't include the date (A) in the results.
4-1-2 "Group By" should appear at the end of the Select statement. In this example, the WHERE segment follows the initial segment, and this makes the formula invalid.
After editing to reflect these comments, this is the new formula.
=query(A5:D,"Select B,D, Sum(C) "&" "& IF(day(A6)<=15,"WHERE day(A) <=15"&" "&"Group By B,D ","WHERE day(A) >15"&" "&"Group By B,D "),1)
This is a screenshot of the output of the formula. |
H: Show only email that arrived within the last X minutes
Confirmation emails are sometimes required for signing up for a webpage or sometimes just for logging into a page with 2FA.
I don't want to see any other emails, rather than the specific email, that I opened Gmail for, because they could distract me from what I actually wanted to do in the first place.
So I want Gmail to only show me emails, that arrived within a couple of minutes from 'right now'to minimize potential distractions. How can I do this within Gmail?
I was thinking, I could use a link to search my inbox with a specific filter, maybe?
AI: It appears you can specify the number of hours:
To only show a portion of your email use multiple unboxes.
To turn it on go to gear->settings.
then to advanced
select multiple inboxes.
that should give you a new settings tab.
You can then specify one of the new inboxes to show items newer than 1 hour.
newer_than:1h
if you tell it to put the new inbox above the main inbox then the new items will be in a separate inbox above the rest. |
H: How to find the closest date to today from a list of dates
I have a list of dates on column A. Each day I need to automatically put the date of today or the next closest date on cell B1.
20/8/2018
6/9/2018
25/9/2018
28/9/2018
11/10/2018
30/10/2018
31/10/2018
10/11/2018
15/11/2018
15/12/2018
I already tried using MATCH but it returns and index value. I could use INDEX to get the date corresponding to that index value.
=INDEX(A1:A10,MATCH(TODAY(),A1:A10,1)+1)
Is there a simpler/ straight forward way to achieve the same result?
AI: Another method to get the same result is, but I don't think that it could be simpler or straight forward but maybe it could me "more logical" for a "non spreadsheet thinker"
=ARRAY_CONSTRAIN(FILTER(A1:A10,A1:A10>=TODAY()),1,1)
FILTER returns an array of values that that met the condition.
ARRAY_CONSTRAIN reduce the size of the array, in this case, returns a single value. The same could be achieved by using INDEX. |
H: Is there a column width bug in Google sheets?
In a Google spreadsheet when I change the column width to 25 I noticed it looked very narrow. So I saved it as an .xlsx and then opened it in Excel. There it shows a column width of less than 3 as I suspected. That is a tiny column width.
Having done a little testing, here is the equivalence table I get:
Google spreadsheets col width | Excel col width | ratio
20 2.22 9.01
30 3.67 8.17
40 5.11 7.83
50 6.56 7.62
What on Earth is going on?
AI: Bear in mind that Google Sheets use pixels to set the column width instead of "points of scale" used by Excel.
NOTE: I used Jing to measure a column with. You could do the same by using any tool to measure a screen area.
Reference
Description of how column widths are determined in Excel |
H: Is it possible to calculate in the background of a data validation cell?
Is it possible to calculate in the background of a data validation cell?
I am creating a quite comprehensive spreadsheet that shall help me calculate dice pools in an RPG, but to not trouble you with the details, here is my sample scenario:
In google spreadsheets you can include a custom formula for data validation, which made me wonder if this could be used to calculate inside of the cell that you make a selection from.
So let's say we have Column A which lists various names. Then we have Column B which list corresponding values to the data in A. In Column C there are various modifiers to the values in Column B.
My question is, can I create a data validation drop down list with the entries of column A, but once selected, the data shown is not the text from Column A, but instead the corresponding SUM of B and C?
For reference, here's an explanatory screenshot:
I can imagine something like this might be doable with scripts. However, I would prefer using google's spreadsheet formulas as the data validation popup provides the option to use a custom formula for the range provided.
If that's impossible, some hints or leads regarding scripts work as well.
AI: You could use a script created using Google Apps Script and on edit trigger to replace the selected value from the drop-down list by the desired value.
Example
Let say that we have
A1 = A
A2 = B
A3 = C
C1 has a data validation to use A1:A3 as the list of valid values. Once a value is selected on the dropdownlist on C1, the following script automatically will replace A by 1, B by 2 and C by 3.
function onEdit(e) {
if( e.range.getA1Notation() != 'C1') return;
/* Object that holds as key the values of A1:A3 */
var dictionary = {
'A':1,
'B':2,
'C':3
};
e.range.setValue(dictionary[e.value]);
}
Reference
https://developers.google.com/apps-script/guides/sheets |
H: Formula for dates in Google sheets doesn't work when static time included
I'm trying to make a formula that takes a date formatted like this
"10/7" and will spit out the date 3 days before it.
So I make a formula
=C79-3
and that spits out the date. However, I also want there to be a pre-determined time following the sheet which is "09:00"
However, when I input a date of 10/10 in C79 and use this formula
=C79-3&"09:00"
I get an output of "433800.375"
What part of the formula is incorrect here?
AI: Using the formula you provided I wasn't able to see the same result
when I used
=C79-3&"09:00"
I saw 4338009:00 becaseut he "& attached the string "09:00" the the math result.
to get the result you want you need to use:
=C79-3+9/24
that will subtract 3 days from the date in C79 and then add 9 hours (9/24). If you meant 9 PM then you would add (21/24)
The formula with (9/24) does give me the result you mentioned. To get it into a recognizable form change the format to date time. The result will be
10/7/2018 9:00:00
Also the date 10/10 is assumed to be this year. It is always best to enter the date with the year to make it clearer. |
H: How can I view other people's calendar in Microsoft Outlook web interface?
How can I view other people's calendar in Microsoft Outlook web interface when scheduling a meeting?
On Outlook for Microsoft Windows, I can view other people's calendars when creating a new meeting:
AI: You can click on this icon when creating a new meeting:
It'll allow you to view other people's calendar in Microsoft Outlook web interface when scheduling a meeting: |
H: Swapped product listings on Amazon
I'm seeing more and more occurrences on Amazon of the following phenomenon: a product with good ratings (usually 4/5+) has reviews that refer to a different product. (Sometimes this happens for brands that have a large number of products, rather than for random drop-shippers.) For example, this USB-C hub has reviews talking about its solar charging capabilities.
Questions:
Is there a name for this, or more information about this practice? What is going on? Does one seller buy an existing product listing for its reviews, then replace the product?
This seems to blatantly violate the spirit of Amazon's selling policies, but not the letter. What recourse does a buyer have here? That page has a link to report violations, but it's only available to sellers.
AI: UPDATE The practice was called "review reuse fraud" in this Buzzfeed article:
The mismatch between the product and the review may appear random, perhaps a glitch, but it’s a deliberate tactic Amazon sellers use to accumulate reviews. They take an existing product page, then update the photo and description to show an entirely different product. By retaining all the existing reviews, the new product looks more tested and legitimate to shoppers — and in the world of online reviews, quantity is key. More ratings make a product appear to be more well-reviewed and, ultimately, boosts sales.
A single page can be manipulated multiple times over the years. Based on the reviews for a hair-straightening brush sold by AsaVea, the listing was for an SPF 30 lotion in 2006, and then a deodorant in 2010, and then a St. Ives face scrub in 2012, and then a mascara in January 2018, before ultimately becoming a hair-styling tool.
Longtime Amazon customer Marat Nepomnyashy was scrolling through his Amazon purchase history earlier this year, when he noticed pictures of products he didn’t buy. He clicked on the product page, and was surprised to discover that an extended battery he bought in 2014 was now a ZeroLemon clip-on Bluetooth speaker. “I realized that the product sold has been switched, and my positive review was now promoting this new product that I had nothing to do with.”
After talking with Customer Support, I found out that the most direct way of reporting swapped product listings is to email cs-reply@amazon and mention the product's ASIN. |
H: How can I ensure drafts are not included in my gmail filters?
I have created some filters in Gmail. Some of the results include drafts. This drives me nuts.
How can I create a filter with the requirement that drafts be excluded?
I've tried putting the search criteria along with
-in:draft
in the gmail search box, and clicking the down arrow to use the filter creation shortcut, but when I add
-in:draft
the "continue" link is grayed out, meaning I can't create a filter.
AI: Short answer
Filters act on incoming messages, so there is no need to include -in:drafts.
Explanation
I have created some filters in Gmail. Some of the results include drafts. This drives me nuts.
Actually what you are seeing is the search results of applying the filter search criteria to your mailbox.
From Create rules to filter your emails
You can manage your incoming mail using Gmail’s filters to send email to a label, or archive, delete, star, or automatically forward your mail. |
H: Conditional formatting if entry is final entry of the day
I have a Google Sheet in which I keep track of transactions, kinda like this:
| Date | Funds | Running total |
|---------|---------|---------------|
| 5/23/18 | 10.00 | 10.00 |
| 5/23/18 | 18.00 | 28.00 |
| 5/23/18 | (2.00) | 26.00 |
| 5/24/18 | 18.00 | 44.00 |
| 5/25/18 | (50.00) | (6.00) |
| 5/25/18 | 84.00 | 78.00 |
I'd like a way to make the Running total column be bold/highlighted (different), if it is the final entry of the day:
I've never actually done any Sheets scripting, and couldn't seem to figure out the formula, I tried
=(IF(A3<A4))
If the lower box is (a) greater (date) than the previous box, apply X formatting...
Well,
It doesn't work
I couldn't seem to figure out a way to apply the conditional formatting to the entire column (for each cell, I seemed to need to apply it manually).
I'm also looking for it to recognize when the final entry of a week is, but not sure if it's even possible. (Maybe this is too unrelated and I should post a new question.)
AI: WELZ, you can do this with pure conditional formatting, no helper column.
Let's say your three example columns reside in A:C. Do this:
Select cell C1.
Choose "Format" from the menu, then "Conditional Formatting" and
finally "Add new rule."
The box that says "Apply to range" will say "C1." Replace this with
"C:C" instead.
Under "Format cells if..." click the scroll arrow, scroll all the
way to the bottom of the drop-down menu, and select "Custom formula
is."
In the box below that (where it says "Value or Formula"), enter this
formula:
=AND(ISNUMBER(A1),OR(A2>A1,A2=""))
The last entry of each day will be highlighted (mint green by default for now).
Use the "Formatting Style" options to style as you see fit.
When finished, click the blue "Done" button.
(Added 10/12/18 per request)
WHY/HOW the CF formula works: =AND(ISNUMBER(A1),OR(A2>A1,A2=""))
=AND( ___________ , ___________ )
Two conditions MUST be met.
=AND(ISNUMBER(A1), ___________ )
If you've followed the above instructions, you will have changed "C1" in the Conditional Formatting dialog box to "C:C"; this means that whatever happens to Row 1 of that range will happen to every row. So when we apply ISNUMBER() to cell A1, it will actually check A1 relative to C1, A2, relative to C2, etc.
ISNUMBER(A1) is the first condition of the AND() that must be met. It will essentially check to see that you have a date (which Google Sheets sees as a formatted number) in Column A. In English, Google checks this: "Only apply any conditional formatting to the cell in Column C if the cell in Column A of the same row contains a date (i.e., don't apply any formatting if there is text, such as a header, in Column A of that row, or if Column A for that row is blank)."
=AND(ISNUMBER(A1),OR( ______ , ______ ))
The second condition of the AND() that must be met is that at least one of two things must also be true.
=AND(ISNUMBER(A1),OR(A2>A1, ______ ))
Either the cell below (i.e., A2) the cell in Column A of this row (i.e., A1) must be a higher date (marking the current row as the last entry of the date in Column A of that row), OR...
=AND(ISNUMBER(A1),OR(A2>A1,A2=""))
...that next cell in Column A (below the current row, i.e., A2) must be blank (which will catch the date in the final filled row as the last entry of that day, since there are no more dates to measure it against after that, just blank rows).
All together, in English: "Format the cell in each row of Column C if the cell in Column A of that row contains a date AND if either the cell below that date is higher or blank." |
H: How do I filter a table in Google Sheets to only show me the last 90 days of entries?
I have a spreadsheet I update daily that's grown to be ~1700 rows. I reset it every year, but I don't really need to see more than the last 90 days of entries.
I can't use FILTER(), as I still need to make entries and edits to the list, so I'm trying to work with filter view, but the "custom formula" field just doesn't seem to accept any functions.
I've tried "=(Today()-90)" to no avail. The only option that seems to work is to pick a specific date, only I'll have to change this date every so often as the filter grows too large.
Is there really not a way to auto-filter dates based on how far they are from TODAY()?
AI: In your filter, choose "Custom formula is" (bottom of the dropdown list) and enter this formula:
=A2>=TODAY()-90 (replacing A2 with the first data cell in your date column)
Click "OK."
Works similar to conditional formatting rules. |
H: Grant Access To Change Payment Methods To Azure Account
I'm managing an Azure account for a client. Their credit card has expired on the account and I would like to delegate access to modify their payment methods to their accounting department without granting full admin/ownership access to the account.
I've granted them Billing Reader AND Billing Administrator, but when they navigate to Subscription > Billing > Payment Methods they only see this:
How do I grant access to update payment methods without full admin/ownership? or is this not possible?
AI: Isn't the Azure portal fun!
Per the help docs, only the Account Administrator (the person who signed up for or bought the Azure subscription) can make changes to the billing methods.
The billing roles are used for accessing invoices rather than payment methods. |
H: Google Spreadsheet: Editing Status options in `Assignment tracker` template
I am using Assignment tracker default template of Google spreadsheet. The Status column has four default options Done, In progress, ... and Subject column has four options Maths, Biology, ....
The options for Subject could be edited from Subjects tab, but from where can the options of Status be edited?
AI: Click cell D5.
Choose Data from the menu and then Data validation from the dropdown menu:
When the Data Validation dialog appears, the Cell range: box will say Assignments!D5; add to that so that it says Assignments!D5:D.
Criteria will show List of items with a four-item list that is currently being used as the options for those drop-downs in the cells. Change that list to suit your needs.
You may also then want to change the conditional formatting to suit your needs. To do that:
Again, select cell D5 (though it could be any).
Choose Format from the menu, and then Conditional Formatting from the drop-down menu.
When the Conditional Formatting dialog appears, the top two items will be Text is exactly 'Not started' D5:D41 and Text is exactly 'In progress ' D5:D41.
Since you will have changed the Data Validation list to contain other items, you can either
a. hover over each of these entries in the Conditional Formatting dialog until the trashcan appears and click that to delete the conditional formatting rule, or
b. click on the rule and edit the text and formatting to match your new list items and preferences. You may need to add more rules. Just use the same range (D5:D41) and Text is exactly, like the other two, filling in your own new item and preferred formatting. |
H: How to prevent duplicate entry in google sheets per row
So using the example data below, how can I prevent a duplicate entry with an informative message. The duplicate entry should be based on the row and not the whole sheet.
So, if I was to add a second column named Colour2, and I added 'Blue' for Bob. I want it to prevent the entry with a suitable message. But I dont want it to prevent the entry of 'Blue' for Alex as he hasnt chosen Blue yet.
AI: I have a feeling that the real-life implementation you have in mind will be more complex than the sample. But for your sample as given:
Add header "Colour2" into Column C.
Select cell C2.
Choose "Data" from the top menu, then choose "Data validation" from the drop-down menu.
When the Data Validation dialog opens, append ":C" to the end of the range showing in the top text box beside "Cell range:"
Click the drop-down next to "Criteria:" and choose "Custom formula is" from the bottom of that list.
In the textbox beside "Custom formula is," enter this formula: =COUNTIF(B2:C2,B2)<2
Beside "On invalid data:" check "Reject input."
Check the box beside "Appearance:", delete the technical language in that text box, and enter something that will serve as both a short preemptive tip and an explanation if a duplicate is entered (e.g., "Avoid duplicate entries").
Click the blue "Save" button.
Another "gentler" approach might be to use conditional formatting. It won't prevent duplicate input, but it will certainly let you know that you need to change duplicates to something else:
Add header "Colour2" into Column C.
Select cell C2.
Choose "Format" from the top menu, then choose "Conditional formatting" from the drop-down menu.
When the Conditional Formatting dialog opens, append ":C" to the end of the range showing in the text box below "Apply to range."
Click the drop-down below "Format cells if" and choose "Custom formula is" from the bottom of that list.
In the textbox below "Custom formula is," enter this formula: =COUNTIF(B2:C2,B2)>1
Click the mint green button that says "Default" under "Formatting style." Select the "123" in red font on a white background. Click the strikethrough button below that (the icon is a small "S" with a line through it).
Click the blue "Done" button, then close the Conditional Formatting dialog by clicking the "X" in the top right corner.
Now, any time a duplicate is entered, the text will turn red with a line through it — clear indication that it should be changed. |
H: How to calculate weighted average of averages in Google Sheets?
I have product review data. The reviews are out of 5 stars and I know how many there are (ie quantity of reviews). I'm trying to calculate a weighted average of the reviews because I'm trying to distinguish the reviews by different product categories. If I simply do a pivot table average, it doesn't take into account the number of reviews. This is wrong:
So far, I have read and tried a lot with sumproduct and average.weighted but these seem to be better at calculating weighted averaged when you have the actual original values themselves (vs. the averages + quantity).
How does one calculate weighted average of averages:
Demo sheet: https://docs.google.com/spreadsheets/d/1WIdoCjazfprxRN5XW5PJ8lBQNAf8qmjgmRaZd3lhyJE/edit?usp=sharing
AI: Kyle, it looks like you want this:
cat 1: AVERAGE.WEIGHTED(B2:B6, C2:C6)
cat 2: AVERAGE.WEIGHTED(B7:B11, C7:C11)
cat 3: AVERAGE.WEIGHTED(B12:B17, C12:C17)
cat 4: AVERAGE.WEIGHTED(B18:B22, C18:C22)
If you don't always know how many listings there will be for each category:
Set up a small table of two columns with headers, say "CAT | Weighted AVG"
List your categories by exact name from row 2 downward in the first column (in my suggested examples, the "CAT" column):
In row 2 of the "Weighted AVG" column beside that, place this formula:
=ArrayFormula(AVERAGE.WEIGHTED(IF(A2:A=E2,B2:B),IF(A2:A=E2,C2:C)))
Then copy it down so that a version resides next to each of the categories you've listed under "CAT." |
H: Auto approve FB members using a web app that's connected to "passwords" DB?
What if I want to make a group only for specific students without manually accepting/refusing those who ask to join the group myself?
Assuming I've a database that has a number of passwords, and I've given one distinct password to every student, I want them to be automatically accepted if they ask to join and entered a correct password. I also do not want to allow them add/invite new members at all.
Is this even possible using FB API at the current time?
If so what topics/key_ideas/tags I must make a research about in
order to create such a web app?
If there is any other way around, I'd love to hear it.
I am not a programmer, I just had few programming courses.
AI: In short: no.
There is no way to accept group requests through Facebook Graph API.
You could accept passwords through group questions, and then comparing them to passwords in your database. Then you could make a js plugin that automatically clicks accept. But you would still need one admin to be online.
I would recommend studying Facebook for business, as it can be connected with custom domains (your login credentials). |
H: How to convert Telegram's channel into a group?
I've created channel which has some members, but I'd like to convert it into a group instead.
Is there any way of converting existing channel into the group?
My goal is to communicate with members both ways.
AI: You can only change the type of a channel (public <=> private).
If your channel doesn't have thousands of users, just create a supergroup and share its joinchat in your channel. (and also you can manually add those who haven't changed their group privacy...but it takes time because of the rate limit of telegram APIs) |
H: Use Google Forms to allow updating of old data and linking to correct record
I organise a small holiday programme which requires quite a bit of information about the children who attend (to ensure they are safe). This information splits into two types:
Information that never or rarely changes: Child's Name, Date of birth, Home Address
Information which changes with each enrolment: Days attending, Child's Interests
At the moment, we use a paper form for the first set of information, and a google form for the second set. I would like to move to using (two?) Google Forms for all the information.
With the "rarely changes" information, I want to be able to display what we already know, and allow the parent to make updates as necessary. For example, if your address has changed, you want to change address but not have to re-enter every other piece of information.
Please can you help me:
Read the information from the Google Sheet for the new form
Create a link from the original form to the appropriate record on the new form.
This programme is run by a small charity and we need to solve this problem in a cost effective way. Cutting down on physical paper will save us time and printing costs.
AI: Read the information from the Google Sheet for the new form
Google Forms doesn't include a built-in feature to "read" the information from a Google Sheet but you could use a Google Sheets / Forms add-ons or Google Apps Script to add the Google Sheets data to a Google Form.
You should search the Google Sheets / Forms add-ons store to look for an add-on that fits your needs or to write a script by yourself or hire a programmer. Alternatively you could post a question on Software Recommendations to ask for an add-on recommendation.
Related
Use add-ons and Apps Script
Create a link from the original form to the appropriate record on the new form.
Google Forms only include "edit response URLs" to open a previously submitted response answers which allow to make changes to the answers and submit the response again. This edit response URLs are shown to respondent after a response is submitted and it's possible to get this URLs by using an add-on and/or Google Apps Script.
Related
Show URL used to edit responses from a Google Form in a Google Spreadsheet by using a script |
H: Inserting a row in Google Sheets does not copy the formula present in other rows
I am using Google sheets withe the following formula in one of the columns
=ARRAYFORMULA(IF(ISBLANK(M2), "", ROUND(M2/G2, 2)))
Whenever I add a new row anywhere in the sheet, the formula does not get copied and I have to use other means to copy the formula in each cell of the inserted row.
How should I be writing this formula so that it automatically works for newly inserted row?
AI: When using array formulas, they only know to which range they should apply calculations if you include that information. It can be confusing, since conditional formatting formulas will apply an array given just the top cell in the column range.
Try this in place of your current formula:
=ARRAYFORMULA(IF(ISBLANK(M2:M), "", ROUND(M2:M/G2:G, 2))) |
H: How to trigger a script when a new text value is added to specific column?
I've built a sheet that generates messages for clients based on certain input data. The message appears in a cell in column B when all the required data has been entered. When a new text value is generated at column B I need this script to be activated:
// This constant is written in column C for rows for which an email
// has been sent successfully.
var EMAIL_SENT = 'EMAIL_SENT';
/**
* Sends non-duplicate emails with data from the current spreadsheet.
*/
function sendEmails2() {
var sheet = SpreadsheetApp.getActiveSheet();
var startRow = 2; // First row of data to process
var numRows = sheet.getLastRow(); // Number of rows to process
// Fetch the range of cells
var dataRange = sheet.getRange(startRow, 1, numRows, 3);
// Fetch values for each row in the Range.
var data = dataRange.getValues();
for (var i = 0; i < data.length; ++i) {
var row = data[i];
var emailAddress = row[0]; // First column
var message = row[1]; // Second column
var emailSent = row[2]; // Third column
if (emailSent != EMAIL_SENT) { // Prevents sending duplicates
var subject = 'Cognitive Training Software Tailored To Your Audience';
MailApp.sendEmail(emailAddress, subject, message);
sheet.getRange(startRow + i, 3).setValue(EMAIL_SENT);
// Make sure the cell is updated right away in case the script is interrupted
SpreadsheetApp.flush();
}
}
}
I'm new to any sort of coding and could't figure out how to make this happen. I tried creating an installable trigger using onEdit but could no longer get anything to send.
AI: On edit triggers are triggered on any changed made by an editor. The alternative is to use the edit event object and a control-flow statement, like if..else to terminate immediately the function if another column was edited.
Example
function sendEmails2(e){
if( e.range.columnStart === 2 ) {
// include here the code that does what you want if column 2 (B) is edited
}
} |
H: How to tag cells with multiple tags based off a list of tags?
Alright, there's a lot of similar Q&As out there but I can't get this figured out. I'm trying to categorize the cells in column A according to the list of keywords in column B. I've tried a wide variety of excel and sheets solutions but can't seem to get this.
C2 is an example. How does one create a list of matching tags/categories based off a list?
This is the closet I've gotten:
C2: =TEXTJOIN(", ",TRUE,REPT(b$2:b$99,ISNUMBER(SEARCH(b$2:b$99,A2))))
I know there must be some kind of array formula I can plug in.
My sheet: https://docs.google.com/spreadsheets/d/1_Nnk7c7JMcacJh6r_TFCLi3FsnuPxzf5Sv-YYwcRxS8/edit?usp=sharing
AI: Try this in C2 and copy down as far as you need:
=TEXTJOIN(", ",TRUE,ArrayFormula(IF(ISNUMBER(FIND(B$2:B$99&" ",A2&" ")),B$2:B$99,"")))
The ArrayFormula is checking to see which items from B$2:B$99 exist in the cell (i.e., tested by ISNUMBER, since anything found will have a start location and anything not found would return an error).
I've appended &" " to both the check range and the cell to check, so that "back" is not considered found in something like "backfly." If you want "back" to be considered found if it is part of a word like "backfly," just remove the concatenated space from the range and cell. However, that will also find that "hat" is part of "what," which likely isn't what you want.
Addendum 11/02/18: Be sure to see additional notes below that may apply to your situation. |
H: How to get the latest data group by the category where type 0 must not display
Based on the data below, I would like to get the latest date for each category where the type must not be "0"
Here is the result that I would like to show
AI: Assuming these things to be true:
That your dates are actual dates that Google Sheets recognizes
That your dates are chronologically entered (i.e., a cell's date is always earlier than all the dates below it)
Use this formula:
=ArrayFormula(IFERROR(VLOOKUP(UNIQUE(A:A),QUERY(IF(C:C<>0,A:C,""),"Select * Order by Col2 Desc"),{1, 2, 3},FALSE),""))
How it works:
Working from the inside out...
IF(C:C<>0,A:C,"")
First create a limited range of only those rows in A:C that don't have a zero value as "TYPE" (Column C).
QUERY(___,"Select * Order by Col2 Desc")
QUERY this range in reverse (now all "most recent dates" will be at the top.
VLOOKUP(UNIQUE(A:A),___,"Select * Order by Col2 Desc"),{1, 2, 3},FALSE)
Look up each unique value in A:A (in your example, there are only 4: A, B, C and null). Use the upsidedown QUERY we created as the search range. Return the array formed of all three columns ({1, 2, 3}, in other words, all data per matching row). The categories are not guaranteed in any order, so we use FALSE at the end.
Since VLOOKUP stops when it finds a match, and the QUERY range is upside-down, the first match will always be the one with the most recent date.
IFERROR(___,"")
If there is no match (which will only happen with the UNIQUE value null), leave that final row in the array null as well. |
H: Count how many times in a row a cell does not equal the cell above it
I want to count how many cells in a range of a row (G2:N2) are not equal to the cell above it, i.e.:
G2 != G1, F2 != F1, H2 != H1, ... , N2 != N1
And then also be able to drag that down, so each row has a total of how many differences occur on this row.
AI: Try this in O2 and then drag-copied down as far as needed:
=COUNTA(IFERROR(QUERY(TRANSPOSE(QUERY(G1:N2)),"Select Col2 Where Col1 Is Not Null And Col1 != Col2")))
How it works:
=QUERY(G1:N2)
A copy of the selected range from the previous row and current row is made in memory.
=TRANSPOSE(QUERY(G1:N2))
This is flipped so that the rows become columns (again, in memory only).
=QUERY(TRANSPOSE(QUERY(G1:N2)),"Select * Where Col2 Is Not Null And Col1 != Col2")
Another QUERY is run on the flipped two-column range, to limit it only the second column (which, again, is a flipped version of the current row in the Sheet) and only where cells in that column are not empty but are equal to the first column (i.e., previous row).
IFERROR(QUERY(TRANSPOSE(QUERY(G1:N2)),"Select Col2 Where Col1 Is Not Null And Col1 != Col2"))
Control for the instance where an error occurs (for instance, if you drag past the range with values accidentally).
=COUNTA(IFERROR(QUERY(TRANSPOSE(QUERY(G1:N2)),"Select Col2 Where Col1 Is Not Null And Col1 != Col2")))
Count what's left.
Edit: fixed equal/not equal |
H: How to join Medium without having Google or Facebook account?
I do not have Google, Facebook or Twitter account. I do not use social media. But I want join Medium. I have a non-Google email id. How can I join Medium? I am not seeing any option to create account using email id. Is there any way to join Medium directly using email id, without having any social media?
AI: It's a bit deceptive the way they've laid it out on the page.
Go to the "Sign In" link under the two options. Click "Sign in with Email," and if you enter your email address, they will send you an email with a link.
You don't have to have had an account already to do so. |
H: What's the difference between the Gmail label buttons?
I am sorting out my Gmail account, and started labeling emails, but I can't seem to figure out what the different icons mean in the labeling dropdown menu. There are 3 icons:
empty
minus
checked
You can see them in the screenshot below:
AI: When you have multiple messages/conversations selected and you click the labels button there are three options for the list of labels presented:
empty: none of the messages/conversations selected are using that label
minus: some of the messages/conversations selected are using that label
checked: all of the messages/conversations selected are using that label
If you only have one message/conversation selected then only empty and checked will be used. |
H: Emails I send keep getting into recipient's Spam folder in Gmail
I have a personal domain and I use a mail account on it (it's not Gmail). Recently, all the emails I send (personal and business messages, not bulk) keep getting into the recipients Gmail Spam folder (I checked with several recipients).
Why is that and what can I do?
More info:
I checked and my domain is not in the blacklist.
When looking at the message in the Spam folder, it states "It's similar to messages that were detected by our spam filter".
However, this is a personal message I wrote to someone - not a newsletter or a bulk message.
My sites and mail server are on a shared hosting service. But until recently I didn't have this problem.
AI: OK, seems I SOLVED the problem for now. I'm posting here for anyone who encounters the same issue.
What I did was:
Created PTR record in my domain's DNS settings
Enabled DKIM in my domain's hosting
Created SPF record in my domain's DNS settings (see explanation and examples at https://www.sonicwall.com/en-us/support/knowledge-base/170504417772166)
Created DMARC record in my domain's DNS settings (see explanation and examples at https://www.sonicwall.com/en-us/support/knowledge-base/170504796167071)
You can use https://mxtoolbox.com/domain to check domain health and problems with DNS.
Good luck! |
H: Preload GMAIL to quicken loading time
Is there any way of preloading Gmail, so that I can have a shortcut to it on my desktop (Mac) and it goes straight to the inbox (without the giant gmail logo and loading sign), So it's like running in the background and is there a huge downside to this? Maybe it'll slow my computer down?
It's just I really don't like the default email app on the Mac and would rather use a shortcut, but loading can be a little slow, especially when at work.
AI: Try using offline Gmail.
Second Option
Follow this guidelines.
Go to settings.
Check "Enable offline mail."
Choose your settings, such as how many days of messages you want to sync.
Click Save changes.
bookmark the page and also save shortcut
https://support.google.com/mail/answer/1306849?hl=en |
H: Inserting a "tel:" hyperlink in Google Calendar description
This question is an extension of this existing question.
I'm able to add any website link as a hyperlink in Google Calendar,
but when I try to add a hyperlink that's not a website link, it doesn't show up as a hyperlink, but the whole a HREF HTML code is seen in the calendar invites.
mobile callers, tap the link for your phone
"<"a href="tel:xxx.xxx.xxxx,,confCode#,,%23">Android / iPhone / Windows Phone
There was a "BT MeetMe" plugin in my Outlook that used to add this hyperlink to my Outlook calendar invites. I'm trying to replicate the same in Google Calendar.
AI: Found a workaround for your question. It's not exactly a straight-forward click-to-call link per se, but it works perfectly.
Go to your settings in the upper right-hand portion of your calendar page.
Click on the "Get Add-ons" link. This opens a secondary window so have your popups open for the app.
3. There will be 4-5 different integrations like RingCentral, UberConference, GoToMeeting, etc. Choose the one you're most comfortable with, although they all work pretty similar, the point is they work.
Create your event. and when you see the section "Add Conferencing" select your integration and follow the instructions. The result will be a click-to-call Number in the Info section that your client can click and if their device is set-up for it, will call you.
This option should work perfectly fine for you.
Best of luck! |
H: What are the hiddent buttons in Google Search?
I accidentally press Tab several times in my browser and find out the three hidden buttons right under the logo:
Is this a bug? If not, how to access it by mouse?
AI: This is a feature, not a bug. Accessibility features are for users using assertive technologies such as screen readers, so mouse usage isn't expected.
You can read more in the Accessibility in Google Search page (one of the first links to appear while tabbing):
Accessibility in Google Search
After you search, the search results page is organized so that you can easily navigate it with assistive technology, like screen readers and keyboard-only.
Accessibility links on search results pages
On a computer, you'll find 3 accessibility links at the top of a search results page: Skip to main content, Accessibility help, and Accessibility feedback.
With a keyboard: Press the Tab key until you reach the link you want. Then press the Enter key.
With a screen reader: Use your screen reader's quick navigation controls. |
H: How do I disable Slack tab "badging" in Google Chrome?
When I have unread slack messages, the Slack icon on the browser tab is a bright white (with a red dot when I get a mention):
When I have no unread messages, it is grey:
Is there anyway to disable this "badging" so the tab does not change at all, regardless of whether or not I have unread messages? I have Slack notifications disabled in Chrome, but this only affects the little notification pop-ups. I know that I can mute channels in Slack to not get any form of notification, but I just want to control of the tab behaves, because I would still like to see an indication in the Slack sidebar of which channels include unread messages when I visit the Slack tab itself.
AI: You aren't alone in this request, however it isn't possible at this time. The Slack Twitter account responded to this question only last month:
Ah, it is unfortunately not possible to disable favicon auto update or mute direct messages. Sorry to be the bearer of bad news. - @SlackHQ
https://twitter.com/SlackHQ/status/1053219986741833728 |
H: 3 Conditions IFS not behaving as expected
I'm building a commission tracker at my work and I need to search a specific cell and produce 1 of 3 values (in a different cell) based on the text string that the cell holds.
Here is the logic:
If cell is empty put error message in cell
If cell contains "No Metrics" as the string, populate a 0 in the cell
If cell contains any strings other than "No Metrics" populate 50 in cell
Here is my formula:
=IFS('Won Opportunities - Sales'!AQ26="", "SALES PERSON IS GARBAGE",'Won Opportunities - Sales'!AQ26="<>No Metrics",50,'Won Opportunities - Sales'!AQ26="No Metrics",0)
This works fine for empty cells and cells that contain "No Metrics" but gives back #N/A for anything else.
What am I missing here?
AI: Roy, you've got a syntax error. Try this:
=IFS('Won Opportunities - Sales'!AQ26="", "SALES PERSON IS GARBAGE",'Won Opportunities - Sales'!AQ26<>"No Metrics",50,'Won Opportunities - Sales'!AQ26="No Metrics",0) |
H: Merge array into column row by row
I'm trying to do this without code.
I have an array of 4 columns with an undefined amount of rows, and I want to merge them into 1 column, but not by appending columns (so I can't use {A1:A;B1:C1;C;..}), but rather by appending cell, line by line.
Example:
Input:
Val1a Val1b Val1c Val1d
Val2a Val2b Val2c Val2d
Val3a Val3b Val3c Val3d
Val4a Val4b Val4c Val4d
Val5a Val5b Val5c Val5d
...
Output:
Val1a
Val1b
Val1c
Val1d
Val2a
Val2b
Val2c
Val2d
Val3a
...
AI: Julien, let's say your sample data above were in the range A1:D5. Use this:
=TRANSPOSE(SPLIT(TEXTJOIN("/",TRUE,A1:D5),"/"))
This assumes that your data itself does not contain a forward slash, which in the formula, is being used as a temporary delimiter. If, for some reason, your data does contain a slash (e.g., URLs, etc.), just replace the two instances of the forward slash in the formula with any symbol or combination of symbols that your data does not include.
How it works:
TEXTJOIN will string together the whole range into one long text string, running left to right per row, separating everything by a delimiter of choice.
SPLIT will then split that text string again at those delimiters, which will make a long horizontal array of everything in the original range.
TRANSPOSE will take that long horizontal array and change it to a vertical array.
If you then want to keep the hard data created by the formula:
Select the results range.
Hit Ctrl-C to copy it to clipboard.
With the range still selected, hit Ctrl-Alt-V to Paste Special.
A small clipboard icon will appear at the lower right corner of the range. Click it and choose "Paste values only." |
H: Sharing a GIF on Giphy after GIF and Facebook post has been deleted
A GIF uploaded via giphy.com has been shared via Facebook. Afterwards both the Facebook post and the GIF on Giphy has been deleted. Other people can still share and see the GIF.
Do you know why? What can be done to avoid this?
It seems that GIFs on Giphy can be edited, but I guess not after deleting them, right?
Update: it seems that the GIF is cached by Facebook on .fbcdn.net/v/ - this cache can be manually cleared via https://developers.facebook.com/tools/debug/ but in this case the GIF has already been deleted on Giphy and returns only a 404 error. Facebook seems to ignore the 404 error and lets people continue share this link.
AI: Seems as if Facebook clears its cache after getting a 404 error for longer time. Now after a couple of days, Facebook displays "This content is not available". |
H: Sheet Specific Scripts
I'm currently using the below script to timestamp when an edit is made to column 7 on a sheet named "Sheet 1".
function onEdit(e) {
if ([7].indexOf(e.range.columnStart) != -1) {
e.range.offset(0, 7).setValue(new Date()).setNumberFormat("dd.MM.yyyy at HH:mm");
}
}
I have a second sheet "Sheet 2" which I need to run the same script on but against column 5.
function onEdit(e) {
if ([5].indexOf(e.range.columnStart) != -1) {
e.range.offset(0, 7).setValue(new Date()).setNumberFormat("dd.MM.yyyy at HH:mm");
}
}
I've tried .getSheetByName("Sheet1") but just cant seem to get it working correctly.
AI: Please try the following piece of code.
Code
function onEdit(e) {
var col = e.range.columnStart;
if(col === 7 || col === 5) {
var name = e.source.getActiveSheet().getName();
if((name === 'Sheet1' && col === 7) || (name === 'Sheet2' && col === 5)) {
e.range.offset(0, 7).setValue(new Date()).setNumberFormat("dd.MM.yyyy at HH:mm");
}
}
}
Explained
The code reads as follows:
First check whether we're in column 5 or 7.
If true, only then retrieve the sheet name
If the sheet name and the column match, then execute the command
I think onEdit functions deserve some extra attention to avoid un-necessary calculations. If you were to include the sheet name, if would check the sheet name every time you change a cell. By restricting that to the columns only, you avoid that. |
H: How to analyze a time tracking sheet with Google Sheets?
I have a simple time tracking set up with Tasker on my phone that creates a new line every time I connect to my work Wifi.
I upload this csv file regularly to Google Drive and import it to a Google Sheet with a Script.
In this script I have two tabs, one with the imported raw data (which is overwritten once per day) and one with the analysis.
A (Date) B (Time) C (Arrived or left work/Wifi)
10-15-18 18.55 Start
10-15-18 18.59 Stop
10-16-18 08.57 Start
10-16-18 09.02 Stop
Now I want to analyze the amount of hours per day (a sum of the time in column B, duration between Start and Stop).
One problem I have is with the dot in column B for the time which is automatically created by Tasker in the csv file.
In the analysis tab I have this formula:
=ArrayFormula(IF(Rohdaten!C2:C="Stop";TO_PURE_NUMBER(Rohdaten!B2:B) - TO_PURE_NUMBER(Rohdaten!B1:B);))
This should calculate the duration but throws an error because it is not able to detect/convert the text to a number.
I want to use a similar solution as proposed here.
How can I fix it?
AI: Peleke, I just looked at your linked sheet. Some of your data in Rohdaten!A:A is dates (those that are right-aligned) and some are text that just looks like dates (those that are left-aligned). Similarly, some of your data in B:B is numbers (right-aligned) and some is text (left-aligned). How you got mixed data in the same column, I don't know. But, no, my formula assumed your dates were all real dates and your times were all real numbers, not a mix of some dates, some numbers and some text.
I chose to spend some more time with your sheet. It was not easy, but I wrestled a formula together that will account for your mix of text and numbers. It's placed in your first sheet, cell A2 (not A1, since your first "Stop" is in C2 of the next sheet).It is working now.
The new formula:
=ArrayFormula(IF(Rohdaten!C2:C="Stop";(TIME(LEFT(TO_TEXT(Rohdaten!B2:B);FIND(".";TO_TEXT(Rohdaten!B2:B))-1);MID(TO_TEXT(Rohdaten!B2:B);FIND(".";TO_TEXT(Rohdaten!B2:B))+1;2);0)-TIME(LEFT(TO_TEXT(Rohdaten!B1:B);FIND(".";TO_TEXT(Rohdaten!B1:B))-1);MID(TO_TEXT(Rohdaten!B1:B);FIND(".";TO_TEXT(Rohdaten!B1:B))+1;2);0))*60*24;""))
This is not ideal, to have mixed data coming into your sheet. But if that is all you have, then this formula should keep up with it.
I also formatted the column that contains this formula to show the number of minutes followed by "min" (e.g., "160 min"). |
H: Automatically Create a New Copy of a Public Google Sheet
Our company just created a new template for website planning. It is available as a Google sheet. We've also added instruction on how to create a copy for themselves. Like open the document, Go to File -> Make a Copy. However, we still get many requests asking for access.
Is there a way to automatically create a new copy for the user when he/she click on the link, instead of the view only file?
AI: Short answer
On the spreadsheet URL, replace /edit by /copy
Extended answer
The Google Sheets spreadsheet URL looks like the following
https://docs.google.com/spreadsheets/d/1aAKaVc-eUBwmwCFwX4q4vLtubDzE_81kOTWgbmz4FvU/edit#gid=0
Replace /edit and the following characters by /copy
https://docs.google.com/spreadsheets/d/1aAKaVc-eUBwmwCFwX4q4vLtubDzE_81kOTWgbmz4FvU/copy |
H: Where do I input Facebook's recovery codes?
I don't have any problem with my account at all, all 100% fine. I'm just trying to TEST the recovery codes of this page. When clicking on "show codes", I can see the 10 alphanumeric two word codes clearly. However, I can't find any place to input them.
If I go to incognito mode (to not get log-in automatically) and then to the Facebook login screen in the desktop or on Android Chrome.
Where do I put them?
In the password field?
If so, what do I put in the username field?
Desktop: If the correct way is to click on "Forgot account", and then use them to reset password, as it says when you continue that path, then that's bad, because, I don't want to reset my password. Now, Facebook says clearly in the page linked before:
"Use these codes for when you don't have your phone with you, for
example when you're traveling."
Nowhere at all there says anything about password change. So Facebook is being inconsistent in what this "recovery codes" are for.
Mobile browser (Chrome on Android): I only see username, password, "forgot password", that I don't want to click for the same reason as before.
Facebook Android app: same problem, where to input it?
AI: The recovery codes are used for 2 Factor Authentication if you don't have your phone. So after you log into Facebook on a new device, you would enter the recovery code instead of the code that gets SMSed to you (or you get out of an authenticator app like Google Authenticator).
These aren't to be confused with the security code that gets sent via email or SMS when going through the account recovery process if you forget your password. |
H: How to rescue my work if Google Docs crashes
Google Docs didn't save some changes and crashed with the message
Unable to load file. Try to load it again or send an error report. [Reload]
I see the text I wrote in the background, but I can't select it to copy&paste it, it's grayed out. Ctrl+A, Ctrl+C doesn't help. How can I rescue the text I wrote?
AI: If you're using Google Chrome:
Right click, Inspect
Hover over a tag (for example <html>) such that the Google Docs editor is highlighted
Right click, Copy, Copy outerHTML
Paste somewhere
Optionally, remove HTML tags, for example with a regex like s/<(.*?)>//
Optionally, if you want to detect differences with the version that Google Docs saved, use FineDiff or so |
H: Stop Google Sheets formatting text as URL
When I type "product.name" or "product.id" into a cell, it's auto–formatted as a URL (different colour, underlined, hover shows it as an external link). But it's not a URL, it's plain text.
Similar text like "product.periodLength" isn't converted to a URL.
Based on:
How to set a Google Docs Spreadsheet cell format to bare text?
How can I stop Google Sheets formatting a Forms response as a date?
I've tried setting the formatting to plain text and using a leading single quote ('), but it doesn't stop the text being formatted as a URL.
AI: I couldn't find an absolute setting to just disable this function. However, you can disable the function from continuing to create links or start creating links in a new document simply by selecting all the cells (Ctrl+A), right-click and select "Unlink" from the options menu. As soon as you do this, Google Sheets saves the change and no hyperlinks will automatically be created. Closing and re-opening does not re-enable the function either. |
H: Cognito Form Calculation for current week number
I am trying to create a field within a form that will automatically calculate the current week number. It's only for internal use, I just need it to show up on the Entries listing after the form has been submitted.
Back with an add on to my original question... I have been using the formula provided on a few forms and it works Ok other than that the day of the week that the week number changes in the form is not Sunday as expected but on Tuesday...? However my main concern to wanting to be able to use the formula with the exception of using a provided date (ie, the Entry Submission Date) as currently the formula must be a part of the form before an entry is processed in order to apply the correct week number to that specific entry.
Any continued help would be much appreciated! Thank you
AI: Here is the calculation to use.
=Math.Ceiling(DateTime.Today.DayOfYear/7)
I would recommend setting this as the default value of a number field so that it can be changed if necessary.
According to ISO-8601 standard, a week starts on Monday and the first week of the year is the first week containing at least 4 days. There are, in fact many more standards to define weeks and week numbers. While achieving this kind of check using the Cognito calculations would be rather difficult, it probably is unnecessary for most purposes and what is given above should help. |
H: Copy data to new column in Google Sheets
I have a sheet with IMPORTHTML that I want to copy data from one column to a new column daily.
function saveData() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Daily ledger'), true);
spreadsheet.getRange('x3:x96').activate();
spreadsheet.getRange('N3:N96').copyTo(spreadsheet.getActiveRange(), SpreadsheetApp.CopyPasteType.PASTE_VALUES, false);
}
This script works well, but I have to change x3:x96 every day (tomorrow I would have to change it manually to y3:y96 etc.), I also have to change the trigger date daily.
Is there a way to do it automatically? To have a script paste in a new column every day?
I know there is a way to do it in new row, but that is not what I am looking for.
AI: spreadsheet.getRange(3, spreadsheet.getLastColumn()+1, 93, 1).activate();
This will activate the next right most column range from row 3 to 96.
This can also be accomplished in a more easy and in an understandable way by doing something along the lines of,
function saveData() {
const ledger = SpreadsheetApp.getActive().getSheetByName('Daily ledger');
ledger.getRange(3, ledger.getLastColumn()+1, 93, 1).setValues(ledger.getRange('N3:N96').getValues());
} |
H: How do I make custom labels visible in a GitLab CE group board?
I am running a GitLab CE instance. I have:
created a group, with projects in that group
defined group-level labels
marked a project issue with one of those labels
When I first visited the group board I was presented with the option to use the default labels ("To do" and "Doing") or define my own. I picked "define my own". But my existing labels do not appear in the board.
How do I make these custom labels visible in a my group board?
AI: It seems defining your own group labels ("Configurable issue boards") is not a GitLab CE feature. So you cannot do this.
From https://docs.gitlab.com/ce/user/project/issue_board.html#summary-of-features-per-tier ...
Tier: Core / Free
Number of Project Issue Boards: 1
Number of Group Issue Boards: 1
Configurable Issue Boards: No
Assignee Lists: No
This option was offered on a CE/EE instance, which seems like a bug https://gitlab.com/gitlab-org/gitlab-ee/issues/8393 |
H: Conditional Formatting with Multiple Conditions Weekday and Time
I'm working with Google Sheets and want to highlight cells in long date format (e.g. 11/13/2018 21:00:00) that are Tuesday and 21:00:00. Here is my attempt:
=AND((weekday(C4:C124)=3),(EQ(RIGHT(C4:C124,8)),"21:00:00"))
What I understand this to say is "if the weekday is Tuesday AND the eight characters at the end of the cell is equal to 21:00:00, then highlight."
What might I be missing in getting this to work properly?
AI: Please try this one instead:
=AND((weekday(C$4:C24)=3),(EQ(RIGHT(C$4:C24,8),"21:00:00")))
Do take notice of both the $ signs. The formula will not work if you omit them.
PS: When asking try giving the URL to a sample sheet and if the answer works accept it so as to help others as well. (Why vote?) |
H: Google Sheets - select highest value for each unique label
I have a simple spreadsheet which is tracking timeseries data for several users:
Time | User | info
00:01| bob | hello
00:03| sue | hello
00:05| bob | goodbye
00:10| sue | hello again
I would like to isolate the most recent entry for each unique user in another sheet. Also, I'd like this view to be dynamically updating, as more rows are added to the source data sheet.
Time | User | info
00:05| bob | goodbye
00:10| sue | hello again
This question is very similar: Google Spreadsheet Query for unique and "most recent", however it gives me an error related to the <> syntax, which I cannot figure out.
AI: There are a lot of approaches you could take to this. Here's one (written as if your data is held in A:C on "Sheet1":
=ArrayFormula(QUERY(IFERROR(VLOOKUP(UNIQUE(Sheet1!B:B),QUERY({Sheet1!A:C},"Select Col2, Col3, Col1 Order By Col1 Desc"),{1, 2, 3},FALSE)),"Select Col3, Col1, Col2"))
Be sure to format your time column in the result range in accordance with the time column in your raw data range.
How it works (from the inside out):
The innermost QUERY takes the raw data and lists it in reverse order by time, leaving the most recent time at the top. It also swaps the order of the columns so that the name column is first: QUERY({Sheet1!A:C},"Select Col2, Col3, Col1 Order By Col1 Desc")
The VLOOKUP searches only the UNIQUE entries among the names (limited each to one find), by looking in the QUERY range we just created in memory above. It returns all three columns of data (i.e., {1, 2, 3}). We use "FALSE" since the data is in no particular order by name.
UNIQUE includes one null value if contained in the range, and VLOOKUP will throw an error for a null search. So we wrap everything so far in IFERROR() to cut that one error.
We run another QUERY on our VLOOKUP results to put the columns back in the original order: QUERY(...,"Select Col3, Col1, Col2")
Finally, everything is wrapped in "ArrayFormula," because we are retrieving results for an entire range, not just one cell. |
H: How do I know which apps and accounts are connected to Facebook?
Deleting a Facebook account involves selecting "Delete My Account" following some instructions then not using Facebook in any way for two weeks.
To ensure that I do not use Facebook in anyway, I want to disconnect all applications and accounts that use Facebook. Is there a feature on Facebook that tells you which accounts and applications are connected to it?
AI: Login your Facebook account. Go to Account Settings. On the left side bar click on 'Apps'. It will list all the apps and website which is associated with your Facebook account. You can remove any or all of them. |
H: During Google Sheets formula entry, want keyboard shortcut to select a whole column
In MS Excel, I can type the following formula
=SUM(A:A)
Without taking my hands off the keyboard. I start in cell B1, I type =SUM( then I use the cursor keys to move one cell to the left, hit CTRL-SPACE (which turns the A1 into A:A) then type )
Is there any way to get google spreadsheets to do the same thing? The CTRL-SPACE shortcut works for selecting cells, but not within a formula. Is there some other way to do what I'm after?
I can use CTRL-SHIFT-DOWN but the end result is a reference to the range A1:A1000 - so if I subsequently add another 1000 rows to the spreadsheet, my formula doesn't extend.
Please help, my muscle memory is working against me right now... and the mouse is so far away!
Edit: Apologies, browser is chrome (but I'll use anything if I can get this to work). OS is Windows 10
AI: I consulted the Google Sheets Help Forum, and the expert advice from there confirms that feature does not exist yet. Instead, they suggested
"If you'd like to influence future versions of Google Sheets, Feature
Requests are encouraged. You can submit your idea using the HELP >
Report a Problem menu. I know that those submissions are valued by the Sheets team." |
H: .getActiveSheet function work for every tab but one
I have the following function that adds the latest edit time to the L1 cell in our spreadsheet -
function onEdit(e) {
// Prevent errors if no object is passed.
if (!e) return;
// Get the active sheet.
e.source.getActiveSheet()
// Set the cell you want to update with the date.
.getRange('L1')
// Update the date.
.setValue(Utilities.formatDate(new Date(), "GMT-6:00", "''MM-dd-yyyy hh:mm:ss aa"));
}
This is working as intended and seems to be OK - but I would like to exclude a specific sheet when running the function.
Say I have 6 tabs/sheets - Line1, Line2, Line3, Line4, Line5, Data Sheet
I would like the function to continue working for each of the "Line" tabs, but not apply to the Data tab as this has information in the L1 cell that needs to stay. Is there anything simple I can add to this function that excludes the "Data Sheet" from applying the latest edit time?
AI: You could introduce a JavaScript if statement like in the following script
function onEdit(e){
// if active sheet name is Data Sheet then stop
if(e.range.getSheet().getName() === 'Data Sheet') return;
// Add here the things to do when active sheet name isn't Data Sheet
} |
H: How to get content from Google Drive to Evernote?
I want to transfer my Google Keep notes to Evernote. Because Zapier doesn't support Google Keep yet, what I wanted to do is use the "Copy to Docs" option within Google Keep to export my notes to Google Drive first. Google Drive is supported by Zapier, so I can then set a trigger to export to Evernote (creating a new note) when a new file is created in Google Drive.
What I want to do is copy the entire content of a newly created Google Drive file into Evernote. How do I do that? Getting the title isn't a problem, but somehow I'm having trouble pinpointing how to export the entire content of the new Google Drive file into Evernote. All I can do is put the content of the Google Drive file as an attachment to the new Evernote file, which is not what I want, I want the content to be exported into the note itself. Is it possible?
AI: What a helpful site. Almost as helpful as World Building.
The problem was I should've chosen Google Docs as the trigger app, but I had Google Drive selected. So there was no way for Zapier to get the content into an Evernote note because it couldn't be sure that the file was really a document, and not a sheet or an image. |
H: Do new Gmail OAuth policies affect code I've written for myself?
I have a Spreadsheet in my Google Drive account with my own code which accesses my mails on Gmail, searches for unread, starred mails with a certain label and forwards this mail to different receivers.
This script runs every 5 minutes (time-based execution).
Now I just got the mail w.r.t. "New Gmail OAuth policies" which should go into effect January, 2019. Does this affect my code? Do I really have to submit every script I'm writing in my own Google account (placed in my Google Drive?). Or does this only affect people writing code which get's downloaded for execution by third party accounts?
I mean, this step really doesn't seem necessary if I'm coding on my own within my own Google account!?
AI: I am in the same situation.
My little company gives a TV a google account, we add some scripts to that accounts GDrive, and our clients can then control pictures / videos / scrolling text that is displayed on the TV simply by sending an email. It is basic digital signage with no CMS software to access or learn.
I have hundreds of clients and they all got this message and of course all panicked.
I panicked as well.
This is what I think I have figured out.
Because it is gmail based I will see an unverified app warning when I set them up an
and will have to go to the advanced tab to authorize it.
There is a limit of 100 users per app. Because I only have one user per gmail account there will be no issues.
If someone wants to have more than 100 users they have to get verified (FOR A FEE!!!) or asked to have the user quota raised.
Links:
Quoted from another page buried deep within the bowels of this Google document trail:
Quote on:
Who doesn't need to fill out this form?
Don't submit a review request if any of the following applies to you:
You'll only request OAuth tokens for your own accounts and not from external users.
You’re using the app to send emails through WordPress plugins or similar single-account SMTP usage.
Non-Apps Scripts Web Clients: If the users of your project belong to the same G Suite domain, and the project is associated with a Cloud Organization.
Apps Scripts: If the owner and users of your Apps Scripts belong to the same G Suite domain or customer.
You don’t need to fill out this form or go through the verification process. We recommend that you continue to use your app with the unverified app screen intact. See this FAQ for more details.
However, if you want to remove the unverified app screen, you will need to submit your app for approval."
Quote Off.
So.... I am thinking correctly or is my stuff going to go BOOM in January?
Paul Wheeler |
H: Google Spreadsheet IMPORTXML problem to extract from a web page
I'm trying to extract the "Comestibilité" and "Remarques" parts from a page using IMPORTXML in my Google Spreadsheet but I just can't get to them, they are generated by JavaScript but I cannot figure out how get those tags in IMPORTXML results. Any idea how?
I read many posts and tried :
=IMPORTXML("https://www.mycoquebec.org/bas.php?tag=Baorangia%20bicolor", "//*")
=IMPORTXML("https://www.mycoquebec.org/bas.php?tag=Baorangia%20bicolor", "//script")
But even if I get many results, I do not get the tags I'm looking for !!?
I also tried:
=IMPORTXML("https://www.mycoquebec.org/bas.php?tag=Baorangia%20bicolor", "//*[@id='Comestibilité']")
Wich returns no result.
AI: Google Sheets built-in funcion IMPORTXML can't access tags created by JavaScript. You could ask for a software recommendation on https://softwarerecs.stackexchange.com or look for related web scrapping
programming questions on https://stackoverflow.com.
Related:
How to know if Google Sheets IMPORTDATA, IMPORTFEED, IMPORTHTML or IMPORTXML functions are able to get data from a resource hosted on a website? |
H: Google search still shows obsolete webpage
There's a webpage that was just updated a week ago. But now I can still google what was present in that webpage before it was updated, and Google says that result/webpage was from 2 months ago. I wonder why?
AI: Google (and, honestly, all search engines) does not instantly index every single web page in its database. Using whatever their proprietary analysis determines, they'll eventually get around to re-indexing the page. For pages that Google knows are updated frequently, it will check more frequently. For others, not so much.
There used to be a tool you could use to alert Google to an URL that had changed, but they've admitted that they don't pay much attention to it, if it's even still up. (There is, however, such a tool available in their Webmaster Tools that they do pay attention to.)
Since the page is in Google's index, they will eventually get around to re-indexing it. |
H: Does YouTube delete videos based on number of dislikes?
I wanted to know if YouTube delete a video if it reaches a certain number of "dislikes"?
For example, some videos are disliked by many people lets say 10,000 people and 20 likes, does YouTube want to delete such video?
AI: Google doesn't care whether people like or not a video. Google profits from people viewing the video so even highly disliked videos might be profitable for Google and they wouldn't want to take them down.
There is no evidence that Google removes videos with many dislikes. There actually is a list with the most disliked videos on Youtube that are still viewable. |
H: How to delete conversation with someone on Facebook, both from my inbox and from his inbox?
I have a conversation with someone on Facebook that contains some sensitive information that that person could use to harm me. What should I do to delete that conversation from both my inbox and from his inbox?
As far as I know, the delete option in Facebook only works for my inbox. That means that the messages I delete still remain in that person's inbox.
What options do I have?
AI: From Facebook Help Center:
No, sent messages can't be unsent or removed from the person's inbox. Depending on the persons's notification settings, they may also receive your message as an email notification.
Keep in mind that deleting a conversation from your inbox won't delete it from your friend's inbox. It isn't possible to delete sent or received messages from a friend's inbox.
Here is a workaround you can try. Report that sent message as Spam, and then delete it from your inbox. Now deactivate (don't delete) your profile for few hours and then reactivate. Probably that persons will not be able to see your message.
Just a side note: In case that person already has saved your messages (via email notification or any other way), and try to harm you in future, do not hesitate to report this to cyber crime police immediately. |
H: Can I add an event to Google Calendar from Google Search?
If I need to set a reminder, I can just google "Remind me to get laundry in 1 hour" and it will prompt me with the option to add it to my Google Calendar:
Is there a similar trick for adding an event rather than a reminder?
AI: You can do something similar with calendar events. If you "search" for
add event dinner 11/30 6:00 pm
you'll get a prompt like this:
You will, of course, need to be logged in to your Google Account, and the event will go to your default calendar. I imagine the same sort of terminology you can use in Google Calendar Quick Add is the same you'd use here. They keywords seem to be "add event" or "add meeting". There are probably others. |
H: Getting changeType Attribute in edit Trigger Google Apps Script
How can one tell the action triggered the onEdit function in Google Apps Scripting? The actions I have found to trigger it include:
edit a cell
delete a cell or range
cut or copy a cell or range
Copy a sheet
I would like something similar to the onChange's changeType attribute that tells me what the user did.
I need to react to what the user is doing. If they are deleting a cell, it can't be columns 1 or 2, but it can be 1 or 2 if they are deleting a row. If they duplicate the sheet, they need to be able to copy columns 1 and 2.
I can't figure out how to tell the type of action the user did in any way.
I'm faking it by looking at the row the user edited and the oldValue attribute, but it's not completely accurate and my code looks very brittle.
The change event function doesn't have the attributes I need like source, range, oldValue, and value.
AI: On Edit simple and installable triggers are only triggered when a range values change, the related event object doesn't has a changeType attribute. By using this kind of triggers there is no way to know how the user edited the range values.
Reference
https://developers.google.com/apps-script/guides/triggers/ |
H: How to remove "To field" suggestions in Gmail?
The new Gmail interface look like this:
In old interface there is drop down button under mail where we can delete contacts. Now it is missing in new interface.
AI: Classic Gmail (old version) had a drop-down at the top-left under Gmail for quick access to Contacts. Now this drop-down option has gone from new interface.
In the new interface you can see an square box on top-right near to bell icon. This has various Google applications:
Click on this square box, Contacts will be there, if its not there click on More, you will find the Contacts:
You can rearrange these products anytime by dragging them. |
H: How do I join a Facebook group with my Facebook page?
Recently Facebook showed me a message in one of the Facebook groups I'm admin of which said "Now pages can join groups" or something like that, and there was one page among regular Facebook people accounts waiting for approval to join my group. Now I want to join some groups with some of my Facebook pages, but I dont see instructions anywhere how to do it, how can I do that?
AI: The feature needs to be rolled out to the group you would like to join as well as the page you would like to join.
(I don't believe it's 100% rolled out to everyone)
In addition, the admin must enable it in the group settings.
https://www.facebook.com/groups/<group_name>/edit/
Once, that's done, you should be given the option. |
H: Gmail: add signature when replying to email
I have a Gmail signature that says Best regards, because I don't want to keep typing it. But it doesn't show when replying to email, only when writing new ones. Can that be fixed?
And is it possible to add a full template, with a header too, that says Hi x for example? This is not that important, just asking.
AI: Your signature is definitely there in replies but it is at the bottom of complete email body. And the reason is you must have not the check the box below the signature which says: Insert this signature before quoted text in replies and remove the "--" line that precedes it.
Check this box (as shown in below screenshot), it will solve your problem:
And yes, it's possible to add full template, you can format your message by adding an image or changing the text style.
For more details see the Gmail Help page for Create a Gmail signature. |
H: Adding a description to GitHub repo
My boss set up a repo in our shared GitHub and I want to add a description, but there is no edit button to do so:
I am the only contributor so I want to add one to make it easier to find. How can I do this?
AI: Since there is no "Edit" button or "Settings" tab visible in the screenshot, it means you're not an administrator of the repository.
You'll have to ask your boss to promote you to Admin status on the repository, or ask them to set these up for you. |
H: Blog post updating question
I am doing my web dev course at the moment.
I just finished the HTML training and in the middle of CSS training.
I have a question regarding making a blog web for myself.
If I am choosing making a web from zero. I will keep updating the content, Do I have to generate a bright new html file and a CSS file, then link them to my index.html.
Is there an approach that I just focus on the content, such as I just write the markdown file and upload them? I know, there are some blog host solution, but I prefer doing it myself from zero, just like a learning curve.
AI: You don't need to write a new CSS file for every new HTML file, you can use 1 CSS file in all of your HTML files.
You do need to write a new HTML file for every new page you want to have on your website, if you don't want to create new pages dynamically (with NodeJS, PHP etc). |
H: Twitter file size limit for audio & video
We can upload audio & video directly to Twitter.
Can someone help me know what the file size limitation is for each?
AI: File size must not exceed 512 mb.
From the Twitter Developer Page:
Video specifications and recommendations
Recommended:
Recommended Video Codec: H264 High Profile
Recommended Frame Rates: 30 FPS, 60 FPS
Recommended Video Resolution: 1280x720 (landscape), 720x1280 (portrait), 720x720 (square)
Recommended Minimum Video Bitrate: 5,000 kbps
Recommended Minimum Audio Bitrate: 128 kbps
Recommended Audio Codec: AAC LC
Recommended Aspect Ratio: 16:9 (landscape or portrait), 1:1 (square)
Advanced:
Frame rate must be 60 FPS or less
Dimensions must be between 32x32 and 1280x1024
File size must not exceed 512 mb
Duration must be between 0.5 seconds and 140 seconds
Aspect ratio must be between 1:3 and 3:1
Must have 1:1 pixel aspect ratio
Only YUV 4:2:0 pixel format is supported
Audio must be AAC with Low Complexity profile. High-Efficiency AAC is not supported
Audio must be mono or stereo, not 5.1 or greater
Must not have open GOP
Must use progressive scan |
H: Facebook Information
A new feature that permits downloading our Facebook information seems to be a very interesting feature, but I have a question:
If we download our information, and after that my Facebook account was hacked and stolen, can I make a new account and enter the information I have downloaded before so I can retrieve a same account as the old one. Because having a lot friends and then losing the account will make it difficult to remember all the friends and pages when we open a new one.
AI: If you believe your account is hacked, check the Hacked Accounts section of the Facebook Help Center to get immediate help.
If you are creating a new account, you can fill up the same information as your previous account but you have to fill all the section manually. And you need to send a new friend request to all your friends one by one. There is no automated way to replicate similar account using Facebook data from other account. |
H: Enormous green disk
When I open a Google Docs document anonymously from my desktop computer (Windows 7 + Firefox esr 52), I always get this enormous green disk at the bottom right:
Clicking on it has no effect, except for the smaller white "Explore" button inside. Clicking on that white "Explorer" button opens the pivot table tool.
How can I get rid of that disk so that it won't reappear in the future when I browse Google Docs anonymously?
I guess it has something to do with the "Explorer" feature, but whoever thought it would be a good idea to make it take a sixth of my total screen space must have been high at the time.
[Edits]:
By "anonymously", I mean "not logged into my Google account", not "using the Private Browsing feature of Firefox".
Rubén's answer implies that it could be done by upgrading Firefox. So I should add that I don't want to upgrade Firefox. Maybe something about cookies keeping my preferences while browsing Google Docs without being logged in Google?
AI: It's very likely that the problem occurs due to a missing feature/incompatibility of Firefox esr 52.
From System requirements and browsers (emphasis mine)
Google Drive, Docs, Sheets, Slides, and Forms work with the 2 most recent versions of the following browsers (unless specified otherwise). |
H: How to Fix Error in Multiple Importrange
I am creating a table to display data from a combination of several Spreadsheet files by using Multiple Importrange.
= QUERY ({Importrange (G3, "Sheet1! A2: D"); Importrange (G4, "Sheet1! A2: D"); Importrange (G5, "Sheet1! A2: D")}, "Select Col1, Col2, Col3, Col4 Where Col3 Is Not Null And Col4 Is Not Null ")
The formula above has gone well.
My file:
https://docs.google.com/spreadsheets/d/1eL06DChMSkLuOOj9YNK6KUsVUIqbjcYlKS8pZHLmt_0/edit#gid=0
I insert some Spreadsheet files into the "List Link" table.
The link in the table has 3 links.
What I want to ask is how do I overcome the multiple importrange error when the link in the table does not yet exist?
The formula that I have changed is like this:
= IFERROR (QUERY ({Importrange (G3, "Sheet1! A2: D"); Importrange (G4, "Sheet1! A2: D"); Importrange (G5, "Sheet1! A2: D"); Importrange (G6, " Sheet1! A2: D "); Importrange (G7," Sheet1! A2: D ")}," Select Col1, Col2, Col3, Col4 Where Col3 Is Not Null And Col4 Is Not Null "))
The result is empty.
AI: Wrap each individual IMPORTRANGE call in IFERROR with a null array as the default length of a filled row if there is an error, like this:
=QUERY({
IFERROR(Importrange(G3,"Sheet1!A2:D"),{"","","",""});
IFERROR(Importrange(G4,"Sheet1!A2:D"),{"","","",""});
IFERROR(Importrange(G5,"Sheet1!A2:D"),{"","","",""});
IFERROR(Importrange(G6,"Sheet1!A2:D"),{"","","",""});
IFERROR(Importrange(G7,"Sheet1!A2:D"),{"","","",""})
},"Select Col1, Col2, Col3, Col4 Where Col3 Is Not Null And Col4 Is Not Null") |
H: Spotify Web player - previous and next shortcuts
I use keyboard shortcuts for all of my media players, but Spotify's web player (open.spotify.com) seems to be pretty limited in the keyboard shortcuts it provides.
I know that Ctrl + left/right arrow works in Spotify's app to skip to the next or previous track, but is there an equivalent for their web player?
AI: I don't know of a way to do this natively on Spotify's web player, but I created a userscript to allow the left and right keys go to the previous and next tracks, respectively (no Ctrl or anything needed).
You can install it through GreasyFork or copy-paste it below:
// ==UserScript==
// @name Next and Previous key shortcuts for Spotify
// @description Allows the left and right keyboard arrows to be used to go to the previous and next songs on Spotify.
// @author Zach Saucier
// @namespace https://zachsaucier.com/
// @version 1.1
// @match https://open.spotify.com/*
// ==/UserScript==
(function() {
'use strict';
window.addEventListener('keydown', (event) => {
switch(event.code) {
case 'ArrowLeft':
document.querySelector('.spoticon-skip-back-16').click();
break;
case 'ArrowRight':
document.querySelector('.spoticon-skip-forward-16').click();
break;
}
}, false);
})(); |
H: How to reference a Google Sheet by filename?
How to reference a Google Sheet by filename?
I would like to use IMPORTRANGE function, but it can only reference a file by URL not by filename.
Example filename:
2018-11.xlsx
2018-12.xlsx
AI: Google Sheets hasn't a built-in function to make reference a Google Sheet by filename and a custom function can't be used because they ran anonymously and the Google Apps Script Google Drive and Google Drive Advanced services require authorization to use them.
The only way is by using scripts triggered by other means like a macro, a custom menu, dialog or installable triggers or script editor.
You could DriveApp.searchFiles(params) to get a collection of files with the specified name, then use file iterator to loop through that collection.
Example from the above link
// Log the name of every file in the user's Drive that modified after February 28,
// 2013 whose name contains "untitled".
var files = DriveApp.searchFiles(
'modifiedDate > "2013-02-28" and title contains "untitled"');
while (files.hasNext()) {
var file = files.next();
Logger.log(file.getName());
} |
H: How do I reference a string from a cell in a Google Spreadsheet formula?
I have a spreadsheet that I use to track progress completion based on the percentage of checkboxes that are TRUE (checked).
The formula I use for this has 3 separate references to another sheet. I do this for every project and I am looking into reducing the amount of copy and pasting I am doing when adding a new tracker. Currently I am using the below formula:
=COUNTIF('Automation: PHP Reference Parser'!A:A,TRUE)/(COUNTIF('Automation:
PHP Reference Parser'!A:A, FALSE)+COUNTIF('Automation: PHP Reference
Parser'!A:A, TRUE))
I am trying to replace the three instances of 'Automation: PHP Reference Parser' with a reference to a cell that already contains this string as the project name. I have attempted to do this with INDIRECT but I get a parse error in the following attempt:
=COUNTIF(INDIRECT(A2)!A:A,TRUE)/(COUNTIF(INDIRECT(A2)!A:A, FALSE)+COUNTIF(INDIRECT(A2)!A:A, TRUE))
AI: Change your
INDIRECT(A2)!A:A
to the following format.
INDIRECT(A2&"!A:A") |
H: Indexing in Google Sheets
I wanted to find a way to add a string into the middle of emails in Google sheets. For example:
We have 5 rows:
bus@email.com
car@email.com
truck@email.com
train@email.com
plane@email.com
I want to change these emails to this form:
bus+test@email.com
car+test@email.com
truck+test@email.com
train+test@email.com
plane+test@email.com
AI: If your list of e-mails is on column A, use the following formula to achieve the desires result:
=substitute(A1,"@","+test@")
You might want to copy & paste as text depending on how you will use the e-mails. |
H: Remove a content from the yimg
My CV is uploaded on a website called Yimg without prior permission and I have no idea how this happened. The URL is like this:
https://xa.yimg.com/kq/groups/3434348397/1898894793/name/fileName.pdf
It seems the Yahoo owns this domain and further proof that Yahoo owns this domain by the website’s favicon. It’s Yahoo’s logo. When I was researching about this website, several users on forums say that Yimg is a Yahoo tracking “thingy”.
Understandably, the Google can't remove the content till the website owner has removed it. How do I contact the site owner and request a removal?
AI: yimg.com is Yahoo's CDN service – it hosts any kind of static files that are part of their website, such as images, stylesheets, webfonts, or user uploads. Different subdomains have different purposes, but in general it's used for data storage.
In this case, https://xa.yimg.com/kq/groups/ hosts files uploaded by Yahoo Groups users. (These used to act as mailing lists, and now work similar to Facebook groups – each group's members can post messages, upload photos and files.)
In short, it's user-contributed content. If you want Yahoo to remove it, you'll probably need to send a copyright infringement report to their owners (Oath Inc.). |
H: How to get rid of the one-click attachments in the email list?
The new Gmail design includes one-click access to attachments in the messages list. I find it bulks up the message list and I don't use it often. Is there a way to turn this off?
AI: Gmail has a number of different views - by default the attachment icon is displayed but in the other two they are hidden.
To change, click on the cog in the top right, then select "Display Density".
Both "Comfortable" and "Compact" will hide the attachment icons |
H: How are people finding my low-view YouTube videos?
Please note: this is not a question about "how can I get more views on YouTube" or anything of the sort. This is actually just for my own curiosity.
I have a YouTube channel that contains videos I made for a class that I'm involved in teaching. The videos are public on YouTube. They cover topics that many, many others have already covered, so I really only expected people with the direct link to be able to find them.
For the most part this is true - most videos have very few views (under 100) and most views were recorded during the time the class was running. What I'm confused about is how a few of my videos keep getting views even though the class has long since ended. This is typically about 2 per week, which isn't anything to write home about for sure. I should mention that the geography report puts these views well outside of my home country, so unless viewers are using proxies I'm sure that they are not my students. I'm happy that people are using the videos, but:
The videos are on such common topics that a cursory YouTube search reveals hundreds of videos, many with thousands of views
When I search for the exact video title I can't find them.
So I'm just curious as to how I'm showing up on a few people's search results every week. It's a bit of fun to keep seeing the views.
AI: I will preface this with: Only YouTube knows the algorithms.
I create training videos for my company and post them to YouTube and have noticed the same thing you have, a spike when released and then a slow trickle. Curious I investigated to find out that a group of employees forget the material and re-watch them rather regularly.
I have no idea if this is what is happening with you but I thought I would share. |
H: Login only to YouTube and not Gmail using same account
I want to leave my media PC without a password, for anyone in my house to use, which means I want to log into my YouTube account and leave my session open but I also don't want just anyone to be able to open my email account from this open session. How to do that?
AI: I'm afraid not. Logging in to your Google Account gives access to all of the services you use there.
None of the alternatives are very convenient.
Create a separate account purely for YouTube
Set up some sort of kiosk mode that keeps the browser from going to a different site
Use something like OpenDNS to keep from anyone from going to a different site, but you'll need to change it back to use it normally |
H: How can I get GitHub's files with a specific extension?
I am working on a project about R's language syntax and I want to retrieve as many as possible *.R extension files from GitHub. I couldn't figure it out myself at the GitHub's API tool nor with custom search engines such as Google's and Bing's. Any input would be vastly appreciated.
AI: Have you tried using this keyword in Google custom search engine:
site:github.com filetype:r
For example you want to search any r file related to Anova in github.com. So open google.com and type this keyword:
anova site:github.com filetype:r |
H: Replacing Query output string when the count is less than 3
Given the reference table below:
Date Location
11/29/2018 Office A
11/29/2018 Office B
11/27/2018 Office C
11/27/2018 Office A
11/27/2018 Office A
11/24/2018 Office C
11/24/2018 Office C
11/11/2018 Office C
11/11/2018 Office B
11/2/2018 Office C
Is it possible to change the output of the query based on its sum of the count of the location column?
The expected output is the following:
Date Location Count
11/29/2018 Office A 1
11/29/2018 - 1
11/27/2018 Office C 1
11/27/2018 Office A 2
11/24/2018 Office C 2
11/11/2018 Office C 1
11/11/2018 - 1
11/2/2018 Office C 1
The expected output converts "Office B" Location into an empty string because the sum of the count is less than 3.
AI: Assuming your raw data were in A1:B, this QUERY should produce what you want:
=ArrayFormula(QUERY({A2:A,IF(COUNTIF(B2:B,B2:B)<3,"-",B2:B)},"Select Col1, Col2, COUNT(Col2) Where Col1 Is Not Null Group By Col1, Col2 Order By Col1 Desc Label Col1 'Date', Col2 'Location'")) |
H: How to use 3 separate sheet specific onEdit formulas?
So I have 3 separate sheets in on Google Sheet Doc, I have a script running on the first sheet that hides a row when a drop down is ammended:
var SHEET = "Tweaks Needed";
var VALUE = "All Tweaks Made";
var COLUMN_NUMBER = 7
function onEdit(e) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var activeSheet = ss.getActiveSheet();
if(SHEET == activeSheet.getName()){
var cell = ss.getActiveCell()
var cellValue = cell.getValue();
if(cell.getColumn() == COLUMN_NUMBER){
if(cellValue == VALUE){
activeSheet.hideRow(cell);
};
};
};
}
I have then generated a second script as follows:
var SHEET = "Standalone";
var VALUE = "Correct";
var COLUMN_NUMBER = 5
function onEdit(e) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var activeSheet = ss.getActiveSheet();
if(SHEET == activeSheet.getName()){
var cell = ss.getActiveCell()
var cellValue = cell.getValue();
if(cell.getColumn() == COLUMN_NUMBER){
if(cellValue == VALUE){
activeSheet.hideRow(cell);
};
};
};
}
When I add this second script, it completely overrides the first one, causing it to not function. I do have a third script however this is the same concept.
Is there a way to combine these two scripts so that both work accordingly?
AI: onEdit scripts are per google sheet documents, not per individual tab/spreadsheet. You should change your flow so that it follows something like this:
function onEdit(e) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var activeSheet = ss.getActiveSheet();
if("Standalone" == activeSheet.getName()){
// logic for sheet Standalone
} else if ("Tweaks Needed" == activeSheet.getName()) {
// logic for sheet Teaks Needed
}
}; |
H: Sync Chrome with personal G Suite account
I changed my gmail to a personal G Suite account. I'm the only user and the main reason was to have my personal domain with the G Suite (+ some of the benefits with storage).
However I'm struggling with an issue regarding syncing between my work laptop and home laptop. Both running Chrome. Both has been logged into same account (the G suite account) but I keep getting some message saying that my account is managed by my G Suite (personal-domain.com) and I can link data but not syncing (or something to that effect) so even though it is the same profile, same profile image and name, it does not sync tabs, extensions, bookmarks, etc. as it would do with a "normal" Google account.
I've checked the Chrome Service Settings at admin.google.com and it is marked as "ON for everyone" and as far as I can tell the settings within /admin/Device Management/Chrome/User Settings isn't disallowing any syncing of data.
Guess what I really need is to just let the chrome settings act as a regular Google/Gmail account and sync everything between my two laptops (and Android but that seems to work, at least with the bookmarks and Open Tabs).
Can anyone help me? Perhaps I'm missing something in G Suite admin area?
AI: The recommended way to manage multiple Google profiles is by adding People to Chrome so that you can keep each profile separate and essentially avoid the challenge you're facing now.
Chrome allows you to sync data to a single Google account. When you signed into Chrome you synced with your gamil account. You now seem to have logged into another device first with your G Suite account and used that as the synced account.
You now have a few options.
On the device with Chrome synced with Gmail you can either sign out of your Gmail account for sync, then sign back in with your G Suite and decide to link the content that is stored in your Gmail account. Doing so will mean that both devices now sync to the G Suite account and data in your Gmail account no longer is updated.
Or you can create a new Person on that device with the Gmail Chrome profile and sign in with your G Suite account. This keeps your G Suite and Gmail profiles separate and only data that you have from the other device with the G Suite account will move to this device. You can equally make a Gmail profile on that work device. |
H: How to transfer photos from Google Drive to Google Photos
Is there a way to transfer some photos/videos from Google Drive to Google Photos (same account) without the need to download all the files and then uploading them again?
AI: You can try enabling in Drive settings - "Automatically put you Google Photos into a folder in My Drive". This will show Google Photos folder. Try copying there some photos and check a bit later if they will be shown in Google Photos. Can't promise though :) |
H: How to use nth-type on post blogspot
I want to add different colors to one post title that I just published on blogspot / Blogger, I have tried using nth-type etc., but it doesn't work properly. Please help me on this.
I have made a picture, more or less like this:
AI: You can use pseudo class :first-child to select first post title as the following
.post:first-child .post-title a { color: red }
Update:
If elements are not in the same container you can use javaScript selector
Add this before </body> tag to select the first .post-title
<script>
document.querySelector('.post-title a').style.color = 'red';
</script> |
H: How to create a Trello card from Slack with a custom command?
We are using Trello as our bug tracker at my workplace. I want it to be easy to add new issues from Slack.
The ideal: User types in Slack: /bug [bug title] or /trello bug [bug title] and a new card is created at the end of list "Bugs" on our product board.
The Trello App for Slack does not appear to be able to do this.
2 Problems:
Our list "Bugs" is NOT the first list on the board. By default, the app's "create new card" command adds cards to the first list on a board. I don't believe this is configurable?
The default Slack command to create a new card is /trello add [card name]. This is a bit generic. I'd hope to create a distinct command for only the bug workflow.
Is my ideal doable with the default Slack & Trello integration? Do I need to use a third party service?
AI: I accomplished this with the third party service Zapier. Zapier lets you build a 'Zap' which is a series of actions between your connected accounts. I named mine TrelloBugBot:
The steps:
Slack: Trigger - New Mention. Listen for mentions of the string trellobug.
Trello: Search - Find Member. Tries to match the Slack user to an existing Trello user
Formatter by Zapier: Action - Transform to Lowercase. Grabs the full Slack message that contains trellobug and turns it into lowercase.
Formatter by Zapier: Action - Split text. Grabs the full Slack message that contains trellobug and parses out the title of the bug.
Trello: Action - Create Card. Makes a new card in a specified Board/List. The card is named with the parsed Slack message, the message thread is linked, and the matched user is added to the card.
Zapier is free for 2 step Zaps. To set up this Zap you'll have to pay. |
H: How can the end-user switch between recorded cameras in a YouTube's live multi-camera stream?
First of all, I would like to clarify that I'm asking at webapps.stackexchange.com community as suggested in this answer.
Well. This is a YouTube's live stream which was published by a content creator who recorded a multi-camera stream. So, if I'm not wrong, in theory we could switch to other people's webcam streams that were recorded too in that multi-camera stream.
I would like to know how can I see the other people's cameras/streams. Maybe can I add a parameter to the query of the YouTube video url?. If not, the how can I do it?. I don't see anything in the YouTube's user-interface to switch between recorded cameras during that live stream.
By the way, that is a "big" Spanish youtuber and in the comments section of that video there are thousands and thousands of people that are still writing comments (even right now, after the stream was finished many hours ago) with something that seems commands, like: "/cam2" - as a single, full commentary (and obviously those commands will not have any effect because they are literally publishing comments with that). And the same happened during the live chat in the live stream, thousand of people writing things like "/cam5" in the chat box, but when I wrote the command "/cam2" nothing happened. I don't understand if those users were just trolls, or they were trying random things to discover how to switch between cameras... asking himself the same question as I'm asking here in StackExchange.
AI: The stream you linked doesn't appear to be a proper "multi-camera"* stream. For a proper multi camera stream, eg the SpaceX launches, there is a switch camera icon to the right of the quality gear.
Clicking the icon lets you choose freely between camera angles without affecting anyone else.
That creator you linked may have a chat bot listening that's executing commands on his streaming software to effectively provide multiple camera angles, but that's not the YouTube feature, that's something else. If it didn't do anything for you, chances are that it was just a "Monkey see, monkey do" situation that you can find in chats somewhat frequently (for example, typing !drop to get in-game stuff is quite common on the Faceit streams, too, despite YouTube having implemented an actual button you can just click on).
* Technically, multicam streams are completely different streams that happen to be available on the same URL. There's nothing stopping you from streaming a live feed from the arctic night together in a multicam stream together with some lions in africa and a live performance of Battleship Potemkin. The stream you were watching meanwhile is just a single stream that choses to broadcast certain images based on viewer input. |
H: How to find out the total number, based on particular conditions
Let's say, I have a sheet with these 2 columns, where column A is for 'Remarks' and B is for 'Date'. 2nd and 4th rows are intentionally left blank to simulate that no Remarks and Date are provided.
A B
-------- -----------
Auto Closed 11/25/2018
DEC-2018 12/3/2018
Auto Closed 12/5/2018
Auto Closed 12/12/2018
Now, I need to find out the number of records that are "Auto Closed" in December (12).
AI: take:=COUNTIFS(A2:A; "Auto Closed";
B2:B; ">"&DATE(2018; 11; 30);
B2:B; "<"&DATE(2019; 1; 1))
or:=COUNTIFS(A2:A; "Auto Closed";
B2:B; ">"&43434;
B2:B; "<"&43466) |
H: How to perform certain calculations in Google Sheets?
Just trying to create a simple sheet to track my weight loss. Here is a link to my sheet so far so you can see what I'm talking about. Weight Loss Sheet
So far I have gotten the C column working properly. Now I just need help with D and E.
1: In D (I have added examples) I would like it to calculate the difference between the current and previous weight entry with a formula that can auto-fill (keeping in mind that entries are often separated by sporadic empty cells). So each number in C minus the entry above it.
2: Next in E would like it to show the average every 7 days that will change depending on my rate of loss from D. Added a few manually calculated numbers as an example. Pretty sure I have calculated it wrong though. Arg! Should have stayed in school :)
This is my very first time using sheets so I am an absolute beginner. Never even used Excel. I have tried googling for a solution but I couldn't find anything. I think the problem is I don't know exactly what to search for.
Let me know if you need more info.
AI: Google Groups helped me more than I could have asked for. Here is what they gave me!
https://docs.google.com/spreadsheets/d/1zldtFy1x3uuvg6n-Ce-cCQN0BQEbSK6zwDFYgsnzCBc/edit?usp=sharing |
H: What is the difference between Google Apps Script add-on and web app?
The issue is mainly that I don't understand what is meant by the web app. I understood that it must support HTTP requests, but otherwise is it the same? Or is the difference in publishing?
I looked on documentation:
https://developers.google.com/apps-script/guides/web. But I still do not understand the difference.
First, I thought that web app has its own UI and it mustn't be connected with the G Suite environment, but the documentation says:
Both standalone scripts and scripts bound to G Suite applications can
be turned into web apps…
My thought wouldn't make sense for a bound script. Or would it?
What is the difference?
AI: A Google Apps Script web app will have it's own URL to be used to make HTTP GET/POST requests.
A G Suite Add-on adds a menu to a G Suite app (Google Docs, Google Forms, Google Sheets, Google Slides)
A Google Apps Script project could be bounded or standalone and could be used to post a G Suite add-on, a web app or both. |
H: Compare multiple cells for minimum value with criteria
I have a Google Spreadsheet for which I need to solve the following (I have tried using the MINIFS function, but it did not end well):
A1: "0"
B1: "100"
C1: "1"
D1: "150"
E1: "1"
F1: "101"
A1, C1 and E1 represent stock, B1, D1 and F1 product ID.
In G1: cell I need to compare B1:D1:F1 and list the minimum, only if A1:C1:E1 value is not ==0
The correct content in this case would be G1:"101".
Could you help out?
AI: take:
=IF(AND(A2>0;
C2>0;
E2>0); MIN({B2; D2; F2}); "out")
fix for blank row:
=IF(({A5; B5; C5; D5; E5; F5}<>""); IF(AND(A5>0;
C5>0;
E5>0); MIN({B5; D5; F5}); "out"); ) |
H: How to define the cell to use with a math formula, as a function of current cell?
I want to create a formula which, once copied to the cell bellow, references three other cells from a column. So, for instance, look at this image:
You can see that what I need is to define a dynamic formula, which I can copy to the other cells, that yields this result:
cell S3: =AVG(G3:G5)
cell S4: =AVG(G6:G8)
cell S5: =AVG(G9:G11)
cell SN: =AVG(GN1:GN2)
where
N1 = (N-2)*3
N2 = (N-2)*3+2
Is there a way to achieve this, or reference columns like this some way?
AI: If i got it right, you may try using the following formula on 'S3':
=ROUND(AVERAGE(OFFSET(G$3;3*(R3-2);0;3)))
For the cells bellow it, just copy it.
Note that I'm using the level collumn (R) as a helper one. If you do not to use it, you can try rebuild the formula with an ROW(*CurrentCell*), adapting it.
Hope it helps. |
H: How do I create a "copy only" link in Google Sheets or Docs?
Oftentimes people will create templates in Google Sheets or Google Docs and have the first part of the document say something like this:
BEFORE YOU MAKE ANY CHANGES, go to File > Make a copy...
This is less than ideal. Is there a better way to make it obvious that a doc needs to be copied without having to write this text?
AI: TL;DR
Replace /edit in the url with /copy
If you follow the tutorial Quickstart: Managing Responses for Google Forms, you'll see that the first step is:
Make a copy of the sample spreadsheet Apps Script Quickstart: Managing responses for Google Forms.
Clicking on the link takes you to a page such as:
If you look at the URL they use you'll see that it's:
https://docs.google.com/spreadsheet/ccc?key=1HgtMSoatp1M6pQwwwQqHgZX7jZRldDbSX8VIJ468d4c&newcopy=true
The key is just your document's ID that you can find in the URL.
Formatting it that way is cumbersome. Fortunately, if you follow the URL it'll redirect you to another url, and you'll notice there is an easier way. Just take your existing docs url:
https://docs.google.com/spreadsheets/d/1HgtMSoatp1M6pQwwwQqHgZX7jZRldDbSX8VIJ468d4c/edit
and replace edit with copy:
https://docs.google.com/spreadsheets/d/1HgtMSoatp1M6pQwwwQqHgZX7jZRldDbSX8VIJ468d4c/copy
Careful not to forget the /d/. |
H: Google Sheets - How to extract words from a cell using regexextract
I have a spreadsheet with many rows like this:
Arkonor 16m³Crimson +5%Prime +10%Flawless +15%
Bistot 16m³Triclinic +5%Monoclinic +10%Cubic +15%
Crokite 16m³Sharp +5%Crystalline +10%Pellucid +15%
How do I extract words from these cells? Example, in the first row, I would like to extract words Arkonor, Crimson, Prime and Flawless, one in each cell if possible.
AI: =TRANSPOSE(SPLIT(TRIM(SUBSTITUTE(REGEXREPLACE(REGEXREPLACE(REGEXREPLACE(
D1,"\b\w[^A-z]*\b"," "),"\W+"," "),"[0-9]+","")," m "," "))," ")) |
H: Is it possible to filter mail sent to any of my plus-addresses in Gmail?
I use plus-addresses for either testing, or spam. To the point where now I would like to auto-archive all mail sent to a plus address.
I've tried searching with:
to:(firstname.lastname+*@gmail.com) // this doesn't find anything
and
to:(firstname.lastname\+*@gmail.com) // this includes emails
sent to "firstname.lastname@gmail.com"
Is it possible to capture just plus addressed emails?
AI: if you use +test like: myname+test@gmail.com
then you can use:
to:(+test)
otherwise, you can't list all +masks at once |
H: Google Scripts (IF Statement + Vlookup Syntax Translation?)
Not sure if this is the right place to ask (I've been trolling around the web looking for the right place and after a few months decided to just throw my question out there), but here goes:
I've been working with Nested IF Statements and Vlookup in Google Sheets, and I'm looking to do similar things using Google Scripts.
1) There are quite a few, but for the purpose of the question I'm just going to isolate it to one. I have a region of cells, Name (B2), Source (B3), Duration (C1:C2 (Merged Cell)). What I want is an IF statement in Google Scripts that follows the logic of "If C2:C3 = or < 0, clear B2:C3, if not reduce C2:C3 by 1." If there is syntax for the IF statement that allows me to add multiple actions if my conditions are not met, that would also be extremely helpful.
2) Additionally, how can I do a Vlookup in response to a positive or negative response to the above IF statement? As an example, let's say that if C2:C3 > 0, I want some other cell, Resource (E2), to be reduced or increased by an amount— but to get that amount, it has to go to the cell called Source (B3) and Vlookup the Name (B2) on another sheet.
I've attached a link to a simplified and editable version sheet just in case a visual representation would help, but by no means feel obligated to modify it if you don't want to. I just want to know the syntax.
https://docs.google.com/spreadsheets/d/1TaMobaK3jHFNIiyYHi-wRRUzH0vSrdb2X04784gmbow/edit?usp=sharing
AI: feel free to edit green cells as you fit - everything should get re-calculated (for convenience calculation area is in one sheet ...of course it can be distributed in separate sheets)
demo spreadsheet: https://docs.google.com/spreadsheets/d/ |
H: Share Google Form's result publicly with a link
I would like that the user who completed the form can share the answers to his questions with a link, and anyone with that link can see the answers. Is it possible?
AI: This isn't a built-in feature of Google Forms. It's possible that there are Google Forms Add-ons that does this.
By using Google Apps Script we could get the edit response URL but there isn't a "view response URL".
One alternative is to copy the responses out of Google Forms, like using Google Documents, then sharing the corresponding document.
A hacky alternative is to add a required "edit authorization code" (secret code) question having an answer validation after that all responses were got. Then send the corresponding edit response URL to each respondent. In order to edit the responses they should know the "secret code"
NOTE: Google used to block forms having questions for passwords, so don't use Password instead of "secret code"
Related
How can I set a Google Forms survey to read-only?
Is there a way to generate edit response URL for Google Form? |
H: What spreadsheets import from my spreadsheet?
Is it possible to get a list of the spreadsheets that are importing data from my sheet?
I maintain a spreadsheet that has raw data, and many other spreadsheets use IMPORTRANGE to import that data.
I need to update the structure of the original sheet, and would like a list of all the spreadsheets that depend upon it. Is there a way to find this out?
AI: There is no built-in feature that list the spreadsheets that use IMPORTRANGE to import data from a specific spreadsheet.
Considering that IMPORTRANGE to your spreadsheet could be added to any spreadsheet that any editor, viewer and commenter of your spreadsheet have access even if you don't have access to them, I think that there is no way to have a complete list other than asking those users to give you that information even manually or by running a script. |
H: Remove duplicate recipients from email draft (in Gmail)
When copying & pasting email addresses into the recipients list in Gmail, how can I remove duplicate email addresses (if the copied list contains duplicates)?
AI: You can paste them first into a tool like this one or others. It's not entirely safe to put private info into online tools, but you can save such a webpage to disk and use the tool offline. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.