我希望 Excel 将运算符解释为公式中的字符

问题描述 投票:0回答:1

我有一张表格,其中包含以下答案:< 24
或 > 20 kh

我想计算每种类型有多少个答案。 我想使用这种公式:=COUNTIF(EW5:EW150;"< 24")

但Excel似乎对待“< 24" as: inferior to 24, whereas I want Excel to treat it as a simple string of characters.

我该怎么做?

谢谢你

excel operators formula
1个回答
0
投票

如果单独应用 SUM 和 IF,则会返回所需的结果。

=SUM(IF(EW5:EW150="< 24",1,0))

© www.soinside.com 2019 - 2024. All rights reserved.