Dear folks,
hope that all is well. I have a frustrating problem with a random selection from a range given that another cell on the same row is text/not blank.
Below table might help to explain the circumstances. What I would like to do is to select a row completely random, constrained on the fact that the dealer can't be blank/must be text. And then I would like to retrieve the values from the stochastically selected row. Hopefully it makes sense what I would like to do.
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Dealer[/TD]
[TD]Pos[/TD]
[TD]Type[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]122[/TD]
[TD]PS[/TD]
[TD]1000[/TD]
[TD]Buy[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]444[/TD]
[TD]DS[/TD]
[TD]1500[/TD]
[TD]Buy[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]321[/TD]
[TD][/TD]
[TD]1000[/TD]
[TD]Sell[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]TS[/TD]
[TD]1000[/TD]
[TD]Buy[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
hope that all is well. I have a frustrating problem with a random selection from a range given that another cell on the same row is text/not blank.
Below table might help to explain the circumstances. What I would like to do is to select a row completely random, constrained on the fact that the dealer can't be blank/must be text. And then I would like to retrieve the values from the stochastically selected row. Hopefully it makes sense what I would like to do.
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Dealer[/TD]
[TD]Pos[/TD]
[TD]Type[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]122[/TD]
[TD]PS[/TD]
[TD]1000[/TD]
[TD]Buy[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]444[/TD]
[TD]DS[/TD]
[TD]1500[/TD]
[TD]Buy[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]321[/TD]
[TD][/TD]
[TD]1000[/TD]
[TD]Sell[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]TS[/TD]
[TD]1000[/TD]
[TD]Buy[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]