I am aware of the SUMIF (and friends) formula. I am wondering if it's possible to extend the logic to other functions (e.g. "maximum age where gender=F") without macros or VBA. I tried things like
MAX(IF(A1:A5="F",B1:B5,""))
but it doesn't seem to work.