Adjust memory index column header according to number of data columns