I have a list with agents results + Rules of priority looking like this
What should happen: In the Agents Results list, the formula should look for the line where all the rules are met. And then return Agent name. Like in the first rule (the Hero's Name is hardcoded).
Agent 1 has Quality Result more than 99% and Productivity Result more than 115%. So he is in the column Hero's Name.
My attempts to solve the task.
- To find agent's Name use INDEX function
- To find the row argument for INDEX use MATCH function
The obstacles I've met
- INDEX function returns only one result. What to do if several rows meet the Rule of Priority?
- I can't use numeric range from/to in MATCH function to find row due to Rule of Priority that includes ranges (like Quality 99+ means all the values from 99.01% to 100%)
- I can't use multiple conditions in MATCH to find the row that meets both Quality and Productivity conditions from Rules of priority
Please, help. I would be grateful for ideas on how this can be solved.