Excel 将 jxls 从 2.3.0 升级到 2.6.0 后,模板中的 AVERAGE 函数无法正常工作

Excel AVERAGE function in template not working properly after upgraded jxls from 2.3.0 to 2.6.0

Excel jxls 从 2.3.0 升级到 2.6.0 后,模板中的 AVERAGE 函数仅适用于第一个 sheet,不适用于多个 sheets。

在第一个 sheet 中,平均单元格公式显示 =AVERAGE(B12:B17)。然而,在第二个 sheet 或其他 sheet 中,平均单元格公式显示 = AVERAGE(B12, B12, B13, B14, B15, B16, B17) 使 B12 翻倍。它在 2.3.0 版本中运行良好。

这是 jxls 2.6.0 的错误吗?

确实,Jxls 中有一个 bug,现在已修复在 master 分支上,将很快与下一个 Jxls 版本 (v2.7.0) 一起发布。