support formatting multiple rows with different number of cells