Needing to create an IF formula which would give the following as the outcome.

e.g. IF c2>E2 the outcome would be given as 1, if C2<E2 then the outcome would be given as 2 and if C2=E2 then the outcome would be given as X.

Any help appreciated.