Ok. Here is some further information and a VBA solution
1. The tables in columns X:AD need to be reverted to ranges otherwise this will not work
2. The data in Row 25 needs to be moved somewhere other than beneath columns X:AD or this will not work
Here is your VBA code
Standard Module
How to install your new code
Copy the Excel VBA code
Select the workbook in which you want to store the Excel VBA code
Press Alt+F11 to open the Visual Basic Editor
Choose Insert > Module
Edit > Paste the macro into the module that appeared
Close the VBEditor
Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
To run the Excel VBA code:
Press Alt-F8 to open the macro list
Select a macro in the list
Click the Run button
Bookmarks