如果单元格包含“拾取”,如何在另一个工作表中返回列值

时间:2018-06-04 09:07:55

标签: excel

in Sheet 1

E栏F栏G栏

kk          A           Pick up
kk          B           Pick down
kl          C           Pick up

如果G列=拿起& E列以“kk”开头 然后在Sheet 4显示第1页的E列,为每个单元格添加“ok”字样

否则如果  G列=取下& E列以“kk”开头 然后在Sheet 4显示第1页的F列为每个cel添加单词“ok”

否则,如果列E = kl 在Sheet 4中显示第1页的E列

  

期望的结果

Column E in Sheet 4

okkk
okB
kl

任何想法都会很棒,谢谢

修改

  

第4页

enter image description here

  

第1页

enter image description here

我的修正公式

=IF(AND(Sheet1!G1="Pick up",LEFT(Sheet1!E1,2)="HK"),"Ok" & Sheet1!F1,IF(AND(Sheet1!G1="delivery",LEFT(Sheet1!E1,2)="HK"),"HK" & Sheet1!F1,IF(Sheet1!E1="Macau",

1 个答案:

答案 0 :(得分:1)

Sheet4

中使用此公式
=IF(Sheet1!G1="Pick Up","Ok" &Sheet1!E1,"Ok"&Sheet1!F1)
  

修改

然后使用以下公式

=IF(AND(Sheet1!G1="Pick Up",LEFT(Sheet1!E1,2)="kk"),"Ok" & Sheet1!E1,IF(AND(Sheet1!G1="Pick Down",LEFT(Sheet1!E1,2)="kk"),"Ok" & Sheet1!F1,IF(Sheet1!E1="Kl",Sheet1!E1,"")))