Skip to content

Instantly share code, notes, and snippets.

@justinhennessy
Last active September 18, 2019 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinhennessy/aade81957be70c7acd56649b8ad055e9 to your computer and use it in GitHub Desktop.
Save justinhennessy/aade81957be70c7acd56649b8ad055e9 to your computer and use it in GitHub Desktop.
=sum(
indirect(
"'sheet1'!B"&MATCH(query('sheet1'!A:A,"select A where A = '"&A2&"'"),'sheet1'!A:A,0)
):
indirect(
"'sheet1'!D"&MATCH(query('sheet1'!A:A,"select A where A = '"&A2&"'"),'sheet1'!A:A,0)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment