Linking Up Google Sheets and Google Calendar - google-sheets

I am trying to figure out how to get work shifts that are created in a Google Sheet to be automatically entered into each individual employees Google Calendar.
Here is a link to a test Google Sheet (accessible by anyone with the link): https://docs.google.com/spreadsheets/d/1lJKwZmHaVesBA6xRxKwWEuiZVtfGfAKdK9sI39on95g/edit?usp=sharing
I assume I can enter some code into a google script, but I am not a programmer, so I have no clue where to begin - if this is even possible.
Here is a brief description of what you are seeing in the Google Sheet:
Each person has 2 weeks of shifts that run from left to right.
Each letter represents a different shift, with the corresponding day at the top.
I would need a separate email associated with Person1, Person2, etc.
I would really appreciate any help! If you have any questions at all, just ask!
Thanks,
Cory

You would need permission to access all these people's calender's. They can grant permission when the code runs. If the user has more than one calender, and you don't want the program to change/use the default calender, then you'd need to know the name of the calender that they want updated. All the information in your spreadsheet would need to be "parsed".
Basically, you need to get the data out of the spreadsheet. You will use getValues() for that. That returns a two dimensional array. So, you need to be able to use a FOR loop with a two dimensional array. The code to put a new event into a calender shouldn't be that hard relatively. Just search the documentation, and there will be example code.
Google Documentation - Event

Related

How to extract data of previous week based on drop down from the Yahoo Fantasy Football

Hy, I am using Yahoo Fantasy Football and I have design Google Sheet to get the score data which is the working fine. The link to the sheet is as under.
Google Sheet Link
I have changed the permission to Editor. I have made a drop-down which holds the information of Week numbers. Basically, my idea is that by choosing the week number I want to populate the data from yahoo fantasy football. For importing data, i am using this command.
=importhtml("https://football.fantasysports.yahoo.com/f1/683375","table",1)
and this command is working well.
I tried it by using the same command but it does not works for the week numbers. The source of the page is as under.
so according to the given picture, here is the week number, I want to implement the same in the google sheet by using the dropdown. I have implemented the drop down but it does not work. Is there a way to interlink both using scripts or command so from google sheet when I chose week from the drop-down the concerning data should be populated? please take a look at the Google Sheet given above. I am also getting this error, while it was working fine before, how can it be resolved also.
Thanks
IMPORTHTML cannot retrieve elements dynamically inserted by a script. In your case the content on Week matchups is inserted dynamically and therefore will not be retrieved (it will return empty). Moreover, IMPORTHTML olny gets data from tables or lists and if you inspect what it seemed to be a table in Week Matchup is just actually a series of divs. If the content would not be inserted dynamically, to get the data from these divs you would need to use IMPORTXML.
If you still want to retrieve this information I am afraid that you will need to look for other web scraping techniques.

Why does the "continue" command appear on some google sheets but not others

I have two google sheets. In one I have created a function and want to put it into the other. In the first sheet it works great and has no issues, in the second sheet it seems to automatically insert the "continue(1,2,) etc.
The code I have, which works in the first sheet is:
=SPLIT(ADDTOTAL(SORT('REPORT LOOKUP'!F1:F35)),",")
(Addtotal is a custom script) but in the second sheet where it seems to autoinsert the "continue" it has duplicates and additional columns.
Anyone know what the issue woudl be, how I can turn off the continue if I need to?
Thanks
Sigh- much pain could have been avoided if I had checked dates the sheets were created. The difference is that the one sheet is a new google doc, the other old. The new sheets do not behave the same way as the old, they no longer use the "continue" function but just post the data.

Handling hidden input on Google Sheets

How would you tackle the following problem, using Google Sheets:
User A and B bot need to submit an input (some text) to a shared sheet. The input must be hidden from the other user until both have submitted. Both users can change the input until the reveal, but not afterwards. Think of it as simultaneous action selection, except it's on different time zones so we can't just shout one two three go.
Currently, we are using salted hashes. That is inefficient and time consuming. I'd like to automate it. However, I don't know of any tool inside Google Sheets that allows you to hide inputs from other users under certain conditions, or anything that locks the input after both submit either (the submission shouldn't be tampered with unless both users agree, unless it's done before the other user submits).
This might need to be done with external coding, and I'm up to that (although I currently have no idea how to integrate it in google sheets). However I have never programmed something that read input from anything other than a terminal (or a txt file that one time it was required in class) so please provide some reference for that too. :)
Many thanks in advance!
Use a Google Form as the input tool. Then after both users have sent the input, share the spreadsheet with them. This could be done manually or with Google Apps Script.
References
Create a survey using Google Forms - Docs editors Help
Extend Google Docs, Sheets, and Forms with Apps Script - Docs editors help

making things not a function

I am trying to organize my paypal revenue information by copying it into a google spreadsheet.
However, paypal writes my payments as "=+ $16.00USD" and it can not be read in google because it thinks its a function giving me an "#ERROR~"
How would I go back solving this without manually editing all the numbers.
If you are trying to convert the string into currency IN EXCEL, copy the values into a worksheet and in the next column enter the following formula:
=VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"=+ $",""),"USD",""),CHAR(34),""))
IF you are trying to use Google Spreadsheet, submit a new question with Google spreadsheet and not excel as the tags.
Not sure whether you count this as "manual editing" but selecting the cells, Edit, Find and Replace..., Find =+, check Also search within formulae, Done should remove the #ERROR! message.
You might want to do something similar for $ and USD if to process the value/s in some way.

Query data from Google Spreadsheet generated by Form

Currently we're having a request to integrate the Google Form functionality into our system. I'd done some searching on the web, and found that there's no way we can change the post processing of a Google Form unless we do some heavy customization using 3rd party tools.
Thus i have an idea that, when someone fill in the Google Form, he/she will need to fill in a 'user id' in the form. This will be collected as a field in the Google Spreadsheet generated by the form.
In my back end application, i would query the spreadsheet and look for the user id field input by the user. Then i would be able to know whether he/she completed the form or not.
I'm trying to look at the Google Docs API for the spreadsheet and found that there are list-based feed and cell-based feed but i'm not sure which one can achieve what i want to do. Anyone has experience in this can shed a light?
Thank you
Think of a list based feed as being like SQL. You can read rows, insert rows(at the bottom), delete rows and update rows. - you can only store data, not formulas. In contrast, A CELL based feed lets you read and write to cells, any cell, using the cell reference (R1C1 style). CELL FEED give you more control, and includes batch updates.
some sample CELL FEED code is here:
http://code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/spreadsheet/cell/CellDemo.java?r=51
Another option is too use google apps script, this is maybe less work if you just want to extract data. The html service is probably the tool for the job https://developers.google.com/apps-script/html_service - as you can dont need OAuth to do the read.

Resources