This is tough to explain.
This first screenshot is a list of people who can authorize purchases. The 2nd column denotes their dollar value limit for any single purchase authorization. "Department" denotes what department in which they're allowed to make those authorizations.
I'm trying to convert this list to a second sheet, which will provide a sequence based on the above list.
Essentially, if someone requests to purchase an item that costs < $10,000 in Department 7090, Person 38 needs to authorize it. However, if someone requests to purchase an item that costs in department 7090, Person 38 first needs to authorize it, followed by Person 32 since the limit is above Person 38.
If the item is greater than Person 32's limit in 7090, then it goes to another tier above them. And so on until we reach a person who can authorize the limit. The sequencing part is built, but I can't figure out an easy way to populate the names from the above list into the sequencing.
Is there a formula that can make this happen?
I'm thinking in the Approver 1 column of the 2nd sheet, the formula would be something like:
=IF(MATCH({Department}, [Department]@row, 0)=1, INDEX({Person}, ...
But of course, I only want it to look at a range where the range of departments from the 1st sheet is limited to the rows that contain the [Department]@row on the 2nd sheet.
I feel like nesting a CONTAINS, HAS, or COLLECT formula in my MATCH is the solution but I can't figure it out.
Let's assume the Department column is cleaned up so that Person 32's 7079-7083 is revised to be 7079, 7080, 7081, 7082.