I am using LibreOffice Calc and I have some data that looks like this:
I would like to rearrange the data on a new sheet so that it looks like this:
There is a lot of data (many years and many countries) so I hope there is a way to automate the translation.
JohnSUN is correct that you can achieve what you want using Pivot Table function. Here are the steps on how you can do this:
By default it should create the table in a new sheet.
If for some reason pivot table is showing blank data, save the file (as ODS), close it, then open and try again.