D
D
Dofre2020-04-06 08:31:12
Google Apps Script
Dofre, 2020-04-06 08:31:12

How to make autocomplete script?

There is a table consisting of a fixed number of columns, the number of rows is constantly changing (say columns A,B,C,D). If I manually add information to column A in a new row (thereby expanding the table), then columns B and D in the same row should be filled with a script (there are formulas in these columns, respectively, formulas should be passed to them). How to implement it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Noir, 2020-04-06
@PolarBearGG

https://stackoverflow.com/questions/12036726/how-d...
https://stackoverflow.com/questions/38287554/googl...

G
Grigory Boev, 2020-04-08
@ProgrammerForever

Much can be done purely by formulas. Here is an example - if there is something in column A , then the sum ( A + B ) is obtained. Write it down in C1 and add values ​​to A and B.

=arrayFormula(
  еслиошибка(
     если(a:a<>""; a:a+b:b; "")
  )
)

Demo table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question