Set the cell value when the reference entry changes