I have a formula in excel that is as follows:
=Round(33.468*(Log(Log(M+0.8)))+23.097;2)
as i have a large amount of data and need to use this frequently i created a UDF based off this formula as follows:
Function visco(M)
visco = Round(33.468 * (Log(Log(M + 0.8))) + 23.097, 2)
End Function
however when i plug in a value for M the value in each is different, the excel formula directly in the cell is correct whereas the UDF result is wrong.
I am unsure what has happened here if anyone is able to explain
thanks