I need the syntax for the following calculation.

I can never get this right as there always seems to be loads of brackets involved.

Any of you bright sparks out there fancy taking this one on ?

IF J4=P4 AND K4=Q4 THEN
Range("A1").Value = Range("A1").Value + 1
ELSE
IF (J4 > K4 AND P4 > Q4) OR (J4=K4 AND P4=Q4) OR (J4<K4 AND P4<Q4) THEN
Range("A1").Value = Range("A1").Value + 1
ENDIF
ENDIF

Hope thats readable !