Hi guys,
I am sure its simple for you but as someone thats been thrown in the deep end I cant for the life of me get this to work.

I have 3 divisions that people are in. Adults, Juniors and cubs. Grabbing that data and using it was easy enough using just an age column. I am now trying to grab the data and split it up so I can see the number of Female members vs male members in each division.

I have managed to do the adults and cubs divisions as follows:
Cubs:
=COUNTIFS( M2:M99, "f", L2:L99, "<13" )
=COUNTIFS( M2:M99, "m", L2:L99, "<13" )
Adults:
=COUNTIFS( M2:M99, "f", L2:L99, ">=17" )
=COUNTIFS( M2:M99, "m", L2:L99, ">=17" )

The issue I am having is juniors!
The data I need to get is the number of Junior girls and boys.
I grabbed the overall data with:
=SUMPRODUCT(--(L2:L98<17),--(L2:L98>12))
My question is how do I make a formula that has the following
Less than 17, Greater than 12 and male
Less than 17, Greater than 12 and female

It has me completely stumped due to the fact that I have no idea how.

Thanks in advance for helping out someone that only started learning excel a week ago.