Auto selected based on DOB

admiralg

New Member
Joined
Jan 13, 2012
Messages
20
Hi There,
I’m trying to write a formula (badly) to automatically show me what Scouts group, kids should be in based on their date of birth.

Here’s the tricky part…

So kids start in Beavers aged 6, if their birthday is before 1st of Sep. If they are born after this date, they must wait a year to join. This follows through as the kids move through the different groups.

I’d like to put in a date of birth, then in the cell beside it, show the group they should currently be in based on their DOB. I'd like to use this formula for moving forward, so I guess this should reference todays date somewhere??


[TABLE="width: 274"]
<tbody>[TR]
[TD]Group
[/TD]
[TD]Year Born
[/TD]
[TD]Age
[/TD]
[/TR]
[TR]
[TD]Beavers 1
[/TD]
[TD]2013
[/TD]
[TD]6
[/TD]
[/TR]
[TR]
[TD]Beavers 2
[/TD]
[TD]2012
[/TD]
[TD]7
[/TD]
[/TR]
[TR]
[TD]Beavers 3
[/TD]
[TD]2011
[/TD]
[TD]8
[/TD]
[/TR]
[TR]
[TD]Cubs 1
[/TD]
[TD]2010
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]Cubs 2
[/TD]
[TD]2009
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]Cubs 3
[/TD]
[TD]2008
[/TD]
[TD]11
[/TD]
[/TR]
[TR]
[TD]Scouts 1
[/TD]
[TD]2007
[/TD]
[TD]12
[/TD]
[/TR]
[TR]
[TD]Scouts 2
[/TD]
[TD]2006
[/TD]
[TD]13
[/TD]
[/TR]
[TR]
[TD]Scouts 3
[/TD]
[TD]2005
[/TD]
[TD]14
[/TD]
[/TR]
[TR]
[TD]Ventures 1
[/TD]
[TD]2004
[/TD]
[TD]15
[/TD]
[/TR]
[TR]
[TD]Ventures 2
[/TD]
[TD]2003
[/TD]
[TD]16
[/TD]
[/TR]
[TR]
[TD]Ventures 3
[/TD]
[TD]2002
[/TD]
[TD]17
[/TD]
[/TR]
[TR]
[TD]Rovers 1
[/TD]
[TD]2001
[/TD]
[TD]18
[/TD]
[/TR]
[TR]
[TD]Rovers 2
[/TD]
[TD]2000
[/TD]
[TD]19
[/TD]
[/TR]
[TR]
[TD]Rovers 3
[/TD]
[TD]1999
[/TD]
[TD]20
[/TD]
[/TR]
</tbody>[/TABLE]

Any help is appreciated.
 
Hi, Below is 1 option:


Book1
ABCDEF
1GroupYear BornAgeDOB
2Beavers 12013610/1/2011Beavers 2
3Beavers 220127
4Beavers 320118
5Cubs 120109
6Cubs 2200910
7Cubs 3200811
8Scouts 1200712
9Scouts 2200613
10Scouts 3200514
11Ventures 1200415
12Ventures 2200316
13Ventures 3200217
14Rovers 1200118
15Rovers 2200019
16Rovers 3199920
Sheet3
Cell Formulas
RangeFormula
F2=IFERROR(INDEX($A$2:$A$16,MATCH(IF(DATE(YEAR(E2),MONTH(E2),1)>DATE(YEAR(E2),9,1),ROUNDDOWN((TODAY()-E2)/365,0),ROUNDDOWN((TODAY()-E2)/365,0)+1),$C$2:$C$16,0)),"Wait for next year")
 
Upvote 0
Hi Aryatech,
Thank you for your help on this so far. I've tried applying your formula. Its nearly there but doesn't seem to get the change in section if after September the 1st is picked.
Below is an example of what I am trying to explain.
If a kid is looking to join and was born before the end of August in 2013, they would be old enough to join in Beavers first year (Beavers 1). If however their DOB was after this date, then they would have to wait until the following year to join.
This pattern follows as the kids move through the different sections.

Really hoping you can help me out here.


