Sorting out age ranges with birth dates in cells.

mistyh6286

New Member
Joined
Jul 21, 2017
Messages
1
I have a spreadsheet that I need to pull out the people who are in between the ages of 50-75. All I have listed are birth dates in the rows, how do I achieve this?

TIA
 

Some videos you may like

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
3,926
Office Version
2010
Platform
Windows
<b>Excel 2010</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">Effective date</td><td style="text-align: right;;">21-Jul-17</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">Name</td><td style=";">DOB</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;"></td><td style="text-align: right;;">21-Jul-67</td><td style="text-align: right;;">TRUE</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;"></td><td style="text-align: right;;">15-Feb-70</td><td style="text-align: right;;">FALSE</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;"></td><td style="text-align: right;;">5-May-55</td><td style="text-align: right;;">TRUE</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:1.2em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">5a</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B3</th><td style="text-align:left">=-365.25*50+B1</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">C3</th><td style="text-align:left">=DATEDIF(<font color="Blue">B3,$B$1,"y"</font>)>=50</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">C4</th><td style="text-align:left">=DATEDIF(<font color="Blue">B4,$B$1,"y"</font>)>=50</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">C5</th><td style="text-align:left">=DATEDIF(<font color="Blue">B5,$B$1,"y"</font>)>=50</td></tr></tbody></table></td></tr></table><br />

You could then filter the list.
 
Last edited:

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
3,926
Office Version
2010
Platform
Windows
I didn't post the formula that tested both lower and upper date; see below.

=AND(DATEDIF(B3,$B$1,"y")>=50,DATEDIF(B3,$B$1,"y")<=75)
 

Watch MrExcel Video

Forum statistics

Threads
1,095,360
Messages
5,444,018
Members
405,260
Latest member
Khauff

This Week's Hot Topics

Top