In some cases, there are space(s) before or after the text.
So try this:
IF(TRIM(P770)=TRIM(ControlSheet!T204),....)
to avoid rid of space.
If it does not work, try to upload small example.