Limit on number of characters in a cell

How to limit the number of characters entered in a cell?
I want to set this property to a max. of 50 characters on a column.

There is no built in functionality for such use case

You can use validation to mark invalid cells
You can use onEditCell event ( stage 2 ) , from which you can check new value and trim it if it is too big