Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all 9620 articles
Browse latest View live

Avoid Duplicate Events in Auto Sync Google Sheets to Google Calendar

$
0
0

I wish to use this sync process but it will duplicate the events if I do any changes or editing. How should I do to avoid it?


function scheduleShifts() {
  /**
      Task 1) Open the Event Calendar.
  **/
  var spreadsheet = SpreadsheetApp.getActiveSheet();
  var calendarId = spreadsheet.getRange("C4").getValue();
  var eventCal = CalendarApp.getCalendarById(calendarId);

  /**
      Task 2) Pull each shift information into the code, in
      a form that the code can understand.
  **/
  var signups = spreadsheet.getRange("A8:C27").getValues();


  /**
      Task 3) Do the work!
  **/
  for (x=0; x<signups.length; x++) {

    var shift = signups[x];

    var startTime = shift[0];
    var endTime = shift[1];
    var volunteer = shift[2];

    eventCal.createEvent(volunteer, startTime, endTime);
  }
}

How can I search emails from a specific month in gmail

$
0
0

How can I search emails from a specific month in gmail.I use gmail in chrome or microsoft edge mostly on windows 10.

How to view public Instagram photos without signing in?

$
0
0

When you link to a public Instagram account, the site will allow you to view photos for a few seconds before obscuring the entire page, locking scroll and popping up a box asking you to sign in. I do not have or want to create an Instagram account but would like to be able to view the photos. What's a good back for this?

I know I can inspect element and delete it to clear the overlay but scroll will still be locked. Blocking JS with noscript also does not work as the photos don't show.

Someone claimed my facebook page

$
0
0

I have created a facebook page couple years ago, it was my personal page. But suddenly someone claimed my page and I couldn't assign people with their roles. Apparently, this guy has been claiming pages as his own. How can I reclaim my page as a page owner?

This is the guy who has been claiming people's pages. You can see the amount of people who he has stolen from. https://www.facebook.com/pg/Select/reviews/?ref=page_internal

"Error Did not find value '____' in VLOOKUP evaluation."

$
0
0

Please see my public spreadsheet here:

https://docs.google.com/spreadsheets/d/11RMN7uN_woEQVzlDEkX6vSARTCGYYBjWs11ZDU-6Shc/edit#gid=1276951687

My goal is to get the Location Code from tab 1 into tab 2 (tab 2 is a subset of specific zip codes and I need them with their matching Location Codes alongside them).

I was attempting to use a VLOOKUP to do it, but got this error:

Error: Did not find value '30096' in VLOOKUP evaluation.

In this case, I would expect to see the Location Code 79459 in this cell.

Guess I'm misunderstanding how VLOOKUP works and/or how to use it. I tried to follow the prompts.

If "text" then, how to put a conditional formula

$
0
0

There are three columns. A, B and results.
I need to make a formula that gives the following:

If the text in both columns A and B is WIN, then in the results we should see: Winner.
If the text in column A is WIN and in B is LOSE, then in results we should see: Try again
If the Text in both columns A and B is LOSE, then in results we should see: Loser.

Excel to Google Sheets Script

$
0
0

I am using a script below for excel to pull a certain row value from one sheet to another cell on a different sheet. I just want to know if this can be done with google sheets thru script and if it's possible, i will appreciate if you can walk me through the process. Here's the code I am using:

Sub reviewRow()

Application.ScreenUpdating = False

Dim i As Integer

results = MsgBox("Do you want to View selected row?", vbYesNo, "")

If results = vbYes And Range("H13") > 1 Then
    i = Range("H13")

