I have a data set on Google Sheets where for example,
| Name | Scores | Region | State |
|---|---|---|---|
| First | Row | Row | Row |
| Second | Row | Row | Row |
On another tab, I have a drop-down list to select a specific Region and State. I am looking for a formula that apply these drop-down filters and select the name associated with the lowest score and if there are multiple names that are tied, randomly select from those names.
Ex Scenario 1 - The formula should randomly select Adam when the drop-downs selected are East and New York.
| Name | Scores | Region | State |
|---|---|---|---|
| Adam | 2 | East | New York |
| Bill | 3 | West | California |
| Charlie | 4 | East | New York |
| David | 4 | West | Seattle |
| Steve | 2 | West | California |
Ex Scenario 2 - The formula should select a random name from Adam and Charlie when the drop-downs selected are East and New York.
| Name | Scores | Region | State |
|---|---|---|---|
| Adam | 2 | East | New York |
| Bill | 3 | West | California |
| Charlie | 2 | East | New York |
| David | 2 | West | Seattle |
| Steve | 2 | West | California |
Ex Scenario 3 - The formula should select a random name from Bill and Steve when the drop-downs selected are West and California
| Name | Scores | Region | State |
|---|---|---|---|
| Adam | 4 | East | New York |
| Bill | 2 | West | California |
| Charlie | 2 | East | New York |
| David | 5 | West | Seattle |
| Steve | 2 | West | California |
Any help would be appreciated!