Excel 确定范围

发布于 2024-07-20 05:48:23 字数 59 浏览 3 评论 0原文

我正在创建一个包含一列数据的电子表格,我想 根据输入的 x 计算 x 行数的方差。 有什么建议吗?

I am creating a spreadsheet which has a column of data, and I would like to
calculate the varaince of x number of rows based on x inputed. Any advice?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许一世地老天荒 2024-07-27 05:48:23

正如 Matthew Flaschen 所建议的,不需要 VBA。 这可以通过 Excel 公式来完成。

假设您的数据位于 A 列中,从 A1 开始一直向下。
假设单元格 B1 的数字为 x,这是您要使用的样本大小。

那么您需要的公式应该是:

=VAR(OFFSET(A1,0,0,B1,1))

VAR 部分表示计算总体样本的方差,忽略非数字。 (该函数的变体包括针对整个总体的 VARP、针对非数字的 VARA 以及针对两者的 VARPA)。

偏移部分表示从单元格 A1 开始,横向移动 0 列,向下移动 0 列,然后选择 B1 列高、一列宽的范围。

As Matthew Flaschen suggests, there is no need for VBA. This can be done with Excel formulae.

Suppose your data is in column A, starting at A1 and going down.
Suppose cell B1 has the number x, which is the sample size you wish to use.

Then the formula you need should be:

=VAR(OFFSET(A1,0,0,B1,1))

The VAR part says calculate the variance of a sample of the population, ignoring non-numbers. (Variants to the function include VARP for the entire population, VARA to include non-numbers and VARPA for both).

The Offset part says to start at cell A1, move 0 columns across and zero columns down, and then select a range which is B1 columns tall and one column wide.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文