Excel countif multiple criteria overlapping ranges and multiple lines

蓝咒 提交于 2019-12-12 04:04:53

问题


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.


回答1:


Use COUNTIFS():

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



来源:https://stackoverflow.com/questions/45553584/excel-countif-multiple-criteria-overlapping-ranges-and-multiple-lines

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!