r 对一列计数_根据另一列对项目进行计数

r 对一列计数

How can you count items in one column, based on a criterion in a different column? We've shipped orders to the East region, and want to know how many orders had problems (a problem note is entered in column D). COUNTIF sounds like the right function to use, but it doesn't work for this problem.

如何根据另一列中的条件对一列中的项目进行计数? 我们已将订单运送到东部地区,并想知道有多少订单有问题(在D列中输入了问题说明)。 COUNTIF听起来像要使用的正确函数,但不适用于此问题。

容易根据标准求和 (Easy to Sum Based on Criteria)

If we want to get a total quantity for the East region orders, it's easy to do with the SUMIF function. We can check region names in column B, then sum the amounts in column C.

如果我们想获取东部地区订单的总数量,则可以轻松使用SUMIF函数 。 我们可以检查B列中的区域名称,然后将C列中的金额相加。

=SUMIF(B2:B11

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值