aamaramaster
New Member
- Joined
- Oct 3, 2024
- Messages
- 6
- Office Version
- 365
- Platform
- Windows
Hi, I have an Excel table with three columns: Order ID, Names, and Event. The Order ID column contains duplicate values corresponding to different names and events. I need assistance in transforming this table using Power Query in Excel to achieve the following structure:
Desired Output:
- Unique Order ID: Each Order ID should appear only once.
- Names Columns: For each Order ID, the names associated with it should be spread across multiple columns (e.g., Name 1, Name 2, Name 3, etc.).
- Events Columns: Similarly, for each Order ID, the events associated with it should be spread across multiple columns (e.g., Event 1, Event 2, Event 3, etc.).
Order ID | Names | Event |
---|---|---|
1 | JAN | MAC |
1 | Berry | MAC |
1 | Ricky | FAN |
2 | Sara | SAN |
2 | Nada | SAN |
3 | Jasmine | BAN |
Desired Output:
Order ID | Name 1 | Name 2 | Name 3 | Event 1 | Event 2 |
---|---|---|---|---|---|
1 | JAN | Berry | Ricky | MAC | FAN |
2 | Sara | Nada | SAN | ||
3 | Jasmine | BAN |