@sam nod nod I ended up solving the immediate need with remote references indeed...

@algernon@come-from.mad-scientist.club

@sam nod nod

I ended up solving the immediate need with remote references indeed. For what I needed for this particular purpose, I now have two tables:

An incoming table, where the first column is the when, the other columns are the apartment numbers. A second table, expenses is a two-column when & how much table. And the third table is three-row, two column summary table: sum of incoming, sum of expenses, and the diff between the two.

Iow, something like this:

#+TBLNAME: incoming
|    when | apt. 1 | apt. 2 |
|---------+--------+--------|
| 2026-06 | +      | +      |

#+TBLNAME: outgoing
|       when | $$$ |
|------------+-----|
| 2026-06-01 |  45 |

#+TBLNAME: summary
| inc    | 50 |
| out    | 45 |
| budget |  5 |
#+TBLFM: @1$2='(* 25 (length (org-lookup-all "+" '(remote(incoming,@2$2..@>$3=)) nil))) :: @2$2=vsum(remote(outgoing, @2$2..@>$2=)) :: @3$2=@1$2-@2$2

With this setup, whenever there's a new expense, I org-table-insert-row, add the date & amount. Whenever I need to ask the others to pay, I'll insert a row to the incoming table, record the date, and add a + whenever an appartment paid, and everything gets updated on save.

I can also trivially copy & paste the table to the rest of the house.