Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Formula to randomly select the name associated with lowest value from data set & a random from the lowest options if tied with drop-down select filter

$
0
0

I have a data set on Google Sheets where for example,

NameScoresRegionState
FirstRowRowRow
SecondRowRowRow

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.

NameScoresRegionState
Adam2EastNew York
Bill3WestCalifornia
Charlie4EastNew York
David4WestSeattle
Steve2WestCalifornia

Ex Scenario 2 - The formula should select a random name from Adam and Charlie when the drop-downs selected are East and New York.

NameScoresRegionState
Adam2EastNew York
Bill3WestCalifornia
Charlie2EastNew York
David2WestSeattle
Steve2WestCalifornia

Ex Scenario 3 - The formula should select a random name from Bill and Steve when the drop-downs selected are West and California

NameScoresRegionState
Adam4EastNew York
Bill2WestCalifornia
Charlie2EastNew York
David5WestSeattle
Steve2WestCalifornia

Any help would be appreciated!


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>