The formula you have given is not valid. Put the formula into a cell in excel
and make sure it is valid, then ask us a question based on the real formula.
Hint - if you are doing programming in a language other than Excel VBA ask the
question on a forum for the language you are using. ** is not a valid
operator in excel.