Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Label Type
  2. foo B
  3. bar A
  4. baz _(empty cell)
  5. qux B
  6.  
  7. totalX quantity
  8. totalY quantity
  9.  
  10. Type X Y
  11. A 2 5
  12. B 1 3
  13. C 3 4
  14.  
  15. =sum(iferror(arrayformula(if(B2:B="";"";iferror(if(match(B2:B;'Sheet2'!A2:A4;0);vlookup(B2:B;'Sheet2'!A1:C4;{2}*sign(row(B2:B));false)))))))
  16.  
  17. =sum(iferror(arrayformula(if(B2:B="";"";iferror(if(match(B2:B;'Sheet2'!A2:A4;0);vlookup(B2:B;'Sheet2'!A1:C4;{3}*sign(row(B2:B));false)))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement