Add formulas to generate grid columns