Worksheets("Sheet2").Range("D9") = Worksheets("Sheet3").Range("B"& i)
Worksheets("Sheet2").Range("D11") = Worksheets("Sheet3").Range("D"& i)
Worksheets("Sheet2").Range("D12") = Worksheets("Sheet3").Range("A"& i)
Worksheets("Sheet2").Range("H9") = Worksheets("Sheet3").Range("F"& i)
Worksheets("Sheet2").Range("H10") = Worksheets("Sheet3").Range("G"& i)
Worksheets("Sheet2").Range("H11") = Worksheets("Sheet3").Range("H"& i)
Worksheets("Sheet2").Range("K19") = Worksheets("Sheet3").Range("K"& i)
Worksheets("Sheet2").Range("K25") = Worksheets("Sheet3").Range("L"& i)
Worksheets("Sheet2").Range("K32") = Worksheets("Sheet3").Range("M"& i)
Worksheets("Sheet2").Range("K38") = Worksheets("Sheet3").Range("N"& i)
Worksheets("Sheet2").Range("K44") = Worksheets("Sheet3").Range("O"& i)
Worksheets("Sheet2").Range("K51") = Worksheets("Sheet3").Range("P"& i)
Worksheets("Sheet2").Range("K58") = Worksheets("Sheet3").Range("Q"& i)
Worksheets("Sheet2").Range("K65") = Worksheets("Sheet3").Range("R"& i)
Worksheets("Sheet2").Range("K71") = Worksheets("Sheet3").Range("S"& i)
Worksheets("Sheet2").Range("K82") = Worksheets("Sheet3").Range("T"& i)
Worksheets("Sheet2").Range("K89") = Worksheets("Sheet3").Range("U"& i)
Worksheets("Sheet2").Range("K95") = Worksheets("Sheet3").Range("V"& i)
Worksheets("Sheet2").Range("K101") = Worksheets("Sheet3").Range("W"& i)
Worksheets("Sheet2").Range("K107") = Worksheets("Sheet3").Range("X"& i)
Worksheets("Sheet2").Range("G19") = Worksheets("Sheet3").Range("Y"& i)
Worksheets("Sheet2").Range("G25") = Worksheets("Sheet3").Range("Z"& i)
Worksheets("Sheet2").Range("G32") = Worksheets("Sheet3").Range("AA"& i)
Worksheets("Sheet2").Range("G38") = Worksheets("Sheet3").Range("AB"& i)
Worksheets("Sheet2").Range("G44") = Worksheets("Sheet3").Range("AC"& i)
Worksheets("Sheet2").Range("G51") = Worksheets("Sheet3").Range("AD"& i)
Worksheets("Sheet2").Range("G58") = Worksheets("Sheet3").Range("AE"& i)
Worksheets("Sheet2").Range("G65") = Worksheets("Sheet3").Range("AF"& i)
Worksheets("Sheet2").Range("G71") = Worksheets("Sheet3").Range("AG"& i)
Worksheets("Sheet2").Range("G82") = Worksheets("Sheet3").Range("AH"& i)
Worksheets("Sheet2").Range("G89") = Worksheets("Sheet3").Range("AI"& i)
Worksheets("Sheet2").Range("G95") = Worksheets("Sheet3").Range("AJ"& i)
Worksheets("Sheet2").Range("G101") = Worksheets("Sheet3").Range("AK"& i)
Worksheets("Sheet2").Range("G107") = Worksheets("Sheet3").Range("AL"& i)

Range("D9").Select

End If

Application.ScreenUpdating = True

End Sub

How to import Google Maps starred locations?

$
0
0

I have a G Suite Google Account and a regular one. Because I don't need the G Suite Account anymore, I want to quit it. However, I have more than thousand stars / starred locations in Google Maps, I need to keep.

How can I transfer them to another Google Account? I know how to export the stars (using Google Takeout), but I found no way to import in any format.

A solution where the locations are in a custom map in My Maps or as a Layer is not suitable.


What would one create to do what Google Apps Script does?

$
0
0

What is a homemade Google Apps Script alternative I can host? I don't know what this kind of app(?) is called.
Specifically, I use a Google Apps Script to receive webhooks from Quickbooks, immediately make the script do API requests to Quickbooks about the webhook event, then that data is parsed into JSON and sent to Facebook through their API.

I hope this question isn't too general. I know I need to write it in something like .NET, Java, NodeJS and host it somewhere. I know it will need an HTTPS address for the redirect URI. I don't know if it's possible or best practice or not to make that the webhook url too. I could host it on Heroku or Digital Ocean maybe? Is this called a RESTful API? A specific type of REST API or is that not what I need to build?

