Hi all, I'd greatly appreciate some thoughts on ways to approach solving the following problem.
I've got a set of spreadsheets that record pupil assessments, and I've run across a problem when I add a new pupil half way through the school year, related to having the names sorted alphabetically.
The data entry sheets (where the assessment scores are entered) have the pupils names along the top row. The names are transposed there using an array formula referencing a named range which is a column in 'Table 2'. 'Table 2' is generated by a power query from Table 1. - See 'BEFORE' in the picture below and simplified example attached:
The problem is, if I add a new pupil to Table 1 (and refresh the query/Table 2), the scores and names no longer align, because while the new pupil name is automatically been inserted in to the names row in the right place, the columns underneath aren't automatically shifted over.
Can anybody think of a way of inserting a column of blank cells under the newly added name if a new pupil is added?
(I know I could do it manually, but I have 144 sets of scores like this that might need updating!)
Many thanks
I've got a set of spreadsheets that record pupil assessments, and I've run across a problem when I add a new pupil half way through the school year, related to having the names sorted alphabetically.
The data entry sheets (where the assessment scores are entered) have the pupils names along the top row. The names are transposed there using an array formula referencing a named range which is a column in 'Table 2'. 'Table 2' is generated by a power query from Table 1. - See 'BEFORE' in the picture below and simplified example attached:

The problem is, if I add a new pupil to Table 1 (and refresh the query/Table 2), the scores and names no longer align, because while the new pupil name is automatically been inserted in to the names row in the right place, the columns underneath aren't automatically shifted over.
Can anybody think of a way of inserting a column of blank cells under the newly added name if a new pupil is added?
(I know I could do it manually, but I have 144 sets of scores like this that might need updating!)
Many thanks