从多个电子表格中有条件导入

时间:2019-09-06 14:32:34

标签: regex google-sheets google-sheets-formula google-sheets-query importrange

有3个电子表格:

  1. https://docs.google.com/spreadsheets/d/1-nezOLfFas0TRFo-7PkP1Xk_DErlnv0sz3ysm8hdPpI/edit?usp=sharing
  2. https://docs.google.com/spreadsheets/d/1eZTDfjVryebvyTsELyNQCBDwoZcTsBvQYV-CdXXO2x4/edit?usp=sharing
  3. https://docs.google.com/spreadsheets/d/1ItIjjQpwR_shcQxoNn96pxPEPxpawLkl6o3n1x28iWs/edit?usp=sharing
  

->我想从1导入数据到2,其中1(通讯!A:C)ColB =成员1,ColC = ToContact / Contacted / ContactedUs / ContactAgain

     
     

->推动数据从1到3,其中1(通信!A:C)ColB =成员2,ColC = ToContact / Contacted / ContactedUs / ContactAgain

请帮助

1 个答案:

答案 0 :(得分:1)

  

从1到2导入数据,其中1(通信!A:C)ColB =成员1,ColC = ToContact / Contacted / ContactedUs / ContactAgain

=QUERY(IMPORTRANGE(
 "1-nezOLfFas0TRFo-7PkP1Xk_DErlnv0sz3ysm8hdPpI", "Communication!A:C"), 
 "where Col2 = 'Member 1' 
    and lower(Col3) matches 'tocontact|contactagain|contactedus'", 0)

0


  

Improt数据从1到3,其中1(通信!A:C)ColB =成员2,ColC = ToContact / Contacted / ContactedUs / ContactAgain

=QUERY(IMPORTRANGE(
 "1-nezOLfFas0TRFo-7PkP1Xk_DErlnv0sz3ysm8hdPpI", "Communication!A:C"), 
 "where Col2 = 'Member 2' 
    and lower(Col3) matches 'tocontact|contactagain|contactedus'", 0)

0