Hi

If A2 is greater than B2 then I want cell A1 to display the letter H
If B2 is greater than A2 then I want cell A1 to display the letter S

I tried to use the following:
=IF(A2>B2,H,S)

However the letters in that formula do not mean anything to excel at this point.

What is the solution?

Thanks.