BorisTheCat84
New Member
- Joined
- Apr 30, 2021
- Messages
- 17
- Office Version
- 2019
- Platform
- Windows
Hi Team,
I'm facing the current scenario, I will start by placing the sheet that i'm working in and then bring up what has to be done:
So Mainly a cleanup should be done in Column K:K respecting each UUID (in such not to apply the same condition on cells that belongs to the second UUID) according to the following criteria:
1- Clear Duplicates in the column
2- Clear all cells where "vrqm" or "VMGT0" or "wfm0" is not found in any word inside the cell // (note i have more but i will add them myself)
3- Shift cell up to avoid empty cells
4- Shift cell up in case the cell that matches the UUID is empty
5- Delete Empty Rows
Once that is done we will have to work on the entire table to properly format it, we will mainly need to merge empty cells in each column till they reach the line before the next UUID starts.
Finally, last task will be to merge and center the last row.
The expected output should be as follow:
I would appreciate if you guys could help me with the VBA Code.
Cheers!
Boris
I'm facing the current scenario, I will start by placing the sheet that i'm working in and then bring up what has to be done:
Mr.Excel.xlsx | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | ||||||||||||||
2 | UUID | Whatsover1 | Whatsover2 | Whatsover3 | Whatsover4 | Whatsover5 | Whatsover6 | Whatsover7 | Whatsover8 | Whatsover9 | Adjust and filter | Whatsover10 | ||
3 | 140542 | Whatsover | Whatsover | Whatsover | Whatsover | Whatsover | 5/20/2021 10:00:00 AM | 5/20/2021 7:00:00 PM | Scheduled | Whatsover | 3-Moderate/Limited | |||
4 | Whatsover | Whatsover | Whatsover | Whatsover | Orangevrqm is great for taste | |||||||||
5 | Whatsover | Whatsover | Whatsover | Whatsover | Orangevrqm is really good | |||||||||
6 | Whatsover | Whatsover | Whatsover | Whatsover | Orange has good result | |||||||||
7 | Orange is really good | |||||||||||||
8 | OrangeVMGT0 are everywhere | |||||||||||||
9 | Orange is in my house | |||||||||||||
10 | Blueberry is really good | |||||||||||||
11 | Blueberry is really good.Blueberry is delicous | |||||||||||||
12 | BlueberryVMGT0 is really good.Blueberry is delicous1 | |||||||||||||
13 | Blueberry is really good.Blueberry is delicous2 | |||||||||||||
14 | Blueberry is reallyVMGT0 good.Blueberry is delicous3 | |||||||||||||
15 | Blueberry is really good.Blueberry is delicous4 | |||||||||||||
16 | Blueberry is really good.Blueberry is delicous5 | |||||||||||||
17 | 140555 | Whatsover | 5/20/2021 1:00:00 PM | 5/20/2021 3:00:00 PM | Draft | Whatsover | Orange is really good | 3-Moderate/Limited | ||||||
18 | Orangeiwfm0 has good result | |||||||||||||
19 | Orange are everywhere | |||||||||||||
20 | 140888 | Whatsover | 5/20/2021 1:00:00 PM | 5/20/2021 3:00:00 PM | Draft | Whatsover | Orangeiwfm0 is really good | 3-Moderate/Limited | ||||||
21 | Orange has good result | |||||||||||||
22 | Orangeiwfm0 is really good | |||||||||||||
23 | May 20, 2021 8:35 AM | |||||||||||||
Sheet1 |
So Mainly a cleanup should be done in Column K:K respecting each UUID (in such not to apply the same condition on cells that belongs to the second UUID) according to the following criteria:
1- Clear Duplicates in the column
2- Clear all cells where "vrqm" or "VMGT0" or "wfm0" is not found in any word inside the cell // (note i have more but i will add them myself)
3- Shift cell up to avoid empty cells
4- Shift cell up in case the cell that matches the UUID is empty
5- Delete Empty Rows
Once that is done we will have to work on the entire table to properly format it, we will mainly need to merge empty cells in each column till they reach the line before the next UUID starts.
Finally, last task will be to merge and center the last row.
The expected output should be as follow:
UUID | Whatsover1 | Whatsover2 | Whatsover3 | Whatsover4 | Whatsover5 | Whatsover6 | Whatsover7 | Whatsover8 | Whatsover9 | Adjust and filter | Whatsover10 |
140542 | Whatsover | Whatsover | Whatsover | Whatsover | Whatsover | 5/20/2021 10:00:00 AM | 5/20/2021 10:00:00 AM | Scheduled | Whatsover | Orangevrqm is great for taste | 3-Moderate/Limited |
Whatsover | Whatsover | Whatsover | Whatsover | 5/20/2021 10:00:00 AM | 5/20/2021 10:00:00 AM | Orangevrqm is really good | |||||
Whatsover | Whatsover | Whatsover | Whatsover | Orange is really goodwfm0 | |||||||
Whatsover | Whatsover | Whatsover | Whatsover | OrangeVMGT0 are everywhere | |||||||
BlueberryVMGT0 is really good.Blueberry is delicous | |||||||||||
Blueberry is reallyVMGT0 good.Blueberry is delicous3 | |||||||||||
140555 | Whatsover | Whatsover | Whatsover | Whatsover | Whatsover | 5/20/2021 1:00:00 PM | 5/20/2021 3:00:00 PM | Draft | Whatsover | Orange is reallywfm0 good | 3-Moderate/Limited |
Orangeiwfm0 has good result | |||||||||||
140888 | Whatsover | Whatsover | Whatsover | Whatsover | Whatsover | 5/20/2021 1:00:00 PM | 5/20/2021 3:00:00 PM | Draft | Whatsover | Orangeiwfm0 is really good | 3-Moderate/Limited |
Whatsover | Whatsover | Whatsover | Whatsover | 5/20/2021 1:00:00 PM | 5/20/2021 3:00:00 PM | ||||||
May 20, 2021 8:35 AM | |||||||||||
I would appreciate if you guys could help me with the VBA Code.
Cheers!
Boris