ro column type with math calculations

When I use the following code,
the last column is read only but when I introduce math calculations as follows

the read only property is lost, I am to edit the values in the last column. (the calculation part works though)
Is it possible to set a column type as read only by using math calculations as above?

You can try to use onCelledit event to block the edit mode (return false) of the cell to the needed column.

tutorial: … oneditcell

Thanks, that works.

by the way you may try this: