Spreadsheets: Adding additional rows in a pattern