Count number of people across multiple columns with criteria

喜你入骨 提交于 2019-12-13 02:59:20

问题


I have a worksheet that has 6 columns for each employee and family members birthdays. I am looking to get the total number of kids that are 20 years old and younger without adding any additional columns based on the date in cell B1. I looked into using COUNTIF, but it needs a range to execute.

Here is how my workbook looks:

I am looking for one formula that takes all birthdays from columns C-F and counts how many children are younger than 20 years old. Is this possible?

Answers I am seeking from formula:

Thank you!


回答1:


Use COUNTIF():

=COUNTIF(C3:F3,">" & DATE(YEAR($B$1)-20,MONTH($B$1),DAY($B$1)))



来源:https://stackoverflow.com/questions/49285970/count-number-of-people-across-multiple-columns-with-criteria

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