top of page

"Count birthdays by year" : Explanation Of Equation In Excel

The "Count birthdays by year" formula in Excel is one of the useful equations that helps in calculating the number of births in each particular year.

This equation is designed to facilitate the analysis of data related to anniversaries and other occasions.

Let's start by explaining the structure of the equation and knowing its use. Before that, you should be familiar with some basic terms in Excel:

1. “COUNT” is a function used to count the number of values in a given set.

2. “IF” is a function used to perform a specific test and return a specific value if the specified condition is met.

3. “DATE” is a data type in Excel that is used to represent dates.

Now, let's learn about the construction of the "Count birthdays by year" equation. Here's the basic formula:


This equation contains two important functions: "COUNT" and "IF". Now we will explain each part of the equation in detail:

- Condition: Replaced with the condition you want to test. In our case, we will use the condition "year=selected year". You should replace "selected year" with the year in which you want to count the number of births.

- 1: The value 1 is returned if the specified condition is met. This value will be used in the "COUNT" function to count the number of births.

Now, let's apply the equation to a practical example. Suppose we have a table containing people's names and dates of birth. We will use the equation to calculate the number of births in a given year. This is the example:













Suppose we want to calculate the number of births in 1990. We will use the following equation:

=COUNT(IF(year(A2:A6)=1990, 1))

Here, we used the 'YEAR' function to extract the year from the birth dates in the range A2:A6. Then, we compared years using the condition “YEAR(A2:A6)=1990”. If this condition is met, the function will return 1, otherwise it will return null.

Finally, the "COUNT" function will count the number of non-empty values in the result set.

When you execute the equation in this example, the value will appear as 3, because there are three births in 1990 in the given table.

In conclusion, let's look at best practices when using this equation:

1. Make sure the birth dates are formatted correctly in the table. They must be in recognized Excel date format.

2. Make sure the reference cells are oriented correctly in the equation. The reference cells must point to the correct range containing birth dates.

3. Test the equation on several examples to verify its validity and ensure that you obtain the expected results.

The "Count birthdays by year" equation can be used in different variations with other equations in Excel. For example, you can use it with the TOTAL IF equation to calculate the sum of values associated with birth dates in a specific year.

Here are some scenarios where this equation can be used:

- Calculating the number of births each year to analyze demographic growth trends.

- Track the number of births in a particular year to plan upcoming events and celebrations.

- Analyzing annual information on births within the framework of social or economic research.

Using the “Count birthdays by year” formula, you can get a detailed breakdown of the number of births in a specific year and use it in many different scenarios. Experiment with this equation in Excel and explore creative ways to use it to enhance your understanding and improve your work in data management.


Learn More about the lectures presented by Al-Assaal in the field of Excel, data analysis, and financial analysis


Our Course of Most Used EXCEL Equations

- Learn more than 30 important EXCEL equations that will help you solve 85% of Excel problems and put you on the path to professionalism.

22 views0 comments


Subscribe to our newsletter • Don’t miss out!

Thanks for subscribing!

bottom of page