I have a row with multiple urls on it. I'd like to open each url in a separate browser tab without having to click on each link. Is this possible in Google Sheets or Google Apps Script?
How to open multiple urls in different new browser tabs from Google Sheets with a single click?
Can I pre-hash data uploaded to Facebook custom audiences?
If one wanted to upload their customer list into Facebook's Custom Audience tool, could one pre-hash the data before loading it into the browser upload tool?
I know that the data is hashed before being uploaded to Facebook. But what if one needed to give the list to an agency that would be uploading the list for them? In order to maintain security the controller of the data would want to hash the information before handing it over to an agency.
How exactly does Gmail counts locations and sessions?
For past few days I am being nagged by Gmail's warning system that my e-mail client is being used from another location (today: from two another locations) even thougs nothing change in my home / network / software stack.
I am (currently and for past many years) accessing my Gmail:
- from my home PC as a main access channel,
- from my mobile phone.
It may be important to underline that my phone sticks in my pocket for most of the time, it has screen turned off most of the time and I am using mobile version of Gmail about once per week.
Yet, this is what I captured just a moments ago:
What puzzles me is that:
- I've been using this stack (PC + mobile) for years, but I see warning only these few days,
- it claims about three locations, while there are two in fact (PC + mobile),
- it claims about three locations in main window and about one in details view,
- there is only one IP address listed everywhere, so how can we say about many locations?
Is there anything I should be worried about (some session's hijacking)? Or is this just a glitch in Gmail / Chrome?
Auto sign out of application using Google authentication
I have a web service that I use (viemo) where I signed in with a Google account.
Is there a way somewhere in Google security settings to set how long the login will last? Or some way to force the token to expire within a given time?
Filter function with multiple variables google sheets
I want to be able to use a filter function for people in NAME whose P DATE is within a specified range. However, if they have a Y under VALIDATED, I want the filter to also include names with the T DATE that meets the same specified range.
This is my ignorant attempt at trying to do this but it, of course, creates an Error.
=FILTER(A2:D6,C2:C6 <B10+D2:D6,"Y",B2:B6<B10)
Apologies if this is too easy to be asking; I've be reading for over 3 hours and haven't found how to do this or if this can be done.
Thank you
How to apply "sendAlertEmailWhenCellValueIsNotEmpty" script to multiple tabs in Google Sheets
I would like to apply this to let's say "Weekly" and "Monthly" tab. Here's my script:
function sendAlertEmailWhenCellValueIsNotEmpty(){
//send an email alert when cellToWatch is not empty
//set this function to run through a time driven trigger
//choose resource> Current project's triggers> Add a new trigger>Time-driven>Day Timer
//see https://productforums.google/d/topic/docs/39Ysmg7nAjk/discussion
//edit the following variable to fit your needs
var cellToWatch="DAILY!W12";
var mailAddress="someone@gmail.com";
var emailSubject="Spreadsheet alert:BECKMAN COULTER UNICEL DXI800 MISSING DAILY MAINTENANCE";
var emailBody="This is an email alert from your google spreadsheet:BECKMAN COULTER UNICEL DXI800 MISSING DAILY MAINTENANCE"
if(SpreadsheetApp.getActiveSpreadsheet().getRange(cellToWatch).getValue()!=""){
MailApp.sendEmail(emailAddress,emailSubject,emailBody);
}
}
Dynamic Query using TRUE or FALSE in Google Sheets
I have a checkbox in Column R. (values are TRUE OR FASLE).
I want a dynamic query. I will ask the user to select a value in B2 where "true" or "false" is selected.
The below query is working (no error) , but not fetching any records.
=query(Plan!C:AU,"select C,D,E,I, L,M,N,F,G where I>0 and G= '"& $A$2 & "' and R ='"& $B$2 & "' order by L label L 'QC Dt'",1)
The Query is working well for Column G from what is selected in A2. It is normal text value.
But, how to use it for a logical variable?
G Suite selective email migration from Gmail
I am interested in partially migrating emails from my personal google account to my new G Suite account. I want to migrate all emails containing a certain label and no others.
I know there is an option to exclude certain labels, but I couldn't find a way to exclude all but one. The labeled emails are also labeled with the "inbox" label.
Background:
Up until today our company used a server based mail client which I imported into my personal google client via POP3. I now want to migrate only these emails to our new G Suite account without all of my personal emails.
I have full super-admin access.
Updating slides from sheet
I am trying to update slides from sheet. As simple as that.
- I have a working script in sheet which updates the slide if I run it from the gscript editor
- I want this script to run
onEdit
of specific cell in spreadsheet So I add function
function onEdit(e) { if ([e.range is what I want]){ [update the slide using Slides.Presentations.batchUpdate] }
Upon changing the cell, I can see in my G Suite developer HUB an error message Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
I am very new in this environment and I only wanted to achieve something simple. What am I missing? Do I really need to register new OAuth2 client app in google cloud platform to connect one google product to another?
Search for missing data starting with certain text
Hello I need to compare two columns and output all missing data into a third column.
The problem is that I need to also filter the first column for only certain cells that start with two letters
This is what put together and was expecting to work but I am not sure whether I am using incorrect formulas or the identificator for the starting text is not working..
=ArrayFormula(FILTER(D3:D;ISERROR(MATCH(REGEXMATCH(D3:D;"MY.");A2:A;0))))
- Column "D" contains all data to be filtered
- it contains cells starting with "MY", "NY", and "FY"
- Column "A" contains all data to be compared to
- this one may be missing some cells "MY...." and that is what I need this formula for
COUNTIF/COUNTIFS
I am converting an excel sheet into google sheet but the formulas aren't translating as I'd hoped. Below is a formula I use which basically counts the people i have on shift per day.
=COUNTA(R7:R10)-SUM(COUNTIFS(R7:R10,{"*RB*","O","OUT","COMP","SICK",".O.","H","BH","PAT","LD","LL","BDAY","T","UL",".BH.","IND","VEG","SAUCE","FISH","HOTS","COLDS","*APP*","*CAN*","apsl","PASTRY","H&S","ECO","T/O","UNI"}))-$D12+R86
We use a free typed words so when we print the rota, people know what they're doing but we also can use formulas to count staff members not excluded in other activities etc.
So, R& - R10 in this example is one section, so it firstly counts how many cells are filled (people on that section), then it takes away those who will be excluded Offsite or rest day (O)/(OUT) sickness or on a different section. Then we have a number (D12) which is the amount of people we want on that section. R86 counts if there is anywhere else on the spreadsheet that has that section in their array. for example there is 1 only one person on the "cold" section, we will hae typed in a different section for a different person "cold" so we know that on that day who will be supporting.
Please could someone help with translating this formula? or helping me re-write. It works absolutely fine on excel.
Cannot assign view permission for GA360 to Google Groups
When assigning permission to Google Groups, an error "Failed to register users" shows up. Not sure what is wrong behind the scene.
As we do want to centralize our user management using solely Google Identity (https://groups.google.com/). Is there a way to do it?
Thank you,
Web App get url not working from IMPORTXML
My goal is to get data into my spreadsheet from my script that mimicks the way IMPORTXML
works. I want to return html from my script and consume it with IMPORTXML
.
It's disabled now, but at the time I had the issue, my web app get url was working fine:
(It's pretty slow), but it simply returned some simple html. The authorization on my web app was set to anyone, even anonymous
. Here's the browser output:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<body>
<div>boy</div>
<div>girl</div>
</body>
But, when I tried to use this from IMPORTXML
like this:
=IMPORTxml("https://script.googleusercontent.com/macros/echo?user_content_key=HUwieZWDG7ui3qnlqjAZFMl25Yceo2PRDcegGSWRL8ktB6i3-TC7zOtIe9Ca2RWMjw2MPJc0Cs0yidF6Cw36bqfYiUO057r4m5_BxDlH2jW0nuo2oDemN9CCS2h10ox_1xSncGQajx_ryfhECjZEnIItX_WLmfHeqBA_3nangFUYJYkb0VWmsEkuYz81bV5JublgpC3sl6h6fDA1oKmCRrxy_u9Yn2NR&lib=Mt5DyfMUMPjCE3tUjO0cOF-YWmZCruFAP","//*")
I got an error:
What do I need to change to get this working?
I got the same results no matter what IMPORT
spreadsheet function I try.
Here's my doGet
method:
function doGet(e) {
return ContentService
.createTextOutput("<body><div>boy</div><div>girl</div></body>")
.setMimeType(ContentService.MimeType.XML);
}
Note: I saw the word "girl" flash on my spreadsheet for a second one time, but not again and I don't know why it did. So I think this should be possible.
A Clue: I traced it in the browser, and when it works in the browser the server does a couple of redirects (302) first before giving a 200 and the data.
How to forward multiple emails at the same time in Gmail?
I looked at this thread and it does not look simple enough.
Define max and minimum series for Google Sheets
I have a line chart as the picture below. The max and min values in my data are 410 and 290 for the peakflow series (the chart's visible range is something like 0 and 500 which is a bit pointless as there is no data below 290 or above 410). There are no zero values but there are empty values in the peakflow data.
Is there a way to define the chart's max and min values for the peakflow (left) vertical series?
Auto sorting by multiple columns in Google Sheets
I have a data-set which I would like to have sorted with first column 6 and then column 7.
From this post: How can I make some data on a Google Sheets auto-sorting? I have gotten ideas about making a script.
I have made it so far it is sorting by column 6 but NOT column 7.
Any idea what I do wrong?
function myFunction() {
}
function onEdit(event){
var sheet = event.source.getActiveSheet();
var editedCell = sheet.getActiveCell();
var columnToSortBy = 6;
var tableRange = "A2:U";
if(editedCell.getColumn() == columnToSortBy){
var range = sheet.getRange(tableRange);
range.sort([{column: 6, ascending: true}, {column: 7, ascending: true}]);
}
}
Removing a large dataset of pictures from google drive
I accidentally extracted a zip of a pet dataset into my google drive directory. Now I have like 30,000 cat and dog images in my directory that I can't get rid of. Due to the number of images in my directory, I can no longer connect to google drive through colab. Anyone have an idea to remove these images... Removing them by hand isn't an option given the webpage crashes when so many images a selected.
COUNTIF with Multiplicities
I am currently creating a histogram on Google Sheets to count how many of x-product in our inventory we have priced at less than $10k, between $10k to $20k, $20k to $30k, etc.
The problem is that some our products have multiplicities greater than 1 —we have two of x-product priced at $50k for example.
Thus the normal COUNTIFS
function is not picking up these multiplicities and undercounting them. Here's the COUNTIF
function I'm using:
=COUNTIFS(J5:J50,">=10000", J5:J50,"<20000")
I've come across the SUMPRODUCT
function, and have read it can work with other functions, so I think a solution may lie here. I'm using:
=SUMPRODUCT(COUNTIFS(J5:J50,">=10000", J5:J50,"<20000"),F5:F50)
However, I'm gettin #VALUE
returned with the following message:
Anybody who can provide clarity on what I'm doing wrong or direct me to another function that can solve the problem, it would be greatly, greatly appreciated.
Add on to give Google Sheets features similar to Excel Tables and Structured References?
This article: https://support.office.com/en-us/article/Using-structured-references-with-Excel-tables-F5ED2452-2337-4F71-BED3-C8AE6D2B276E describes the use of structured references. I hadn't heard about this, although it's been in Excel for some time.
I'm not wedded to their syntax, but I like the concept. It looks like it would be clearer and more robust for VLookup, Index/Match, and query.
Reading Facebook messages from email
How to read a Facebook message without the Messenger in my Gmail? It only show that I have received a message but does not show the details. I want to read and reply Facebook messages from Gmail, but how?