Set cell value using based on cell length