你好,我找年龄筛选公式时,看到你的回答。
使用公式countif
在G7单元格内输入=countif(e:e,"<=9")
G8内输入=countif(e:e,"<="&mid(f8,4,2))-g7
然后把G8的公式向下复制填充即可
在这一步,G8内输入=countif(e:e,"<="&mid(f8,4,2))-g7 我公式错误。年龄单元格不一样,我要怎么改单元格,才能做到。我的年龄单元格在G,条件筛选是在H,数据显示是在J。求教!
你好,怎么统计这几个年龄段的人数,用countif(e:e,"<=9")和=countif(e:e,"<="&mid(f8,4,2))-g7
追答在K2、L2、M2、N2、O2中分别输入或复制粘贴下列公式
=COUNTIF(J:J,">60")
=COUNTIF(J:J,">=55")-COUNTIF(J:J,">60")
=COUNTIF(J:J,">=40")-COUNTIF(J:J,">54")
=COUNTIF(J:J,">=19")-COUNTIF(J:J,">39")
=COUNTIF(J:J,"<18")
选择K2:O2,下拉填充