I want to use something else because Google Apps Script seems to only allow the receiving of 20 webhooks a day.

Can I send a Postcode to a Google "My Maps" in the URL

Post on Google using a Nick name

$
0
0

On the Google Play Store when you review a app right now it says posting publicly as my full name. Also on Google Maps when you review a place you been the same thing it says posting publicly as my full name. How do I change that to my Google Nick name or something different then my real name!

Limit number of rows

$
0
0

I have a Google Sheets document that keeps adding hundreds of rows and slowing down the project, and sometimes causing it to crash.

Is there a way to limit the number of rows to say 100. I do not want to remove all empty rows, because it is a log that constantly needs data added to so a new row is always needed. However, we only use around 100 rows for each document.

I am not sure if this is due to a script I have attached or if it is just part of google sheets.

   function setFormat() {

    var ss = SpreadsheetApp.getActiveSpreadsheet();
    var sheets = ss.getSheets();
for (var i in sheets) {
    var MaxRows = sheets[i].getMaxRows();
    var MaxColumns = sheets[i].getMaxColumns();

sheets[i].getRange(2, 1, MaxRows, MaxColumns)
.setFontFamily('Arial')
.setFontSize('9')
.setFontStyle('normal')
.setFontColor('black')
.setVerticalAlignment('center')
.setBorder(true, true, true, true, true, true, "black", SpreadsheetApp.BorderStyle.SOLID);

sheets[i].getRange(1, 1, 1, MaxColumns)
.setFontFamily('Comfortaa')
.setFontSize('9')
.setFontStyle('bold')
.setFontColor('black')
.setVerticalAlignment('center')
.setBorder(true, true, true, true, true, true, "black", SpreadsheetApp.BorderStyle.SOLID);

sheets[i].autoResizeColumns(1, 1);
sheets[i].setColumnWidths(2, 1, 80);
sheets[i].setColumnWidths(3, 1, 75);
sheets[i].setColumnWidths(4, 1, 90);
sheets[i].setColumnWidths(5, 4, 45);
sheets[i].setColumnWidths(9, 3, 75);
sheets[i].setColumnWidths(12, 2, 130);
sheets[i].setColumnWidths(14, 1, 95);
sheets[i].setColumnWidths(15, 1, 100);
sheets[i].setColumnWidths(16, 1, 95);
sheets[i].setRowHeights(2, MaxRows-1, 15);
sheets[i].setRowHeights(1, 1, 16);   }}

and

   function dataAlignment1() {

     var ss = SpreadsheetApp.getActiveSpreadsheet();
     var s = ss.getActiveSheet();
     var lr = s.getLastRow();
     var r = s.getRange(2, 1, lr, 2);
     var set = r.setHorizontalAlignment('left');
   }

   function dataAlignment2() {

     var ss = SpreadsheetApp.getActiveSpreadsheet();
     var s = ss.getActiveSheet();
     var lr = s.getLastRow();
     var r = s.getRange(2, 3, lr, 1);
     var set = r.setHorizontalAlignment('right');
   }

   function dataAlignment3() {

     var ss = SpreadsheetApp.getActiveSpreadsheet();
     var s = ss.getActiveSheet();
     var lr = s.getLastRow();
     var r = s.getRange(2, 4, lr, 1);
     var set = r.setHorizontalAlignment('left');
   }

   function dataAlignment4() {

     var ss = SpreadsheetApp.getActiveSpreadsheet();
     var s = ss.getActiveSheet();
     var lr = s.getLastRow();
     var r = s.getRange(2, 5, lr, 4);
     var set = r.setHorizontalAlignment('left');
   }

   function dataAlignment5() {

     var ss = SpreadsheetApp.getActiveSpreadsheet();
     var s = ss.getActiveSheet();
     var lr = s.getLastRow();
     var r = s.getRange(2, 9, lr, 2);
     var set = r.setHorizontalAlignment('right');
   }

   function dataAlignment6() {

     var ss = SpreadsheetApp.getActiveSpreadsheet();
     var s = ss.getActiveSheet();
     var lr = s.getLastRow();
     var r = s.getRange(2, 11, lr, 1);
    var set = r.setHorizontalAlignment('center');
   }

   function dataAlignment7() {

     var ss = SpreadsheetApp.getActiveSpreadsheet();
     var s = ss.getActiveSheet();
     var lr = s.getLastRow();
     var r = s.getRange(2, 12, lr, 4);
     var set = r.setHorizontalAlignment('left');
   }

   function dataAlignment8() {

     var ss = SpreadsheetApp.getActiveSpreadsheet();
     var s = ss.getActiveSheet();
     var lr = s.getLastRow();
     var r = s.getRange(2, 16, lr, 1);
     var set = r.setHorizontalAlignment('center');
   }

   function headerAlignment() {

     var ss = SpreadsheetApp.getActiveSpreadsheet();
    var s = ss.getActiveSheet();
     var lr = s.getLastRow();
     var lc = s.getLastColumn();
     var r = s.getRange(1, 1, 1, lc);
     var set = r.setHorizontalAlignment('center');
   }

