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

Google Sheet join and aggregate

$
0
0

Given table A:

idvalue1value2
10.330.25
20.40.7

and table B:

dateidquantity
01/0810.25
01/0820.45
02/0811
04/0820.7

I would like to create a table which joins A and B by id and sums all value1 and value2 for all dates like this:

datevalue1value2
01/080.25 * 0.33 + 0.4 * 0.450.25 * 0.25 + 0.45 * 0.7
02/080.330.25
03/0800
04/080.7 * 0.40.7 * 0.7

How can I achieve this?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



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