Excel: if cell 1 contains X or Y or Z, then cell 2 should equal W

前端 未结 2 412
天命终不由人
天命终不由人 2021-01-07 11:46

As from the title, I need Excel to auto-populate the B row cells based on the corresponding A row cells content.

So if cell A1 contains X or Y or Z, th

2条回答
  •  清歌不尽
    2021-01-07 12:11

    If the comparative values are to be hard-coded into the formula, it can be tightened up like this.

    =IF(OR(A1={"X","Y","Z"}), "W", IF(OR(A1={"G","H","I"}), "K", ""))
    

提交回复
热议问题