Kekda
New Member
- Joined
- Sep 6, 2022
- Messages
- 15
- Office Version
- 2021
- Platform
- Windows
Hello!
I'm trying to create a table of data on several products which I will be updating with a new column to the right on a monthly basis. See link: sample.xlsx
To make this easier I've tried to record a simple macro which pulls data from another sheet and puts the data in position for me to review. The steps go as follows:
1. Right click table, enter new column to right
2. In the new 'F' column I have created I enter my xlookup formula which pulls data across nicely, for month September
3. Change rounding up/down as necessary
Then I stop recording and after deleting the data just entered, I run the macro and it works nicely, entering everything I just recorded. However when I run it again straightaway, it creates a new column but the xlookup formula is still stuck in the 'F' column, and so it just recopies the data for September on top. What I'm after is an xlookup formula that shifts over to the new column I've created so I have static data for each month lined up in columns.
Hope this makes sense.
Thanks in advance
I'm trying to create a table of data on several products which I will be updating with a new column to the right on a monthly basis. See link: sample.xlsx
To make this easier I've tried to record a simple macro which pulls data from another sheet and puts the data in position for me to review. The steps go as follows:
1. Right click table, enter new column to right
2. In the new 'F' column I have created I enter my xlookup formula which pulls data across nicely, for month September
3. Change rounding up/down as necessary
Then I stop recording and after deleting the data just entered, I run the macro and it works nicely, entering everything I just recorded. However when I run it again straightaway, it creates a new column but the xlookup formula is still stuck in the 'F' column, and so it just recopies the data for September on top. What I'm after is an xlookup formula that shifts over to the new column I've created so I have static data for each month lined up in columns.
Hope this makes sense.
Thanks in advance