A possible solution would be to add three more columns to the table, 'month', 'orientation' and 'row', after reading it from the file.
Then you should set these columns on all records of that given table to the loop indices.
Next, in each iteration of the loops you append the table to a larger table Then this table can be written to excel using writetable