I am trying to select one row randomly from among the rows that have a value of “1” in a particular column. Not sure how to represent the sub-array of those rows so I can select one randomly.
I calculated a random index for the elements that are set to 1 like this:
=1+INT(RAND()*COUNTIFS(C2:C177,"=1"))
This works, but I’m not sure how to use INDEX to select only from the rows where the C column value is 1. Please advise. Thank you.