Downloading Google activity history only downloads the last 8 days, how do I get more than that?

$
0
0

How can I get all of my activity history? The only way I can access it now is by scrolling down the my activity section. This is not ideal at all and as soon as I reach two/three months ago the browser page doesn't react anymore.

A JSON file, a PDF or basically anything will be cool.

I tried a few Chrome extensions which failed to do what I wanted probably because I deleted the cache, which is also the reason why I can't use the browser history in the browser but have to use the Google my activity section.

When I try to download the file from Google's new data downloading service, it only downloads the past 8 days, perhaps because I deleted the cache then?

Howto unlink my google accounts from someone else's computer

$
0
0

On SOMEONE ELSE'S computer:

I tried to log into an old youtube account, but didn't know the password. Clicked on "forgot password" and end up being able to link the youtube account to my gmail account. This is good, and now I could post a video to youtube.

I later noticed that my account was listed as one of many google accounts on his computer, but didn't think much of it. But just to put my mind at ease, I later changed the account's password, from MY computer.

Then I notice that he put two videos on my youtube account. Perhaps he posted them before I had changed the password? But then later, they were gone?! So he still has access to the account.

How can I keep him out of my account? Changing the password didn't stop his access. If he somehow linked my accounts to his, how do I find out, and how do I unlink them? I really don't trust him to stay out of my email.

How can I fix Gmail URL search queries being extremely slow compared to regular searches?

$
0
0

When I use Gmail search the regular way, by loading the main Gmail website and then typing a query into the search box at the top, the whole process takes at most a few seconds of loading, disregarding the time it takes to type in the query (e.g. if I copy-paste it into the search bar).

But when I open a Gmail URL which contains a search query in it, such as

https://mail.google.com/mail/u/0/#search/from%3A{sample.email%40gmail.com}+OR+to%3A{other.email%40gmail.com}+OR+"cookie+monster",

the email screen takes up to 15-40 seconds to load, and then displays a broken-looking loading frame near the top of the screen that never goes away. For example, if you click that link, it'll take an awfully long time to load compared to just opening gmail directly and pasting the search query into the top (from:{sample.email@gmail.com} OR to:{other.email@gmail.com} OR "cookie monster")

This appears to have been an occurence since July 2019, but with unfortunately few other people reporting it.

What are some potential ways to address this issue and continue to be able to open search query links?


Query/Filter function finding the closest date that is less than the order date for an array of dates using a given variable

$
0
0

Overview

I need to get the cost of something by comparing item dates against an order date for one or more of the same item with different item dates, and making sure to select the item date that is less than but closest to the order date.

Specifically, I need to get the Price value from the sheet Items by comparing the Dates in the Items sheet with the selected Order Date from the Orders sheet. Making sure to select the Price which is less than but closest to the Order Date in Labels for the given ID1.


Problem and Formula

