[google-apps-script] How to get the correct range to set the value to a cell?