Axlsx gem is an excellent tool to build Excel worksheets. The sheets are created row-by-row and styles are immediately added to each cell when a row is created. This gem allows to follow an alternative route: fill out a spreadsheet with data and apply styles later. Styles can be added to individual cells as well as to ranges of cells. As a bonus, this gem also simplifies drawing borders around groups of cells.