Setting up an ‘autocomplete script excel’

The text/numerics recorded in the first three columns of a worksheet determine the text/numeric content of the fourth column. I would like to know the best way to set up an autocomplete script excel for the fourth column? Thanks.
