Duplicate entries using INDEX()

Hi Team,
how can i avoid duplicate entries when Iโ€™m using INDEX()?
ex:" INDEX(numbers[num],RANDBETWEEN(1,5))"

thks

0 5 217
5 REPLIES 5

Steve
Platinum 4
Platinum 4

Your example in no way supports you question. Please clarify what you want to do.

Hi Steve,
I attached APP: โ€œhttps://www.appsheet.com/start/c9ff372b-29f1-4302-9990-d8bb482c686bโ€

I have 5 players and five numbers and every time that Iโ€™m starting the app I want to assign a diferent number to each player (no duplicates).

thks

I donโ€™t have access to your app, so i canโ€™t look at it.

Please post a screenshot of the column list for the numbers table.


2X_e_e0a3d0279de4b5b370881d9547eddc93553fbddf.png

Hi Steve,
i attached 2 images.
itโ€™s enough for you?
thks

Steve
Platinum 4
Platinum 4

Try:

INDEX(
  (numbers[num] - players[num]),
  RANDBETWEEN(1, COUNT(numbers[num] - players[num]))
)
Top Labels in this Space