Spreadsheet rows to formatted output

How would a person go about formatting output from the rows of a spreadsheet in the form of:
A1 B1
C1
D1
E1
F1

A2 B2
C2
D2
E2
F2

for some undetermined number of rows.