[英]Fill one column from a list based on the value of another column
I have a sheet where one column has values either "delete"
or empty
. 我有一张工作表,其中一列的值是
"delete"
或empty
。 If it is delete, I need to fill another column randomly from one of these value: {"test1", "test2", "test3"}
. 如果是delete,则需要从以下值之一随机填充另一列:
{"test1", "test2", "test3"}
。 If it is empty, leave empty. 如果为空,则留空。 How can this be done?
如何才能做到这一点?
试试这个:
=IF(A1="delete",CHOOSE(RANDBETWEEN(1,3),"test1","test2","test3"),"")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.