carefreeant88
New Member
- Joined
- Nov 27, 2024
- Messages
- 20
- Office Version
- 2010
- Platform
- Windows
Morning,
Apologies, have another one I need help with!
I have a sheet that updates everyday; where the columns and their positions change each day.
I need to find a way of incorporating a Macro that ensure that the Total is calculated everyday, even though extra columns may have been added (or removed) from the tab.
So basically I need it to effectively do the following:
Apologies, have another one I need help with!
I have a sheet that updates everyday; where the columns and their positions change each day.
I need to find a way of incorporating a Macro that ensure that the Total is calculated everyday, even though extra columns may have been added (or removed) from the tab.
So basically I need it to effectively do the following:
- Look for the worksheet called BPS
- If found, then look for the column header 'Total'
- If found, then calculate the corresponding values of any columns BETWEEN the column header called 'Oversell' and the column header called 'Total'
Apologies if I haven't explained that clearly. But hopefully the screenshot will explain what I mean better. On Day 1 (top table) the 'Totals' column would need to calculate between Columns 'B' and 'M. On Day 2 (middle table) the 'Totals' column would need to calculate between 'B' and 'Q'. On day 3 (bottom table), the 'Totals' column would need to calculate between Columns 'B' and 'J'. The number of columns on the data will change each day (thus the 'Totals' column will also move), hence why I think the way to achieve this would be for the Macro to 'search' for the column called 'Total', and the add the total sum of the corresponding columns etc.