简体   繁体   English

Google Sheet 的 IF 语句公式

[英]IF statement formula for Google Sheet

Statement: IF value of 1st Google sheet cell A2 is equal to value of cell A2 of 2nd Google sheet, then copy A3 value of 2nd Google sheet into A3 of 1st Google sheet.语句:如果第一个 Google 表格单元格 A2 的值等于第二个 Google 表格的单元格 A2 的值,则将第二个 Google 表格的 A3 值复制到第一个 Google 表格的 A3 中。

Thanks谢谢

try:尝试:

=IF(A2='2st Google sheet'!A2; '2nd Google sheet'!A3; )

or:或者:

=HLOOKUP(A2; '2nd Google sheet'!A2:A3; 2; 0)

There is several method you can try:您可以尝试几种方法:

=IF(A2=firsSheet!A2,SecondSheet!A3) =IF(A2=firstSheet!A2,SecondSheet!A3)

=HLOOKUP(A2,SecondSheet!$A$2:$A$3,2,0) =HLOOKUP(A2,SecondSheet!$A$2:$A$3,2,0)

=FILTER(SecondSheet!A3,A2=FirstSheet!A2) =过滤器(第二张!A3,A2=第一张!A2)

or you can use index-Match formula或者您可以使用索引匹配公式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM