From Splitwise or Tricount. Balances come out the same.
Splitwise: open the group on splitwise.com, then the settings gear → Export as spreadsheet. You get a CSV.
Tricount: in the tricount, open the menu → Export and pick CSV (Excel works if you save it as CSV).