vinoaj / google-drive-apps-script-examples

Example Google Apps Script snippets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Drive and Apps Script examples

Google Sheets

Currency conversion at given date

  • =IF(ISERROR(IF(D415 = I$1,1,INDEX(GOOGLEFINANCE(D415&I$1,"price",A415),2,2))*C415),C415,IF(D415 = I$1,1,INDEX(GOOGLEFINANCE(D415&I$1,"price",A415),2,2))*C415)
    • D415 refers to the target currency code (e.g. AUD)
    • A415 refers to the original date
    • C415 refers to the value we’re converting

About

Example Google Apps Script snippets


Languages

Language:JavaScript 100.0%