carefreeant88
New Member
- Joined
- Nov 27, 2024
- Messages
- 15
- Office Version
- 2010
- Platform
- Windows
Hi everyone,
After some help again, with regards to a Macro/VBA.
This might not even be achievable (I am very new to this), but hoping someone might be able to assist?
To explain, I have a Sales Workbook which contains multiple tabs. Each tab has new data pasted into it each morning, and so - as such - new columns are being added each day etc.
What I am desperately hoping to achieve, is the below. I have probably over-complicated the explanation here but hopefully that makes sense! In essence, I am needing to do a lookup between 2 different sheets on the workbook; but the exact layout of these sheets changes each morning, with new columns etc being automatically added. In other words, the 'Sales Data' and 'Updated Sales Data' columns aren't fixed, hence I am hoping to put a solution in whereby the workbook can search for the header of these columns, allowing it to therefore adjust accordingly.
After some help again, with regards to a Macro/VBA.
This might not even be achievable (I am very new to this), but hoping someone might be able to assist?
To explain, I have a Sales Workbook which contains multiple tabs. Each tab has new data pasted into it each morning, and so - as such - new columns are being added each day etc.
What I am desperately hoping to achieve, is the below. I have probably over-complicated the explanation here but hopefully that makes sense! In essence, I am needing to do a lookup between 2 different sheets on the workbook; but the exact layout of these sheets changes each morning, with new columns etc being automatically added. In other words, the 'Sales Data' and 'Updated Sales Data' columns aren't fixed, hence I am hoping to put a solution in whereby the workbook can search for the header of these columns, allowing it to therefore adjust accordingly.
- On the sheet called 'Sales Analysis', look for the Column header 'Sales Data 1'.
- If you find that, move down one cell (ie move to Z2 or AA2, or AB2 - ie row '2' of wherever the header 'Sales Data 1' is found
- Do an xLookup (or any other viable solution). Take the product code (this is always in column B on the 'Sales Analysis' sheet, so B2, B3, B4 etc). Look for that product code on the tab called 'Reconciliation'
- If you find that product code on the 'Reconciliation' sheet, then find the column with the header called 'UPDATED VALUE 1' and pull through the numerical value shown in that corresopnding cell, onto the 'Sales Data 1' cell on the 'Sales Analysis' sheet