I just tried to translate the OP's problem description into VBA code as simple and accurate as possible to create a runable reproduction scenario for the error message. - I don't have any clue about XIRR and its prerequisites.@sonic8 took a different approach and loaded the values to variables. But in so doing, he applied the unary negation to the variable BEFORE the exponentiation could occur, and so exhibited the same problem.