I have a table similar to TABLE A (but much bigger).
I want to convert the table to a format like TABLE B.
Any ideas on how to do this?

Skjermbilde 2024-02-01 kl. 21.17.23.png