从无重复的多个列中选择随机n次
我现在知道如何从一个列中选择一个随机值,使用= index与randbetex
。 | , | 之间 | 等 | 过滤 | 匹配 | , 人1 | 选择的人2 | ||
---|---|---|---|---|---|---|---|---|---|
割草 | 泰勒· | 罗斯· | 保罗 | ·塔米· | 丽莎 | x | x | ||
cook晚餐 | 萨曼莎 | ·威廉· | 彼得·米娅· | 蒂姆·x x x | x | x x | x |
有一个公式可以从可用的1中选择两个随机的人 - 可用5来完成这项任务?我希望第一个随机选择的人出现在“选择的人1”列中,第二个人出现在“选择的人2”中。他们不能是同一个人,因此,如果可能的话,我想滤除重复项。
I now know how to choose a random value from one column, by using =INDEX with RANDBETWEEN, MATCH, FILTER, etc. Now I have the following sheet:
Task | Available person 1 | Available person 2 | Available person 3 | Available person 4 | Available person 5 | Chosen person 1 | Chosen person 2 | ||
---|---|---|---|---|---|---|---|---|---|
Mow the grass | Tyler | Ross | Paul | Tammy | Lisa | x | x | ||
Cook dinner | Samantha | William | Peter | Mia | Tim | x | x |
Is there a formula to choose two random persons from available 1 - available 5 to do the task? I want the first random chosen person to appear in the column "Chosen person 1" and the second in "Chosen person 2". They cannot be the same person, so if it's possible I would like to filter out duplicates.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试:
try: