SailorJerry7030
New Member
- Joined
- Apr 27, 2018
- Messages
- 30
In the first table it's setup like this:
I'm trying to come up with some code that would create sheets based on the Units, Products, and have a row for each based on the values in the cells. It would look something like this after being ran with a new sheet for each Company:
Any ideas without bogging down Excel? I think the grand total of rows created would be around 4000 so I don't think it'd be too bad.
Company | Unit | Product 1 | Product 2 | Product 3 | Product 4 | Product 5 |
Company 1 | Unit 2 | 5 | ||||
Company 1 | Unit 1 | 11 | ||||
Company 1 | Unit 3 | 4 | 5 | |||
Company 2 | Unit 1 | 90 | 15 | 6 | ||
Company 2 | Unit 2 | 1 | ||||
Company 3 | Unit 7 | 4 | 7 | |||
Company 4 | Unit 3 | 3 | 9 | |||
Company 4 | Unit 5 | 1 | 1 | |||
Company 4 | Unit 12 | 4 | 6 | |||
Company 5 | Unit 1 | 3 | 2 | |||
Company 5 | Unit 5 | 1 | 1 | |||
Company 5 | Unit 9 | 5 | 7 | |||
Company 5 | Unit 10 | 3 | 1 |
I'm trying to come up with some code that would create sheets based on the Units, Products, and have a row for each based on the values in the cells. It would look something like this after being ran with a new sheet for each Company:
Company 1 | Unit 2 | Product 1 |
Company 1 | Unit 2 | Product 1 |
Company 1 | Unit 2 | Product 1 |
Company 1 | Unit 2 | Product 1 |
Company 1 | Unit 2 | Product 1 |
Company 1 | Unit 1 | Product 1 |
Company 1 | Unit 1 | Product 1 |
Company 1 | Unit 1 | Product 1 |
Company 1 | Unit 1 | Product 1 |
Company 1 | Unit 1 | Product 1 |
Company 1 | Unit 1 | Product 1 |
Company 1 | Unit 1 | Product 1 |
Company 1 | Unit 1 | Product 1 |
Company 1 | Unit 1 | Product 1 |
Company 1 | Unit 1 | Product 1 |
Company 1 | Unit 1 | Product 1 |
Company 1 | Unit 3 | Product 4 |
Company 1 | Unit 3 | Product 4 |
Company 1 | Unit 3 | Product 4 |
Company 1 | Unit 3 | Product 4 |
Company 1 | Unit 3 | Product 4 |
Company 1 | Unit 3 | Product 4 |
Company 1 | Unit 3 | Product 4 |
Company 1 | Unit 3 | Product 4 |
Company 1 | Unit 3 | Product 4 |
Any ideas without bogging down Excel? I think the grand total of rows created would be around 4000 so I don't think it'd be too bad.