How do I add a formula like:
=SUM(A1:A17)
to a range of fields using Google Apps Script for Google Sheets?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is done using the setFormula for a selected cell. Below is an example of how to do this.
You can also use setFormulaR1C1 to create R1C1 notation formulas. Example below.
To add several formulas to several fields use setFormulas. Example below