I've got a formula that gives me a number in one cell and I'm trying to use that result in another formula but is not working.

So in cell A2, I have a sumproduct that gives a number as a result.

In cell B2 I have another number that is the result of a forumula.

In cell C2 I am doing a simple IF comparison, =IF(A2=B2, "equal", "not equal")

its not working due to the formulas, it works fine if I just use plain text values.

Any ideas?