基于匹配单元格的Google表格计算

时间:2019-07-29 21:10:48

标签: google-sheets google-sheets-formula array-formulas gs-vlookup

我如何比较A和E,如果匹配则将差值放在I中?

enter image description here

1 个答案:

答案 0 :(得分:1)

=ARRAYFORMULA(IF(LEN(I4:I), 
 IFERROR(VLOOKUP(I4:I, E4:F, 2, 0))-
 IFERROR(VLOOKUP(I4:I, A4:B, 2, 0)), ))

0