Quantcast
Viewing all articles
Browse latest Browse all 11829

How to consolidate rows of data based on a single column?

I have a large amount of data that is currently formatted like this:

18 - 2 - 0 - 0 - 0 - 0 - 0 - 0 - 0

18 - 0 - 4 - 0 - 0 - 0 - 0 - 0 - 0

18 - 0 - 0 - 5 - 0 - 0 - 0 - 0 - 0

19 - 0 - 2 - 0 - 0 - 0 - 0 - 0 - 0

19 - 0 - 0 - 0 - 5 - 0 - 0 - 0 - 0

20 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0

20 - 0 - 0 - 0 - 0 - 0 - 3 - 0 - 0

20 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2

I would like to sort it all based on the value in first column. Currently, each row has only 2 (non-zero) values. The first in column A, and another in only ONE of the other columns. I want to consolidate the rows according to the value in column A. The final product should look like this:

18 - 2 - 4 - 5 - 0 - 0 - 0 - 0 - 0

19 - 0 - 2 - 0 - 5 - 0 - 0 - 0 - 0

20 - 1 - 0 - 0 - 0 - 0 - 3 - 0 - 2

How can I go about doing this?

Thanks in advance


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>