Skip to content

[ISSUE] 向右拖拽复用公式时计算错误,共享公式的引用偏移计算出现错乱,导致某些单元格被错误引用。 #792

Description

@wmrisme

Issue Type / 问题类型

Bug / 缺陷

kkFileView Version / kkFileView 版本

4.4.0

Deployment Mode / 部署方式

docker

Environment / 环境信息

Steps to Reproduce / 复现步骤

表格数据:

名称 2026-09-08 2026-09-09 2026-09-10 2026-09-11 2026-09-12 2026-09-13 2026-09-14 2026-09-15 2026-09-16 2026-09-17 2026-09-18
原始数据1 516 500 555 590 584 622 669 688 653 606 -
原始数据2 858 840 896 942 939 980 1034 1050 1023 956 -
使用sum函数1 1374 1340 1895 1930 1924 1602 1703 1738 1676 1562 0
使用sum函数2 1374 1340 1451 1930 1523 1602 1703 1738 1676 1562 0
使用sum函数3 1374 1340 1451 1930 1924 1602 1703 1738 1676 1562 0

问题定位

复现操作:基于以上数据,在B4单元格使用公式=SUM(B2:B3)求和后,再向右拖拽复用公式至L4单元格。
错误表现:D4计算后应为1451,实为1895, 像是引用到了 D2 + C4 = 555 + 1340 = 1895。
疑似原因:拖拽共享公式中,除了第一个引用能正确按列偏移,其余引用在向右拖拽时列偏移丢失,列索引被错误地设为原引用的行号,行索引固定为共享公式起始单元格的行号。

Expected Result / 期望结果

Actual Result / 实际结果

Logs & Screenshots / 日志与截图

-

Sample File / 样例文件(可选)

No response

Checklist / 提交前检查

  • I have searched existing issues and did not find a duplicate. / 我已搜索现有 issue,未发现重复问题
  • I can reproduce this issue on the stated version/environment. / 我可在上述版本与环境复现该问题
  • I have masked sensitive information in logs/screenshots. / 我已对日志与截图中的敏感信息做脱敏处理

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/needs-infoWaiting for reporter feedback or reproduction details

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions