My second attempt to resolve this issue. Let me simplify my question
Specifically, this example can be done in a much simpler way, but it is
just for example purposes, and my other stuff can be run only through
Apps Script.Let's say I have a table ...