I have a celL-type variable with 1 row and 17 columns that represent years. Each of the elements of the last is another cell-array with 15 columns and about 30 000 rows. These cell arrays, one for each year, are sorted by C2 and to the each firm match different codes (C3), for example:
C1 C2 C3 C4 C51997 AA 123 7863 0,41997 AA 45 3421 0,81997 GP 45 789 1,21997 GP 3 63 0,11997 GP 9124 597 0,91997 NU 123 7863 0,61997 NU 45 789 01997 NU 9124 81 0,81997 ZT 123 7863 0,41997 ZT 3 63 0,3
I am trying to aggregate the information based on C3, so at this example I would obtain:
C3 C1 C2 C4 C5 3 1997 GP 63 0,1 3 1997 ZT 63 0,345 1997 AA 3421 0,845 1997 GP 789 1,245 1997 NU 789 0123 1997 AA 7863 0,4123 1997 NU 7863 0,6123 1997 ZT 7863 0,49124 1997 GP 597 0,99124 1997 NU 81 0,8
Can someone help me? Thank you.
Best Answer