in reply to 2d Array - making an array for the column then adding the values

Whittling down code to the bare minimum needed to show a problem is an essential part of the art of programming. Learning this art will save you oodles of time debugging time, teach you a great deal about how code and data interconnect, and make it much easier for you to get help on problems that really have you stuck.

There are no cookbook recipes but a few guidelines may help you in the future whether you are posting a problem here or just trying to find out a solution on your own:

Best, beth