I used some of Excel Functions and Formula
Maximize
Minimize
If
Count
Average
To collect agents salaries