I have a massive dataset in excel. I would like to rearrange the rows and columns.
Here's a snippet of the data, what it looks like and what I'd like it to look like under.
Area, Channel, Unit, Year1, Year2, Year3, Year4
bel, dc, share, 25, 36, 56, 45
bel, dc, avm, 23, 45, 65, 47,
bel, dc, ats, 45, 2, 3, 4,
bel, tl, share, 25, 36, 56, 45
bel, tl, avm, 23, 45, 65, 47,
bel, tl, ats, 45, 2, 3, 4,
I'd like to switch Unit and the Years (Year1, Year2, Year3, Year4). To look like this
Area, Chennel, Year, Share, avm, ats
bel, dc, Year1, 25, 23, 45
bel, dc, Year2, 36, 45, 2
bel, dc, Year3, 56, 65, 3
bel, dc, Year4, 45, 47, 4
bel, tl, Year1, 25, 23, 45
bel, tl, Year2, 36, 45, 2
bel, tl, Year3, 56, 65, 3
bel, tl, Year4, 45, 47, 4
Is there a way to achieve this?