I'm trying to do what I thought was basic script. but alas i'm struggling.
In Column C I am trying to create a string of Column D & Column E with a space in the middle. as a formula I would use
=D18&" "&E18
as code I have
{function myFunction() {
var ss = SpreadsheetApp.getActive();
var sheet = ss.getSheetByName("CP");
var cell = sheet.getRange("C:C");
cell.setFormula("=D:D&E:E");}
which does combine the two cells but without a space. is this at all possible. It needs to be done in script because I have third party services connected to google sheets where the data comes in but the formula does not carry down.
Thanks Dan