Reputation: 91
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!
Upvotes: 0
Views: 127
Reputation: 152605
Use COUNTIF():
=COUNTIF(C3:F3,">" & DATE(YEAR($B$1)-20,MONTH($B$1),DAY($B$1)))
Upvotes: 1