mickeystanford_alumni
Board Regular
- Joined
- May 11, 2022
- Messages
- 129
- Office Version
- 2021
- Platform
- Windows
- MacOS
Hi everyone,
Hope you are having a good day.
I am facing an issue as I am not a vba expert with my coding when trying to tell excel to do the below:
I have 2 sheets that I want to merge on a weekly basis: Table 1 and Table 2.
The format is simple as both tables have the same headers.
What I want excel to tell is:
1. Copy all rows from table 1 and table 2 into a new sheet.
2. If "column A" from table 1 and table 2 match, (e.g. as below CCCC), then ONLY paste the row from table 2 (as it is more reliable for me).
3. As I will be doing this on a weekly basis, the week after I would just like to paste the new information below my tables 1 and 2, and then update the Matrix accordingly. I believe the coding for the first 2 points will take that into account (just in case).
4. For this 3rd point, an issue I might be facing is that maybe Product FFFF which today it was reported to have sales in Month APR, next week, I receive information than it is not APR but MAY. Then in that case, I would like to keep the MAY and delete the APR. Then, to keep the newest...this might be tricky...if any ideas then that would be a killer.
Thank you so much to everyone who could help me.
TABLE 1 TABLE 2
CONSOLIDATED
Hope you are having a good day.
I am facing an issue as I am not a vba expert with my coding when trying to tell excel to do the below:
I have 2 sheets that I want to merge on a weekly basis: Table 1 and Table 2.
The format is simple as both tables have the same headers.
What I want excel to tell is:
1. Copy all rows from table 1 and table 2 into a new sheet.
2. If "column A" from table 1 and table 2 match, (e.g. as below CCCC), then ONLY paste the row from table 2 (as it is more reliable for me).
3. As I will be doing this on a weekly basis, the week after I would just like to paste the new information below my tables 1 and 2, and then update the Matrix accordingly. I believe the coding for the first 2 points will take that into account (just in case).
4. For this 3rd point, an issue I might be facing is that maybe Product FFFF which today it was reported to have sales in Month APR, next week, I receive information than it is not APR but MAY. Then in that case, I would like to keep the MAY and delete the APR. Then, to keep the newest...this might be tricky...if any ideas then that would be a killer.
Thank you so much to everyone who could help me.
TABLE 1 TABLE 2
PRODUCT | SALES | MONTH | PRODUCT | SALES | MONTH | |
AAAA | 1,000 | APR | FFFF | 50 | APR | |
BBBB | 1,000 | APR | GGGG | 50 | APR | |
CCCC | 1,000 | APR | CCCC | 2,000 | APR | |
DDDD | 1,000 | APR |
CONSOLIDATED
PRODUCT | SALES | MONTH |
AAAA | 1,000 | APR |
BBBB | 1,000 | APR |
CCCC | 2,000 | APR |
FFFF | 50 | APR |
GGGG | 50 | APR |