Function createCellEditStateFromCell