GreyFox8991
New Member
- Joined
- Jul 20, 2022
- Messages
- 23
- Office Version
- 2016
- Platform
- Windows
Greetings Excel Community,
Below I have some Test data where the Unique ID has a relationship with the "Value" column. For each UniqueID, there must be a corresponding row from the "value" Column. What I am trying to accomplish is a formula or VBA Script that will split the UniqueID into its respective column followed by the value in the "value" column related to the ID. For example Unique ID 123 should have five values with 101,102,103,104,105 in its respective row/column. A caveat to this would be if the VBA Script/Formula take into consideration date formatting if possible. Any insight would be greatly appreciated... I am including some sample data for context. Please review the "End Results" for what the result should possibly be:
Below I have some Test data where the Unique ID has a relationship with the "Value" column. For each UniqueID, there must be a corresponding row from the "value" Column. What I am trying to accomplish is a formula or VBA Script that will split the UniqueID into its respective column followed by the value in the "value" column related to the ID. For example Unique ID 123 should have five values with 101,102,103,104,105 in its respective row/column. A caveat to this would be if the VBA Script/Formula take into consideration date formatting if possible. Any insight would be greatly appreciated... I am including some sample data for context. Please review the "End Results" for what the result should possibly be:
Book9 | ||||
---|---|---|---|---|
A | B | |||
1 | Unformatted Data | |||
2 | Unique Id | Value | ||
3 | 123 | 101,102,103,104,105 | ||
4 | 456 | 200,201,203,204,205 | ||
5 | 789 | 09/11/2023,09/12/2023,09/13/2023 | ||
6 | 101112 | 10/01/2023,10/02/2023,10/03/2023 | ||
7 | ||||
8 | ||||
9 | ||||
10 | End Result | |||
11 | UniqueID | Value | ||
12 | 123 | 101 | ||
13 | 123 | 102 | ||
14 | 123 | 103 | ||
15 | 123 | 104 | ||
16 | 123 | 105 | ||
17 | 456 | 200 | ||
18 | 456 | 201 | ||
19 | 456 | 203 | ||
20 | 456 | 204 | ||
21 | 456 | 205 | ||
22 | 789 | 9/11/2023 | ||
23 | 789 | 9/12/2023 | ||
24 | 789 | 9/13/2023 | ||
25 | 101112 | 10/1/2023 | ||
26 | 101112 | 10/2/2023 | ||
27 | 101112 | 10/3/2023 | ||
Sheet1 |