Is there an excel function that can distinguish between a number and a formula?

A cell contains a default formula, but this can be overridden with a specific number.

I want to set up a conditional format rule to change the cell color when a number is typed over the formula.

Thanks