what exactly is not clear and not effectively posted? I described my problem in plain words, gave sample input and output and I am looking for tips as to how to get from my input to the desired output. I asked for example if I should use an array of arrays where I would put all data, but I can't seem to be able to think how I will print it in the way I want (i.e. the "Excel-sheet" way).