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??


Group
Year Born
Age
Beavers 1
2013
6
Beavers 2
2012
7
Beavers 3
2011
8
Cubs 1
2010
9
Cubs 2
2009
10
Cubs 3
2008
11
Scouts 1
2007
12
Scouts 2
2006
13
Scouts 3
2005
14
Ventures 1
2004
15
Ventures 2
2003
16
Ventures 3
2002
17
Rovers 1
2001
18
Rovers 2
2000
19
Rovers 3
1999
20

<tbody>
</tbody>

Any help is appreciated.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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.


ChildDOBSection
(your formula)
Formula applied correctly should list
A31 August 2015Wait for next yearWait for next year
B01 September 2015Wait for next yearWait for next year
C31 August 2014Wait for next yearWait for next year
D01 September 2014Wait for next yearWait for next year
E31 August 2013Beavers 1Beavers 1
F01 September 2013Beavers 1Wait for next year
G31 August 2012Beavers 2Beavers 2
H01 September 2012Beavers 2Beavers 1
I31 August 2011Beavers 3Beavers 3
J01 September 2011Beavers 3Beavers 2
K31 August 2010Cubs 1Cubs 1
L01 September 2010Cubs 1Beavers 3
M31 August 2009Cubs 2Cubs 2
N01 September 2009Cubs 2Cubs 1
O31 August 2008Cubs 3Cubs 3
P01 September 2008Cubs 3Cubs 2
Q31 August 2007Scouts 1Scouts 1
R01 September 2007Scouts 1Cubs 3
S31 August 2006Scouts 2Scouts 2
T01 September 2006Scouts 2Scouts 1
U31 August 2005Scouts 3Scouts 3
V01 September 2005Scouts 3Scouts 2
W31 August 2004Ventures 1Ventures 1
X01 September 2004Ventures 1Scouts 3
Y31 August 2003Ventures 2Ventures 2
Z01 September 2003Ventures 2Ventures 1
AA31 August 2002Ventures 3Ventures 3
BB01 September 2002Ventures 3Ventures 2
CC31 August 2001Rovers 1Rovers 1
DD01 September 2001Rovers 1Ventures 3
EE31 August 2000Rovers 2Rovers 2
FF01 September 2000Rovers 2Rovers 1
GG31 August 1999Wait for next yearRovers 3
HH01 September 1999Rovers 3Rovers 2

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 
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

Forum statistics

Threads
1,214,385
Messages
6,119,205
Members
448,874
Latest member
Lancelots

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