Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Combine rows based on Unique ID

I have a table that I would like to combine based on the ID.

 

IDJanFebMarAprMayJunJulAgoSep
193       
1   712   
1      677
21 4      
2    43   
2      87 
35210      
3   166   
3      1062
4 810      
4   158   
4       36

 

To have the following outcome: 

(And calculate the average in the row counting blanks)

IDJanFebMarAprMayJunJulAgoSepAverage
193 7126774.666667
21 4 4387 3
3521016610625.333333
4 810158 364.555556

 

Thanks,