Hi. I am trying to generate a table on a separate sheet, based on values in three other tables. Allow me to explain. My workbook now contains three tables:
1. A table with resources (resourceid, resourcename, ...)
2. A table with projects (projectid, projectname, ...)
3. A table with weeks (weekid, year, week)
I am trying to generate a table, combining resourceid, projectid, and weekid, so that each row is a unique combination of these three variables. I have some formulas that I will add to a fourth column, and so on.
So if I would have 3 resources (1-3), 2 projects (1-2), and 4 weeks (1-4), the number of rows that need to be generated is 3 x 2 x 4 = 24. The actual number of resources, projects, and weeks is quite a bit larger of course. But for the same of explaining what I would need, the result would look kind of like this:
resourceid, projectid, weekid, columnx, columny
1, 1, 1, <column with formula>, <etc.>
1, 1, 2, <column with formula>, <etc.>
1, 1, 3, <column with formula>, <etc.>
1, 1, 4, <column with formula>, <etc.>
1, 2, 1, <column with formula>, <etc.>
1, 2, 2, <column with formula>, <etc.>
1, 2, 3, <column with formula>, <etc.>
1, 2, 4, <column with formula>, <etc.>
2, 1, 1, <column with formula>, <etc.>
2, 1, 2, <column with formula>, <etc.>
2, 1, 3, <column with formula>, <etc.>
2, 1, 4, <column with formula>, <etc.>
2, 2, 1, <column with formula>, <etc.>
2, 2, 2, <column with formula>, <etc.>
2, 2, 3, <column with formula>, <etc.>
2, 2, 4, <column with formula>, <etc.>
3, 1, 1, <column with formula>, <etc.>
3, 1, 2, <column with formula>, <etc.>
3, 1, 3, <column with formula>, <etc.>
3, 1, 4, <column with formula>, <etc.>
3, 2, 1, <column with formula>, <etc.>
3, 2, 2, <column with formula>, <etc.>
3, 2, 3, <column with formula>, <etc.>
3, 2, 4, <column with formula>, <etc.>
Is there a way of automatically generating these rows? Especially as resources and projects are added to the sheet, it would help a lot so that I don't need to manually add them.
Thanks for your help!
1. A table with resources (resourceid, resourcename, ...)
2. A table with projects (projectid, projectname, ...)
3. A table with weeks (weekid, year, week)
I am trying to generate a table, combining resourceid, projectid, and weekid, so that each row is a unique combination of these three variables. I have some formulas that I will add to a fourth column, and so on.
So if I would have 3 resources (1-3), 2 projects (1-2), and 4 weeks (1-4), the number of rows that need to be generated is 3 x 2 x 4 = 24. The actual number of resources, projects, and weeks is quite a bit larger of course. But for the same of explaining what I would need, the result would look kind of like this:
resourceid, projectid, weekid, columnx, columny
1, 1, 1, <column with formula>, <etc.>
1, 1, 2, <column with formula>, <etc.>
1, 1, 3, <column with formula>, <etc.>
1, 1, 4, <column with formula>, <etc.>
1, 2, 1, <column with formula>, <etc.>
1, 2, 2, <column with formula>, <etc.>
1, 2, 3, <column with formula>, <etc.>
1, 2, 4, <column with formula>, <etc.>
2, 1, 1, <column with formula>, <etc.>
2, 1, 2, <column with formula>, <etc.>
2, 1, 3, <column with formula>, <etc.>
2, 1, 4, <column with formula>, <etc.>
2, 2, 1, <column with formula>, <etc.>
2, 2, 2, <column with formula>, <etc.>
2, 2, 3, <column with formula>, <etc.>
2, 2, 4, <column with formula>, <etc.>
3, 1, 1, <column with formula>, <etc.>
3, 1, 2, <column with formula>, <etc.>
3, 1, 3, <column with formula>, <etc.>
3, 1, 4, <column with formula>, <etc.>
3, 2, 1, <column with formula>, <etc.>
3, 2, 2, <column with formula>, <etc.>
3, 2, 3, <column with formula>, <etc.>
3, 2, 4, <column with formula>, <etc.>
Is there a way of automatically generating these rows? Especially as resources and projects are added to the sheet, it would help a lot so that I don't need to manually add them.
Thanks for your help!