dream-num / univer

Univer is an open-source alternative to Google Sheets, Slides, and Docs

Home Page:https://univer.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] The function count cannot count the data generated by the formula.

guinanlin opened this issue · comments

commented

在您提交此问题之前,您是否检查了以下内容?

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

受影响的包和版本

0.1.14

复现链接

Screenity video - Jun 7, 2024

预期行为

需要能正常count

实际行为

count出来的结果为0

运行环境

Chrome

系统信息

npx envinfo --system --binaries --browsers
Need to install the following packages:
envinfo@7.13.0
Ok to proceed? (y) y

System:
OS: Windows 10 10.0.19045
CPU: (2) x64 Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz
Memory: 7.43 GB / 16.00 GB
Binaries:
Node: 18.19.0 - E:\programs\nodejs\node.EXE
npm: 10.2.3 - E:\programs\nodejs\npm.CMD
pnpm: 8.15.1 - E:\programs\nodejs\pnpm.CMD
Browsers:
Edge: Chromium (125.0.2535.51)
Internet Explorer: 11.0.19041.4355

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] 函数count针对于公式生成的数据没法count

Title: [Bug] The function count cannot count the data generated by the formula.


Before you submitted this question, did you check the following?

  • Is this really a problem?
  • I've searched Github Issues but haven't found any similar issues.

Affected packages and versions

0.1.14

Recurrence link

Screenity video - Jun 7, 2024

Expected behavior

Need to be able to count normally

Actual behavior

The result of count is 0

Running environment

Chrome

system message

npx envinfo --system --binaries --browsers
Need to install the following packages:
envinfo@7.13.0
Ok to proceed? (y) y

System:
OS: Windows 10 10.0.19045
CPU: (2) x64 Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz
Memory: 7.43 GB / 16.00 GB
Binaries:
Node: 18.19.0 - E:\programs\nodejs\node.EXE
npm: 10.2.3 - E:\programs\nodejs\npm.CMD
pnpm: 8.15.1 - E:\programs\nodejs\pnpm.CMD
Browsers:
Edge: Chromium (125.0.2535.51)
Internet Explorer: 11.0.19041.4355

Thank you for your feedback, we will repair this problem as soon as possible

commented

这个问题上面, 我补充一个问题。

就是这种公式生成的数据, 我通过 复制, 是没法复制到excel的。 只能复制到第一行。

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

I would like to add another question to this question.

The data generated by this formula cannot be copied to excel by copying it. Only the first row can be copied.

  1. count 只能统计数字,counta可以统计值,所以这里 count 函数没有问题
  2. 复制数组公式区域 Excel 也不支持,我们这里匹配 Excel 的特性。你这里的场景,可以考虑将公式的计算结果使用 set range value全部赋值到单元格中。

如有问题再 reopen issue。

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

  1. count can only count numbers, counta can count values, so there is no problem with the count function here
  2. Excel does not support copying array formula ranges. We match the features of Excel here. In your scenario, you can consider assigning all the calculation results of the formula to cells using set range value.

If there is any problem please reopen the issue.