Why my formula is showing error - Inconsistent calculated column formula in MS Excel?

百般思念 提交于 2020-01-14 18:58:05

问题


My formula is showing error: Inconsistent calculated column formula. But still its working and returning result as expected.

Formula:

=IF(B7="","",IF((MINUTE(M7))>=15,TRUNC(HOUR(M7)+MINUTE(M7)/60)+1,TRUNC(HOUR(M7)+MINUTE(M7)/60)))

I'm using Microsoft Office 2007. Please help.


回答1:


That's because the formula on the previous row/column is a bit different. This is what Microsoft says about it:

Calculated columns in Excel tables are a fantastic tool for entering formulas efficiently. They allow you to enter a single formula in one cell, and then that formula will automatically expand to the rest of the column by itself. There’s no need to use the Fill or Copy commands. This can be incredibly time saving, especially if you have a lot of rows. And the same thing happens when you change a formula; the change will also expand to the rest of the calculated column. A calculated column can include a cell that has a different formula from the rest. This creates an exception that will be clearly marked in the table. This way, inadvertent inconsistencies can easily be detected and resolved.




回答2:


If you intend to have different formulas in the same column in a table, you can turn off this "annoying" feature of excel globally as shown below. I wish I could turn it off, per table or at least per sheet.

under Excel Options / Formulas



来源:https://stackoverflow.com/questions/46886973/why-my-formula-is-showing-error-inconsistent-calculated-column-formula-in-ms-e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!