You current setup makes it very difficult to make any calculations, and nearly impossible automatic expansion of calculations when new data or new windows are added.
In attachment is an example, how I would make it (when I correctly assumed what you want to do).
(Columns with beige background may be hidden.)
|