[TABLE="width: 676"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Child[/TD]
[TD]DOB[/TD]
[TD]Section
(your formula)[/TD]
[TD]Formula applied correctly should list[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]31 August 2015[/TD]
[TD]Wait for next year[/TD]
[TD]Wait for next year[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]01 September 2015[/TD]
[TD]Wait for next year[/TD]
[TD]Wait for next year[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]31 August 2014[/TD]
[TD]Wait for next year[/TD]
[TD]Wait for next year[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]01 September 2014[/TD]
[TD]Wait for next year[/TD]
[TD]Wait for next year[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]31 August 2013[/TD]
[TD]Beavers 1[/TD]
[TD]Beavers 1[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]01 September 2013[/TD]
[TD]Beavers 1[/TD]
[TD]Wait for next year[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]31 August 2012[/TD]
[TD]Beavers 2[/TD]
[TD]Beavers 2[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD]01 September 2012[/TD]
[TD]Beavers 2[/TD]
[TD]Beavers 1[/TD]
[/TR]
[TR]
[TD]I[/TD]
[TD]31 August 2011[/TD]
[TD]Beavers 3[/TD]
[TD]Beavers 3[/TD]
[/TR]
[TR]
[TD]J[/TD]
[TD]01 September 2011[/TD]
[TD]Beavers 3[/TD]
[TD]Beavers 2[/TD]
[/TR]
[TR]
[TD]K[/TD]
[TD]31 August 2010[/TD]
[TD]Cubs 1[/TD]
[TD]Cubs 1[/TD]
[/TR]
[TR]
[TD]L[/TD]
[TD]01 September 2010[/TD]
[TD]Cubs 1[/TD]
[TD]Beavers 3[/TD]
[/TR]
[TR]
[TD]M[/TD]
[TD]31 August 2009[/TD]
[TD]Cubs 2[/TD]
[TD]Cubs 2[/TD]
[/TR]
[TR]
[TD]N[/TD]
[TD]01 September 2009[/TD]
[TD]Cubs 2[/TD]
[TD]Cubs 1[/TD]
[/TR]
[TR]
[TD]O[/TD]
[TD]31 August 2008[/TD]
[TD]Cubs 3[/TD]
[TD]Cubs 3[/TD]
[/TR]
[TR]
[TD]P[/TD]
[TD]01 September 2008[/TD]
[TD]Cubs 3[/TD]
[TD]Cubs 2[/TD]
[/TR]
[TR]
[TD]Q[/TD]
[TD]31 August 2007[/TD]
[TD]Scouts 1[/TD]
[TD]Scouts 1[/TD]
[/TR]
[TR]
[TD]R[/TD]
[TD]01 September 2007[/TD]
[TD]Scouts 1[/TD]
[TD]Cubs 3[/TD]
[/TR]
[TR]
[TD]S[/TD]
[TD]31 August 2006[/TD]
[TD]Scouts 2[/TD]
[TD]Scouts 2[/TD]
[/TR]
[TR]
[TD]T[/TD]
[TD]01 September 2006[/TD]
[TD]Scouts 2[/TD]
[TD]Scouts 1[/TD]
[/TR]
[TR]
[TD]U[/TD]
[TD]31 August 2005[/TD]
[TD]Scouts 3[/TD]
[TD]Scouts 3[/TD]
[/TR]
[TR]
[TD]V[/TD]
[TD]01 September 2005[/TD]
[TD]Scouts 3[/TD]
[TD]Scouts 2[/TD]
[/TR]
[TR]
[TD]W[/TD]
[TD]31 August 2004[/TD]
[TD]Ventures 1[/TD]
[TD]Ventures 1[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]01 September 2004[/TD]
[TD]Ventures 1[/TD]
[TD]Scouts 3[/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]31 August 2003[/TD]
[TD]Ventures 2[/TD]
[TD]Ventures 2[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD]01 September 2003[/TD]
[TD]Ventures 2[/TD]
[TD]Ventures 1[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]31 August 2002[/TD]
[TD]Ventures 3[/TD]
[TD]Ventures 3[/TD]
[/TR]
[TR]
[TD]BB[/TD]
[TD]01 September 2002[/TD]
[TD]Ventures 3[/TD]
[TD]Ventures 2[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD]31 August 2001[/TD]
[TD]Rovers 1[/TD]
[TD]Rovers 1[/TD]
[/TR]
[TR]
[TD]DD[/TD]
[TD]01 September 2001[/TD]
[TD]Rovers 1[/TD]
[TD]Ventures 3[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]31 August 2000[/TD]
[TD]Rovers 2[/TD]
[TD]Rovers 2[/TD]
[/TR]
[TR]
[TD]FF[/TD]
[TD]01 September 2000[/TD]
[TD]Rovers 2[/TD]
[TD]Rovers 1[/TD]
[/TR]
[TR]
[TD]GG[/TD]
[TD]31 August 1999[/TD]
[TD]Wait for next year[/TD]
[TD]Rovers 3[/TD]
[/TR]
[TR]
[TD]HH[/TD]
[TD]01 September 1999[/TD]
[TD]Rovers 3[/TD]
[TD]Rovers 2[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Changed a formula a little different, see if this works:

=IFERROR(INDEX($A$2:$A$16,MATCH(IF(DATE(YEAR(E2),MONTH(E2),1) >= DATE(YEAR(E2),9,1),ROUNDDOWN((TODAY()-E2)/365,0),ROUNDDOWN((TODAY()-E2)/365,0)+1),$C$2:$C$16,0)),"Wait for next year")
 
Last edited:
Upvote 0

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