简体   繁体   English

根据另一列的值填充列表中的一列

[英]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.

相关问题 Excel 公式根据另一列中的值填充一列 - Excel formula to fill a column based on value in another column 过滤一列中的空白并填充另一列中的值 - Filter for blanks on one column and fill for a value in another column 如何根据 Excel 中的一列和另一列中的第 n 个值的条件查找列中的值? - How to find value in column based on criteria from one column and nth value in another column in Excel? 根据另一张纸上的订单号从一张纸上查找列值 - Find column value from one sheet based on the order # on another sheet VBA:用另一列的重复值列表填充一列 - VBA: fill a column with a repeating list of values from another column 根据另一列中的单元格值验证一列中的单元格值 - Validate cell value in one column based on cell value in another column 根据另一列中的值求和一列中的值-Excel 2013 - Sum the value in one column based on the value in another column - excel 2013 Excel 根据另一列中的值筛选列表 - Excel filter a list based on a value in another column 如何基于其对应的值将每个值从一列获取到另一列 - How to get every value from one column to another column based on its corresponding value 根据另一列的选择,从一列的下拉列表中完成一项 - Completing an entry from a drop down list in one column, based on the choice from another column
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM