coolkat999
New Member
- Joined
- Dec 28, 2018
- Messages
- 2
Hi
I need some help writing a formula.
I have a table showing dates of birth for employees. I want to be able to show a "yes" in the table if the employee reaches the minimum age in months under each of the years. So for example, the first employee with a dob of 1/2/1960 should only have Yes showing under the date range 1/1/2021 - 31/12/2021 as they will have met the minimum age requirement of 738 months.
However, I only need the "yes" to show once (ie the earliest possible occasion)
Could someone help me write the formula?
[TABLE="width: 695"]
<colgroup><col width="87" style="width: 65pt;"><col width="173" style="width: 130pt;"><col width="87" span="5" style="width: 65pt;"></colgroup><tbody>[TR]
[TD="width: 87"][/TD]
[TD="class: xl65, width: 173"]From[/TD]
[TD="class: xl69, width: 87, align: right"]01/01/2019[/TD]
[TD="class: xl69, width: 87, align: right"]01/01/2020[/TD]
[TD="class: xl69, width: 87, align: right"]01/01/2021[/TD]
[TD="class: xl69, width: 87, align: right"]01/01/2022[/TD]
[TD="class: xl70, width: 87, align: right"]01/01/2023[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"]To[/TD]
[TD="class: xl67, align: right"]31/12/2019[/TD]
[TD="class: xl67, align: right"]31/12/2020[/TD]
[TD="class: xl67, align: right"]31/12/2021[/TD]
[TD="class: xl67, align: right"]31/12/2022[/TD]
[TD="class: xl68, align: right"]31/12/2023[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"]Required age (months)[/TD]
[TD="class: xl71, align: right"]736[/TD]
[TD="class: xl71, align: right"]737[/TD]
[TD="class: xl71, align: right"]738[/TD]
[TD="class: xl71, align: right"]739[/TD]
[TD="class: xl72, align: right"]740[/TD]
[/TR]
[TR]
[TD]DOB[/TD]
[TD="class: xl73, align: right"]01/02/1960[/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"]Yes[/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl73, align: right"]14/08/1958[/TD]
[TD="class: xl75"]Yes[/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl73, align: right"]09/08/1964[/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[/TR]
</tbody>[/TABLE]
Many thanks
Will
I need some help writing a formula.
I have a table showing dates of birth for employees. I want to be able to show a "yes" in the table if the employee reaches the minimum age in months under each of the years. So for example, the first employee with a dob of 1/2/1960 should only have Yes showing under the date range 1/1/2021 - 31/12/2021 as they will have met the minimum age requirement of 738 months.
However, I only need the "yes" to show once (ie the earliest possible occasion)
Could someone help me write the formula?
[TABLE="width: 695"]
<colgroup><col width="87" style="width: 65pt;"><col width="173" style="width: 130pt;"><col width="87" span="5" style="width: 65pt;"></colgroup><tbody>[TR]
[TD="width: 87"][/TD]
[TD="class: xl65, width: 173"]From[/TD]
[TD="class: xl69, width: 87, align: right"]01/01/2019[/TD]
[TD="class: xl69, width: 87, align: right"]01/01/2020[/TD]
[TD="class: xl69, width: 87, align: right"]01/01/2021[/TD]
[TD="class: xl69, width: 87, align: right"]01/01/2022[/TD]
[TD="class: xl70, width: 87, align: right"]01/01/2023[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"]To[/TD]
[TD="class: xl67, align: right"]31/12/2019[/TD]
[TD="class: xl67, align: right"]31/12/2020[/TD]
[TD="class: xl67, align: right"]31/12/2021[/TD]
[TD="class: xl67, align: right"]31/12/2022[/TD]
[TD="class: xl68, align: right"]31/12/2023[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"]Required age (months)[/TD]
[TD="class: xl71, align: right"]736[/TD]
[TD="class: xl71, align: right"]737[/TD]
[TD="class: xl71, align: right"]738[/TD]
[TD="class: xl71, align: right"]739[/TD]
[TD="class: xl72, align: right"]740[/TD]
[/TR]
[TR]
[TD]DOB[/TD]
[TD="class: xl73, align: right"]01/02/1960[/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"]Yes[/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl73, align: right"]14/08/1958[/TD]
[TD="class: xl75"]Yes[/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl73, align: right"]09/08/1964[/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[TD="class: xl75"] [/TD]
[/TR]
</tbody>[/TABLE]
Many thanks
Will