There is a function sumif() that is used for do sum() under condition

Nevertheless, if I want to do max() under condition, how can I do?

There isn't a function maxif().