I can get the price for the given ID1; however, if two or more ID1's share the same date than the following formula breaks.

IF($B$2:$B <> "",ARRAYFORMULA(VLOOKUP(MAX(FILTER(FILTER(Items!$C$2:$C,Items!$A$2:$A = B2),FILTER(Orders!$B$2:$B,Orders!$A$2:$A = A2) >= FILTER(Items!$C$2:$C,Items!$A$2:$A =B2))),{Items!$C$2:$C,Items!$B$2:$B},2,0)),"")

The formula here works for the first look up; however, if the same date is used for other items the formula breaks and returns the first one. It's due to how the VLOOKUP function is using the date to look up the entries; however, I don't know how to make it so it uses ID1 as a filter.


How I went about it

Step 1: Get Order Date from ID2

INDEX(Orders!$B$2:$B,MATCH(A2,Orders!$A$2:$A,0)) or FILTER(Orders!$B$2:$B,Orders!$A$2:$A = A2)

Step 2: Get Price from ID1

FILTER(Items!$C$2:$C,Items!$A$2:$A = B2)

Step 3: Compare the ItemDate to the Order Date and get the Date that is less than but closest to the Order Date

MAX(FILTER(FILTER(Items!$C$2:$C,Items!$A$2:$A = B2),FILTER(Orders!$B$2:$B,Orders!$A$2:$A = A2) >= FILTER(Items!$C$2:$C,Items!$A$2:$A =B2)))

I believe this is incorrect, but I'm not sure how to have it use ID1 as its filter, or get the closest value instead of returning all values before the order date.

Step 4: Get the selected Price.


Google-sheet links

Read Only | Writable


Thank you!

If I have not made the question clear enough, I'll try my best to explain it further.

Access G Suite Account in personal Gmail without enabling less secure apps

$
0
0

I have two accounts:

  1. Gmail (@gmail.com)
  2. Corp Account (@corpmail.com)

I'd like to setup my account such that I can view and respond to my emails @corpmail.com from logging into @gmail.com.

One way that works is IMAP/POP3. But requires enabling less-secure apps. The corpmail domain forbids it. Is there any way for me to accomplish this, without forwarding everything to @gmail.com? I'd really prefer to keep the work-life separation and not have another copy of all @corpmail.com in my personal account, while having the convenience of one account.

Gmail showing "Authorized App" in my recent activity list

$
0
0

I have a fairly complex password and I have 2 factor auth enabled but I'm seeing in my recent activity list:

Authorized Application (532713016892-ev29m8tv9gejefcvvv1o3coj5bhkc1ar.apps.googleusercontent.com) Hide details
OAuth Domain Name:
532713016892-ev29m8tv9gejefcvvv1o3coj5bhkc1ar.apps.googleusercontent.com

It's coming from the same IP as my "Mobile" and "Browser" activity logs. The only authorized Apps in my list are Chrome. Does anyone know what 532713016892-ev29m8tv9gejefcvvv1o3coj5bhkc1ar.apps.googleusercontent.com resolves to? Was thinking it might be the Gmail iPhone app but wouldn't that show up as "Mobile"?

Screenshot below:

enter image description here

Problem with COUNTIF in Google Sheets Data Validation Custom Formula

$
0
0

I am following some tutorials and discusion on forcing uniqueness in Google Sheet Comuln (I need it for ID indexing). I have been using Data Validation for some time, but i have a problem with custom formula and using some functions. I know that that i should use

=COUNTIF($A:$A,"="&A1)  < 2

or

=COUNTIF($A$1:G, INDIRECT(ADDRESS(ROW(),COLUMN(),)))=1

But if i enter it to custom formula input box i am pressing "save" button and nothing is happening. It seems like google is stopping me from entering this formula. For other formulas i can save the validation and it is working. Problem is that i dont get any feeback(error) from google, what is wrong in my formula.

Change a date reference as text to google sheets date format

$
0
0

Need to change "December 23, 2019 at 08:31PM" to a date google sheets recognize.

Thks very much for help

Viewing all 9620 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>