Countif date range

xbrianx

New Member
Joined
Dec 2, 2010
Messages
24
I have a range of dates (partial example below) and want to find out the number of people with a DOB older than 50 years old. What is the formula?

<table border="0" cellpadding="0" cellspacing="0" width="95"><col style="width: 71pt;" width="95"> <tbody><tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt; width: 71pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(79, 129, 189);" width="95" height="17">BIRTHDATE</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">6/1/1977</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">5/2/1986</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">3/9/1950</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">10/25/1983</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">5/30/1970</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">6/15/1981</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">6/15/1961</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">1/20/1984</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">8/27/1963</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">2/24/1950</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">10/24/1980</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">12/14/1980</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">3/1/1981</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">6/23/1987</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">11/16/1963</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">12/19/1944</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">5/18/1950</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">10/24/1948</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">7/2/1949</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">1/15/1965</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">1/15/1965</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">2/4/1963</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">9/21/1958</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">3/16/1964</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">3/2/1957</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color;" align="right" height="17">11/25/1969</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border-width: 0.5pt medium; border-style: solid none; border-color: rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="17">5/16/1955</td> </tr> </tbody></table>
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I have a range of dates (partial example below) and want to find out the number of people with a DOB older than 50 years old. What is the formula?

<TABLE cellSpacing=0 cellPadding=0 width=95 border=0><COLGROUP><COL style="WIDTH: 71pt" width=95><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 700; FONT-SIZE: 10pt; BACKGROUND: rgb(79,129,189); BORDER-LEFT: medium none; WIDTH: 71pt; COLOR: white; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" width=95 height=17>BIRTHDATE</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>6/1/1977</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>5/2/1986</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>3/9/1950</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>10/25/1983</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>5/30/1970</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>6/15/1981</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>6/15/1961</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>1/20/1984</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>8/27/1963</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>2/24/1950</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>10/24/1980</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>12/14/1980</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>3/1/1981</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>6/23/1987</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>11/16/1963</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>12/19/1944</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>5/18/1950</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>10/24/1948</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>7/2/1949</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>1/15/1965</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>1/15/1965</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>2/4/1963</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>9/21/1958</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>3/16/1964</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>3/2/1957</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>11/25/1969</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl65 style="BORDER-RIGHT: medium none; BORDER-TOP: rgb(149,179,215) 0.5pt solid; FONT-WEIGHT: 400; FONT-SIZE: 10pt; BACKGROUND: rgb(220,230,241); BORDER-LEFT: medium none; COLOR: black; BORDER-BOTTOM: 0.5pt solid; FONT-FAMILY: Arial; HEIGHT: 12.75pt; TEXT-DECORATION: none" align=right height=17>5/16/1955</TD></TR></TBODY></TABLE>
Unfortunately, this is not as easy as it would seem to be.

Let's assume your data is the range A2:A28.

Enter this formula in B2 and copy down to B28:

=EDATE(A2,50*12)

Then to get the number of people that are 50 years of age or older...

=COUNTIF(B2:B28,"<="&TODAY())

Note that the EDATE function requires the Analysis ToolPak
add-in be installed if you're using a version of Excel prior to
Excel 2007. If you enter the formula and get a #NAME?
error look in Excel help for the EDATE function. It'll tell you
how to fix the problem.
 
Upvote 0
maybe this
Excel Workbook
DE
2BIRTHDATETodays Date
306/01/197712/07/2011
405/02/198610
503/09/1950
625/10/1983
730/05/1983
815/06/1981
915/06/1961
1020/01/1965
1127/08/1963
1224/02/1924
1324/10/1984
1414/12/1980
1503/01/1981
1623/06/1987
1716/11/1963
1819/12/1944
1918/05/1950
2024/10/1948
2107/02/1949
2215/01/1965
2315/01/1955
2402/04/1963
2521/01/1958
2616/03/1968
2703/02/1957
2825/11/1969
2916/05/1955
Sheet1
 
Upvote 0
Unfortunately, this is not as easy as it would seem to be.

Let's assume your data is the range A2:A28.

Enter this formula in B2 and copy down to B28:

=EDATE(A2,50*12)

Then to get the number of people that are 50 years of age or older...

=COUNTIF(B2:B28,"<="&TODAY())

Note that the EDATE function requires the Analysis ToolPak
add-in be installed if you're using a version of Excel prior to
Excel 2007. If you enter the formula and get a #NAME?
error look in Excel help for the EDATE function. It'll tell you
how to fix the problem.

Not sure what the EDATE function is but that did the trick, thanks!
 
Upvote 0
Not sure what the EDATE function is but that did the trick, thanks!
EDATE stands for end date. What we did was calculate the date of the persons 50th birthday. Then we counted how many of those dates were less than or equal to todays date.

Also check out scottylad2's formula. It works as well without needing a helper column.

I think you'd need to change the operator from > to >=.

=SUMPRODUCT(--(DATEDIF(D3:D29,E$3,"y")>=50))
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top