Excel countif多个条件重叠范围和多行 [英] Excel countif multiple criteria overlapping ranges and multiple lines

查看:603
本文介绍了Excel countif多个条件重叠范围和多行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个会员数据库,并试图找出连续3个月下降的原因。我目前的想法是,我需要计算第一个单元格是否为空白(表示此人尚未成为成员),以及其他两个单元格中的任意一个是否为空白(表示它们已退出)。在下面的示例数据中,如果某人是该月的成员,则我仅使用1。



我最近的尝试是:

  = COUNTIF(B2:B5,<& *,[C2:C5,<"& * ,D2:D5,<& *])

玩具数据:

  ABCD 
1 Mem#5月16日至6月16日7月16日
2 001 1 1 1
3002 1 1
4003 1 1
5004 1 1

所需的输出将为 2,即在此期间开始但没有结束时具有成员资格的成员数。

解决方案

使用


I've got a membership database and am trying to figure out what the dropoff is for a rolling 3 month period. My current thought is that I need to count if the first cell is not blank (meaning the person wasn't yet a member) and if either of the other two cells is blank (meaning that they dropped off). In the sample data below I'm just using a 1 if the person is a member in the month

My latest attempt is:

=COUNTIF(B2:B5,"<>"&"*",[C2:C5,"<>"&"*",D2:D5,"<>"&"*"])

Toy data:

    A       B        C       D
1   Mem#   May-16  June-16  July-16
2   001     1       1        1
3   002             1        1
4   003     1       1
5   004     1       1

Desired output would be "2", the number of members that had membership at the start of the period but not at the end of it.

解决方案

Use COUNTIFS():

=COUNTIFS(B:B,"<>",D:D,"=")

这篇关于Excel countif多个条件重叠范围和多行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