pcc
Well-known Member
- Joined
- Jan 21, 2003
- Messages
- 1,382
- Office Version
- 2021
- Platform
- Windows
Anyone got code to create a table with a row for every combination of a set of variables?
eg if I have 3 years, 12 months in each year, and 2 categories in each month (say actual and budget), then I want a table to be created with a row for each year/month/category combination (ie 3x12x2=72 rows).
I have some code that does it via pivot tables, but if I use a lot of variables, Excel bombs out. I'm sure there's a simple way using arrays but don't want to reinvent the wheel if you guys already have done so.
Thanks.
This message was edited by pcc on 2003-02-13 10:50
eg if I have 3 years, 12 months in each year, and 2 categories in each month (say actual and budget), then I want a table to be created with a row for each year/month/category combination (ie 3x12x2=72 rows).
I have some code that does it via pivot tables, but if I use a lot of variables, Excel bombs out. I'm sure there's a simple way using arrays but don't want to reinvent the wheel if you guys already have done so.
Thanks.
This message was edited by pcc on 2003-02-13 10:50