Date formula Request

m_geragh

New Member
Joined
Jan 14, 2014
Messages
11
Hi all

I am happy to give formula's a go, but I am out of my depth with this one.

In a nutshell I would like a formula that would tell me, if somebody based on their date of birth is statutory school age.

The requirements for statutory school are detailed below. If anybody is up for the challenge it would be greatly appreciated!!

Thanks in advance

---------------------
What does Compulsory school age mean?

The term "Compulsory School Age" is confusing. It does not actually mean that school is compulsory during the qualifying period. It does, however, mean that the parent or guardian of a child of "compulsory school age" has a duty to provide an education (subject to section 7 of the 1996 Education Act) during that period.

When does it start?

Your child is of "compulsory school age" on the 1st January, 1st April or 1st September following their 5th birthday.

Children becoming 5 years old between 1st January and 31st March are of compulsory school age at the beginning of the term after 1st April.

Children becoming 5 years old between 1st April and 31st August are of compulsory school age from the beginning of the term after 1st September.

Children becoming 5 years old between 1st September and 31st December are of compulsory school age from the beginning of the term after 1st January.

When does it end?

In practice a person ceases to be of "compulsory school age" on the last Friday of June during the year that s/he becomes 16 provided that the child's birthday is before the beginning of the next school year.

If his/her 16th birthday is after the start of the new school year, s/he is still of "compulsory school age" until the end of the last Friday in June of the following year. Exceptions cannot be made for any reasons.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I am not sure how your data is structured or how you want to show the results.

You may be able to build a solution with part of the information provided below.
Two different approaches are shown.


Excel 2010
ABCDEFGH
11-Jan-171-Apr-171-Sep-171-Jan-18Compulsory school Age
2DOBDate 5 yrs31-Dec-1631-Mar-1731-Aug-1731-Dec-17
31-Jan-1245551-Apr-17
41-Dec-1244451-Jan-18
5
61-Jan-121-Jan-17FALSETRUEFALSEFALSE1-Apr-17
71-Dec-121-Dec-17FALSEFALSEFALSETRUE1-Jan-18
8
4e
Cell Formulas
RangeFormula
C3=DATEDIF($A$3,C2,"y")
C6=B6<=$C$2
D3=DATEDIF($A$3,D2,"y")
D6=AND($B6>=C$2,$B6<=D$2)
E3=DATEDIF($A$3,E2,"y")
E6=AND($B6>D$2,$B6<=E$2)
F3=DATEDIF($A$3,F2,"y")
F6=AND($B6>E$2,$B6<=F$2)
H3=INDEX($C$1:$F$1,,MATCH(5,C3:F3,0))
H6=INDEX($C$1:$F$1,,MATCH(TRUE,C6:F6,0))
B6=DATE(YEAR(A6)+5,MONTH(A6),DAY(A6))
B7=DATE(YEAR(A7)+5,MONTH(A7),DAY(A7))
 
Last edited:
Upvote 0
or if you just require the relevant date based on DOB.
Build a lookup table or include the information within the lookup formula.


Excel 2010
AB
91-Jan-121-Apr-17
4e
Cell Formulas
RangeFormula
B9=LOOKUP(A9,$L$3:$M$20)
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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