XLSX: expand formulas to allow new manual columns; fix off-by-one in footer