SlideShare a Scribd company logo
Google Spreadsheet
scripting
Google DevFest
Ra’ed Marji @hla3mi
Content
● Simple Google Functions
● Simple Web Scraping
● Making Live Forms
● Adding Scripts to your Forms
○ Featured Scripts
○ Hands On Example: Yet Another Mail Merge
Simple Google Functions
DETECTLANGUAGE(range)
Identifies the language in which the text within
the specified range is written.
For example:=DetectLanguage("‫"ﻣﺮﺣﺒﺎ‬ ) would
give "ar" as a result
Simple Google Functions : Cont.
GoogleTranslate(text, source language,target
language)
Translates text in the specified range from the source
language into the target language.
Entering "auto" instead of the source language and target
language parameters automatically identifies the language
of the source text and translates into a language based on
your locale settings.
Simple Google Functions : Cont.
GoogleFinance(symbol, attribute)
Retrieves market information from Google
Finance. Learn more, or view an example.
Example: =GoogleFinance("goog","price")
other attributes would be :
● “eps”
● “close”
Simple Scripting Functions
● ImportFeed(URL, query, headers,
numItems)
Retrieves information from a data feed. View an
example.
Example on parsing a feed
Step 1 : Get the rss or the feed URL
URL = http://www.ammonnews.net/rss.aspx?sectionid=47&sectionName=%
D8%B1%D9%8A%D8%A7%D8%B6%D8%A9%20RSS
Step 2 : Get apply the Formula
=ImportFeed(URL,,1,)
Facebook Shares Function
function FBshares(URL)
{
var JSONData = UrlFetchApp.fetch("graph.
facebook.com/"+url);
var object = Utilities.jsonParse(JSONData.
getContentText());
return object.shares;
}
● ImportXml(URL, query, index)
The ImportXML function Retrieves information from an
XML file.
Note:The limit on the number of ImportHtml functions per spreadsheet is 50.
Amazon Price Watch
Step 1:
Get the Link.
URL = http://www.amazon.com/gp/product/1118443616/
Step 2:
Get the class or the id of the desired field.
Query= //*[@class="a-color-price"]
Step 3:
Put the parameters in the function.
=ImportXML(URL,Query)
Creating Forms
● How to create a signup form
● Triggers
Fun Trick
Colors
Red
Yellow
Green
Blue
Featured Scripts
● Add reminder
○ You have a spreadsheet full of deadlines ? Use this script to receive email reminders before
those deadlines.
● Facebook Likes Counter
○ Count Facebook likes for a given URL and returns: sharecount, likescount, commentscount
and totalcount. See template document in help for quick start.
● Gmail Meter
○ The most popular statistics and analytics tool for Gmail. Now available at http://gmailmeter.
com.
● Gmail SMS alerts
○ If I receive an important email, send me a text. This script uses Gmail filters and Calendar SMS
reminders.
● pushData V1.4.4
○ pushData: A utility for pushing tabular data between spreadsheets on time-based triggers.
● Yet Another Mail Merge
○ With this mail merge, you can write your template directly in Gmail (save it as a draft - see
help page). Syntax for template markers: <<First Name>>
Yet Another Mail Merge
For more info : https://sites.
google.
com/site/scriptsexamples/availa
ble-web-apps/mail-merge
YAMM : Cont.
YAMM : Cont.
Links
● Test Spreadsheet
○ http://bit.ly/1b2vQo0
● How to build and customize your own mail
merge
○ https://developers.google.com/apps-script/articles/mail_merge
● List of all Google spreadsheet functions
○ https://support.google.com/drive/table/25273?page=table.cs&ctx=tooltip&rd=1
● Use the cool Solve feature
○ https://support.google.com/drive/answer/139704?hl=en
Thank You!
Twitter:@hla3mi
Email : raed@jogeeks.
com

More Related Content

PPT
AIA101.2.Access Queries Accelerated
PPT
Javascript programming using the document object model
PPTX
Windows Phone app development overview
PDF
Web Data & Reporting Zipline – FME Summer Camp
PPTX
Test1
PPTX
PDF
Girls In ICT Day 25.4.2013
PPTX
Adesivos de natal
AIA101.2.Access Queries Accelerated
Javascript programming using the document object model
Windows Phone app development overview
Web Data & Reporting Zipline – FME Summer Camp
Test1
Girls In ICT Day 25.4.2013
Adesivos de natal

Similar to Yarmouk Google Developers Group Devfest (20)

PPTX
Unit 8.4Testing condition _ Developing Games.pptx
PDF
Build a game with javascript (april 2017)
PDF
Google Apps Script: Accessing G Suite & other Google services with JavaScript
PDF
Build Your Own Angular Component Library
PDF
Carlo Bonamico, Sonia Pini - So you want to build your (Angular) Component Li...
PDF
C++ Templates_ Program to Swap Two Numbers Using Function Template - The Craz...
PDF
Client sidescripting javascript
PDF
Intro to javascript (5:2)
PPTX
Statistics Linear Regression Model by Maqsood Asalam
PDF
c++ referesher 1.pdf
PPT
Ddpz2613 topic9 java
PPTX
Info on Google Drive Applications
PDF
BSSML16 L10. Summary Day 2 Sessions
PDF
Building Services With gRPC, Docker and Go
PPTX
Forms with html5
PPTX
Forms with html5 (1)
PDF
DutchMLSchool. Automating Decision Making
PPTX
C Programming Unit-1
PPTX
COM 211 PRESENTATION.pptx
Unit 8.4Testing condition _ Developing Games.pptx
Build a game with javascript (april 2017)
Google Apps Script: Accessing G Suite & other Google services with JavaScript
Build Your Own Angular Component Library
Carlo Bonamico, Sonia Pini - So you want to build your (Angular) Component Li...
C++ Templates_ Program to Swap Two Numbers Using Function Template - The Craz...
Client sidescripting javascript
Intro to javascript (5:2)
Statistics Linear Regression Model by Maqsood Asalam
c++ referesher 1.pdf
Ddpz2613 topic9 java
Info on Google Drive Applications
BSSML16 L10. Summary Day 2 Sessions
Building Services With gRPC, Docker and Go
Forms with html5
Forms with html5 (1)
DutchMLSchool. Automating Decision Making
C Programming Unit-1
COM 211 PRESENTATION.pptx
Ad

Recently uploaded (20)

PPTX
2025 Product Deck V1.0.pptxCATALOGTCLCIA
PDF
Deliverable file - Regulatory guideline analysis.pdf
PDF
Digital Marketing & E-commerce Certificate Glossary.pdf.................
PPTX
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
PDF
Ôn tập tiếng anh trong kinh doanh nâng cao
PDF
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
PDF
NISM Series V-A MFD Workbook v December 2024.khhhjtgvwevoypdnew one must use ...
PDF
NEW - FEES STRUCTURES (01-july-2024).pdf
PPTX
Negotiation and Persuasion Skills: A Shrewd Person's Perspective
PDF
Outsourced Audit & Assurance in USA Why Globus Finanza is Your Trusted Choice
PDF
Daniels 2024 Inclusive, Sustainable Development
PPTX
svnfcksanfskjcsnvvjknsnvsdscnsncxasxa saccacxsax
PPTX
operations management : demand supply ch
PDF
Comments on Crystal Cloud and Energy Star.pdf
PPTX
sales presentation، Training Overview.pptx
PPTX
Slide gioi thieu VietinBank Quy 2 - 2025
PDF
IFRS Notes in your pocket for study all the time
PDF
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
PPTX
Slide gioi thieu VietinBank Quy 2 - 2025
PPTX
Principles of Marketing, Industrial, Consumers,
2025 Product Deck V1.0.pptxCATALOGTCLCIA
Deliverable file - Regulatory guideline analysis.pdf
Digital Marketing & E-commerce Certificate Glossary.pdf.................
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
Ôn tập tiếng anh trong kinh doanh nâng cao
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
NISM Series V-A MFD Workbook v December 2024.khhhjtgvwevoypdnew one must use ...
NEW - FEES STRUCTURES (01-july-2024).pdf
Negotiation and Persuasion Skills: A Shrewd Person's Perspective
Outsourced Audit & Assurance in USA Why Globus Finanza is Your Trusted Choice
Daniels 2024 Inclusive, Sustainable Development
svnfcksanfskjcsnvvjknsnvsdscnsncxasxa saccacxsax
operations management : demand supply ch
Comments on Crystal Cloud and Energy Star.pdf
sales presentation، Training Overview.pptx
Slide gioi thieu VietinBank Quy 2 - 2025
IFRS Notes in your pocket for study all the time
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
Slide gioi thieu VietinBank Quy 2 - 2025
Principles of Marketing, Industrial, Consumers,
Ad

Yarmouk Google Developers Group Devfest

  • 2. Content ● Simple Google Functions ● Simple Web Scraping ● Making Live Forms ● Adding Scripts to your Forms ○ Featured Scripts ○ Hands On Example: Yet Another Mail Merge
  • 3. Simple Google Functions DETECTLANGUAGE(range) Identifies the language in which the text within the specified range is written. For example:=DetectLanguage("‫"ﻣﺮﺣﺒﺎ‬ ) would give "ar" as a result
  • 4. Simple Google Functions : Cont. GoogleTranslate(text, source language,target language) Translates text in the specified range from the source language into the target language. Entering "auto" instead of the source language and target language parameters automatically identifies the language of the source text and translates into a language based on your locale settings.
  • 5. Simple Google Functions : Cont. GoogleFinance(symbol, attribute) Retrieves market information from Google Finance. Learn more, or view an example. Example: =GoogleFinance("goog","price") other attributes would be : ● “eps” ● “close”
  • 6. Simple Scripting Functions ● ImportFeed(URL, query, headers, numItems) Retrieves information from a data feed. View an example.
  • 7. Example on parsing a feed Step 1 : Get the rss or the feed URL URL = http://www.ammonnews.net/rss.aspx?sectionid=47&sectionName=% D8%B1%D9%8A%D8%A7%D8%B6%D8%A9%20RSS Step 2 : Get apply the Formula =ImportFeed(URL,,1,)
  • 8. Facebook Shares Function function FBshares(URL) { var JSONData = UrlFetchApp.fetch("graph. facebook.com/"+url); var object = Utilities.jsonParse(JSONData. getContentText()); return object.shares; }
  • 9. ● ImportXml(URL, query, index) The ImportXML function Retrieves information from an XML file. Note:The limit on the number of ImportHtml functions per spreadsheet is 50.
  • 10. Amazon Price Watch Step 1: Get the Link. URL = http://www.amazon.com/gp/product/1118443616/ Step 2: Get the class or the id of the desired field. Query= //*[@class="a-color-price"] Step 3: Put the parameters in the function. =ImportXML(URL,Query)
  • 11. Creating Forms ● How to create a signup form ● Triggers
  • 13. Featured Scripts ● Add reminder ○ You have a spreadsheet full of deadlines ? Use this script to receive email reminders before those deadlines. ● Facebook Likes Counter ○ Count Facebook likes for a given URL and returns: sharecount, likescount, commentscount and totalcount. See template document in help for quick start. ● Gmail Meter ○ The most popular statistics and analytics tool for Gmail. Now available at http://gmailmeter. com. ● Gmail SMS alerts ○ If I receive an important email, send me a text. This script uses Gmail filters and Calendar SMS reminders. ● pushData V1.4.4 ○ pushData: A utility for pushing tabular data between spreadsheets on time-based triggers. ● Yet Another Mail Merge ○ With this mail merge, you can write your template directly in Gmail (save it as a draft - see help page). Syntax for template markers: <<First Name>>
  • 15. For more info : https://sites. google. com/site/scriptsexamples/availa ble-web-apps/mail-merge
  • 18. Links ● Test Spreadsheet ○ http://bit.ly/1b2vQo0 ● How to build and customize your own mail merge ○ https://developers.google.com/apps-script/articles/mail_merge ● List of all Google spreadsheet functions ○ https://support.google.com/drive/table/25273?page=table.cs&ctx=tooltip&rd=1 ● Use the cool Solve feature ○ https://support.google.com/drive/answer/139704?hl=en