Please see this link: https://www.cdc.gov/nccdphp/dnpao/growthcharts/resources/sas.htm
For code and rational of BMI for age percentile assignments.
Then assign the category based on the actual BMI percentile. Your age range is a tad "wide" for precision. I hope you have date of birth and date of measurement to get a matching interval from the CDC charts.
... View more