Forum Discussion

jkfromk's avatar
jkfromk
Copper Contributor
Oct 16, 2023
Solved

Calculate Sports Division based on DOB

I have the following excel formula that works fine however I am trying to get to work in a SharePoint list:   =IF(ISBLANK(B1),"",MAX(IF(MOD(IF(MONTH(B1)>8,0,1)+(YEAR(NOW())-IF(MONTH(NOW())<9,2,1)-Y...
  • luis-ribeiro's avatar
    Oct 16, 2023

    Hi jkfromk 

     

    you can create a calculated column to calculate the age in years of the person in that specific date. using a formula like =DATEDIF(Birthday,DATE(YEAR(TODAY()),9,1),"Y") > You may need to adjust the month/day order depending on your regional settings.

    And then create a new one where you add your conditions to categorize depending on the age using If conditions =IF([AGE-Y]<6,"U6",IF([AGE-Y]<8,"U8","O8")). You need to upate the formula and add the remaining conditions to all scenarios.

    In the view will present the data:

    Regards

     

Resources