Skip to content
Advertisement

How to repeat a App script function for only certain column

I have written this JS function in google sheet

JavaScript

Now I want to repeat this function in a column but only first param should increment e.g in next row it should be like

JavaScript

If I try to copy-paste and repeat it then other params are touched as well which should remain constant in every row.

Can you please share how to achieve this?

Advertisement

Answer

In your situation, how about the following modification? In this modification,

Modified formula:

JavaScript

or

JavaScript

or

JavaScript
  • In this case, please put this into a cell. By this, D3:D is used.

Note:

  • Although I’m not sure about your actual script of calculateCallLoss, I thought that in your situation, your goal might be able to be achieved by modifying your current script.
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement