extended number_to_cell functionality