根据其他列的值更新列(Update a column based on the value of other column)

编程入门 行业动态 更新时间:2024-10-12 01:32:10
根据其他列的值更新列(Update a column based on the value of other column)

我的Excel表格如下所示。

如果复杂度难度较大,我希望C列的值为2。 如果低于0.5,如果中等则为0.75。

请让我知道是否有任何公式可用,或者我必须为此写一个马可。

My excel sheet looks like below.

I would like place value of 2 in column C if complexity level is Difficult. If low then 0.5 and if medium then 0.75.

Please let me know if there is any formula available or I have to write a marco for the same.

最满意答案

在C2中:

=IFERROR(INDEX({2,0.75,0.5},MATCH(B2,{"Difficult","Medium","Low"},0)),"Not a Choice")

IN C2:

=IFERROR(INDEX({2,0.75,0.5},MATCH(B2,{"Difficult","Medium","Low"},0)),"Not a Choice")

更多推荐

本文发布于:2023-08-05 04:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1428156.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Update   column   based

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!