Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Google Sheets I need the column sums() of a table produced by a query()

$
0
0

I have a query() that outputs a table with two columns (A and B) of numbers. Pictured in IMAGE #1.

=QUERY(myData!A:G, "Select E,F WHERE D ='Books'")

IMAGE #1

enter image description here

But I need a function that outputs only three values. Pictured in the green row of IMAGE #2. The number of rows is variable.

  1. Sum of column A
  2. Sum of column B
  3. Sum of column C (column C is the product of A*B)

Thanks for any help you can provide!

IMAGE #2

enter image description here


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>