问题标签 [worksheet-function]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
45661 浏览

excel - Conditional median in MS Excel

I'm trying to calculate the conditional median of a chart that looks like this:

I'm using MS Excel 2007. I am aware of the AVERAGEIF() statement, but there is no equivalent for Median. The main trick is that there are rows with no data - such as the 4th "a" above. In this case, I don't want this row considered at all in the calculations.

Googling has suggested the following, but Excel won't accept the formula format (maybe because it's 2007?)

Excel gives an error saying there is something wrong with my formula(something to do with the * in the condition) I had also tried the following, but it counts blank cells as 0's in the calculations:

I am aware that those formulas return Excel "arrays", which means one must enter "Ctrl-shift-enter" to get it to work correctly.

How can I do a conditional evaluation and not consider blank cells?

0 投票
13 回答
301041 浏览

excel - Excel 对当前单元格的引用

如何获取对当前单元格的引用?

例如,如果我想显示 A 列的宽度,我可以使用以下内容:

但是,我希望公式是这样的:

0 投票
2 回答
801 浏览

excel - 有没有其他写范围的方法

嗨,例如,我必须在我的公式中写下这个

有没有其他写法(例如只使用数字,没有任何字母)

提前致谢!

0 投票
3 回答
4316 浏览

excel - MS Excel 通配符查找

我在 Excel 中有一个带有 ColA 和 ColB 的查找表:

ColC 为实际值表

我需要使用lookup_value =“value1”进行通配符查找我需要执行一个操作,如果ColC的值与ColA中的字符匹配,那么它应该返回我ColB值,即1

我想在查找函数中使用通配符来实现这个结果。任何帮助将不胜感激!谢谢

0 投票
1 回答
13165 浏览

excel - 如何在excel宏中匹配字符串通配符模式

我有一个像这样的测试

我想将其从左侧匹配更改为支持通配符的测试

Excel 不支持正则表达式,除了 VBA 代码,但我更喜欢在宏中完成。我应该指出,实际的测试不是一个简单的字符串,而是单元格引用(这可能很重要,我不确定):

该范围实际上根据调用宏的位置计算为单个单元格。$B$3 是用户输入的模式。

0 投票
3 回答
2142 浏览

vba - Excel中的数组常量

我在单元格 A1 中定义了一个数组常量 {1,2,3}。这显示为“1”(数组中的第一个值)。

我想让公式 SUM(A1) 返回 6。但是,SUM 使用 A1 作为单单元数组,而不是 A1 中包含的数组常量 - 因此 SUM(A1) 返回 1。

同样,我希望 AVERAGE(A1) 返回 1 而不是 2。

简单来说,如何让 SUM(A1) 返回与 SUM({1,2,3}) 相同的值?

我不想让数组常量成为命名引用,因为我为每一行定义了一个不同的数组常量。

感觉就像我被困在 C++ w/oa 取消引用的方式中!

0 投票
2 回答
56161 浏览

excel - 在excel中选择带有条件的最大值

我在 Excel 中有一个包含日期和值的范围

http://lh4.ggpht.com/_i-hI_3gfy08/SoSIopeZUZI/AAAAAAABEk/KjFnq57VTUc/table.png 编辑:图片添加

我想从每年的 HIGH 列中选择 MAX 值(2009 年将返回 404,2008 年将返回 390)

我做过类似的事情,但它使用的是 SUMIF,而不是 MAX。

有哪位高手能帮帮我吗?

0 投票
2 回答
285 浏览

excel - Excel 函数

我使用这个公式来跟踪召回列表;它会告诉我工具是否到期、(几天内)、过期或正常。工作正常,但如果截止日期单元格(K3)留空,我想添加一个“不需要”。

=IF(2*(K3(K3>=$L$2)=0,“OK”, IF(2(K3=$L$2)=1,“到期”,“逾期”))

0 投票
1 回答
7186 浏览

excel - 如何使用 Excel COUNTIF 计算通配符?

如何计算包含字符串“A*”的单元格数量 - 不将星号视为通配符?

0 投票
8 回答
39998 浏览

vba - Access 中没有 max(x,y) 函数

VBA for Access 缺少一个简单的Max(x,y)函数来查找两个或多个值的数学最大值。我习惯于在来自其他语言(如 perl/php/ruby/python 等)的基本 API 中已经有了这样的功能。

我知道可以做到:IIf(x > y, x,y)。还有其他可用的解决方案吗?