Formula based solution attached. I've used a helper column in the main sheet with this formula in Q2:
This is copied down beyond your existing data to accommodate extra data being added.
In the subsidiary sheets I have put the sheet name/RM code in R1 and used Q as a helper again with this formula in Q2:
Then I have this formula in A2:
which is copied across to P2, although I've made a slight amendment to P2 to account for the blank cells:
Then the formulae in row 2 can be copied down as far as you need (I've copied to row 20, as can be seen from the asterisks). Then you can just copy that sheet, rename it and put the appropriate RM code in R1. For three of the sheets I have copied the formulae down to row 50 to ensure that all the data is being picked up.
Hope this helps.
Pete
Bookmarks