This example hides the cell (C1) when the sheet is not modifiable.
spreadsheet.getActiveSheet().cells(1,1).setValue(10); spreadsheet.getActiveSheet().cells(1,2).setValue(20); spreadsheet.getActiveSheet().cells(1,3).setFormula("=A1+B1"); spreadsheet.getActiveSheet().cells(1,3).setHidden(true);
Related information