Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

78
Views
Google App Script to Execute A Function based on Column Value

I am trying to execute different functions based on the value of my columns. I have 3 values that as a reference for the function. below are my codes:

function GenerateFinalReport(){
if (SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Reports').getRange("AF:AF").getValue 
== "Corinthians"){
   GenerateCorReport();
   }
if (SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Reports').getRange("AF:AF").getValue 
== "MCT"){
   GenerateMCTReport();
   }
if (SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Reports').getRange("AF:AF").getValue 
== "PSG"){
  GeneratePSGReport();
  }
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!