Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 447

excel - how to pick the whole row using randbetween

$
0
0

I'm trying to pick a random row from my dataset shown below.

I'm wanting to pick out 2 rows from the list at random, with column C being the column that is randomized and column D to match with the value show in column C.

Like this:

Dotty Davies | Kay, Changing Ends 1x03

Lucas Royalty | Young Jonah, 9-1-1 5x17

currently I'm using this formula

   =INDEX(C1:D10,RANDBETWEEN(1,ROWS(C1:C10)),1)   =INDEX(D1:E10,RANDBETWEEN(1,ROWS(D1:D10)),1)

Which is showing this:

Dotty Davies | Redbird, Batwheels 2x10

Lucas Royalty | Self, Sesame Street

Column C appears to be working, however Column D isn't matching up with the original value in the row pulled from Column C

How do I do this correctly using Excel???

Dataset


CD
Kylee LevienTeen Autumn, Outer Range 2x06
Crew Kingston MiskelRedbird, Batwheels 2x10
Lucas RoyaltyYoung Jonah, 9-1-1 5x17
Kiefer O'ReillyAlexi Zinman, Alert: Missing Persons Unit 2x08
Oliver SavellYoung Alan Carr, Changing Ends 1x03
Dotty DaviesKay, Changing Ends 1x03
Nariyah Ann SimpsonBousheeSelf, Sesame Street
Aiden StoxxTayo Abiola, The Good Doctor 7x08
Charlie StoreyYoung Sedona Jones, Sullivan's Crossing 2x02
Hannah BosHannah Devlin, Dead Boy Detectives 1x03

Viewing all articles
Browse latest Browse all 447

Trending Articles



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