There is a small mistake in the above Excel equation.
The square root is missing from the right hand term (A3)and it should be divided not muliplied.
simply "=1/(-2*LOG(A2/3.7 + 2.51/A1*A3))^2" for solving for f directly
If you try to just add sqrt(A3), you get a division by zero error because...