I have a very complex table to build in which every row will require a different formula to be entered into it and because the table is so large I wondered if there was a way to automatically do this.
The structure of the table will be as follows:
1 Europe Middle East & Africa
1.1 Western Europe
1.1.1 NORDICs
1.1.1.1 Denmark
1.1.1.1.1 Segment 1
1.1.1.1.2 Segment 2
1.1.1.1.3 Segment 3
1.1.1.1.4 (...... Continued, segments all on the same level)
1.1.1.2 Sweden
1.1.1.2.1 Segment 1
1.1.1.2.2 Segment 2
1.1.1.2.3 Segment 3
1.1.1.2.4 (...... Continued, segments all on the same level)
1.1.2 DACH
1.1.2.1 Germany
1.1.2.1.1 Segment 1
1.1.2.1.2 Segment 2
1.1.2.1.3 Segment 3
1.1.2.1.4 (...... Continued, segments all on the same level)
1.1.2.2 Austria
1.1.2.2.1 Segment 1
1.1.2.2.2 Segment 2
1.1.2.2.3 Segment 3
(...)
For every item there is 4 rows of information and 13 columns, what I essentially need is to create a reference table for the structure like above and then based on that reference table formulas are entered into the cells, for example Row 1 of Denmark would be the total of row 1 of Segment 1 + Segment 2 + Segment 3+(...). The Nordics row 1 would be Row 1 for Sweden + Demark all the way up to the top. Each row will need a different formula with different dependencies but they will be the same actual formula all the way up, if that makes any sense. Can anyone help me come up with a faster way to write this than doing every cell one by one in VB and having to type all the separate formulas out.


Reply With Quote

