tparmbru22
New Member
- Joined
- Sep 7, 2017
- Messages
- 15
I need help creating VBA to format survey data from an excel output. Below are examples of the data and the final format that I'm looking to achieve.
The data in columns 1-3 will need to repeat as needed based on the information provided in columns 4-9.
Columns 4-6, the header is the "category" and the data is the "issue".
Columns 7-9, the "category" will all be "Expense" but the data needs to be combined into "issue".
Appreciate any help with this request.
Survey data
Final formatted data
The data in columns 1-3 will need to repeat as needed based on the information provided in columns 4-9.
Columns 4-6, the header is the "category" and the data is the "issue".
Columns 7-9, the "category" will all be "Expense" but the data needs to be combined into "issue".
Appreciate any help with this request.
Survey data
Date | ID | Name | Construction | IT | Marketing | Expense Part | Expense Qty | Expense Reason |
01/12/22 | 1234 | Joe Smith | Missing drywall | Missing sign kit | 10001,Binders | 1 | Missing | |
01/25/22 | 5678 | Jane Doe | Missing monitor | Labels | ||||
02/02/22 | 2468 | Mike Smith | Wiring | Pinpad broken | 10007,Receipt tape | 5 | Lost | |
02/15/22 | 3692 | Linda Johnson | Labels | 10004,Pens | 20 | Missing |
Final formatted data
Date | ID | Name | Category | Issue |
01/12/22 | 1234 | Joe Smith | Construction | Missing drywall |
01/12/22 | 1234 | Joe Smith | Marketing | Missing sign kit |
01/12/22 | 1234 | Joe Smith | Expense | 10001,Binders - 1 - Missing |
01/25/22 | 5678 | Jane Doe | IT | Missing monitor |
01/25/22 | 5678 | Jane Doe | Marketing | Labels |
02/02/22 | 2468 | Mike Smith | Construction | Wiring |
02/02/22 | 2468 | Mike Smith | IT | Pinpad broken |
02/02/22 | 2468 | Mike Smith | Expense | 10007,Receipt tap - 5 - Lost |
02/15/22 | 3692 | Linda Johnson | Marketing | Labels |
02/15/22 | 3692 | Linda Johnson | Expense | 10004,Pens - 20 - Missing |