Excel 2010: Formulas not showing correct answer

时间:2016-04-07 10:32:07

标签: excel excel-formula

I'll try and explain this as best as I can, it's a strange one so please bear with me. For the record I am using Excel 2010 (although I have seen this a couple of times before on previous versions also), and the model is fairly large (~30MB) containing around 20 sheets, and around 15 modules (although very well optimised and calculation times are non-existent).

I don't have the exact figures to hand, but for example in cells A1:A3 I have the values 823.50, -350.00, and -497.50 respectively. In cell B2, I am simply adding the values in column A by using =A1+A2+A3.

One would expect the result to show -24.00, but in fact shows something along the lines of 548.50.

  • Calculations are set to automatic
  • Application.ScreenUpdating = True
  • Formatting is set to General
  • Manually stepping through the 'evaluate formula' dialog returns the correct result right up until the last step, which then gives the incorrect result

This can be fixed manually by entering into the cell, and coming back out again (effectively F2 then enter), after which the cell shows the correct result.

It is definitely not just a visual error, as the incorrect result gets fed into other calculations. I know the quick fix is to F2 and enter each cell, but it was only by chance this morning that the error was spotted, and could have easily resulted in a very large, false cost.

Edit

Forgot to mention that this affected ~50 cells this morning, not just the one

Has anyone had any experience with this issue? Is it a known issue, and therefore a known solution?

Any help would be greatly appreciated.

1 个答案:

答案 0 :(得分:0)

我唯一注意到的事情是使用' = Sum'而不只是' =',但从未确定它实际上的功能不同。

另外,来自MS:如果参数是单元格范围或引用,则只能添加引用或范围中的数值