If it's changing values, that can only be because you told it to. Either you are writing new formulas, or copying and pasting in an unintended location. You could also be copying cells with formulas and pasting them in a different context. This will change the results of those calculations.
If you post your code, we can give you more specific guidance.