Hello,
I created a workbook that automatically add a certain number of columns. I need these new columns to copy the formulas over from the original column. For example, I have a main column that is present in every sheet (the formulas are different in every sheet). This column has formulas in it that will be the same for each new column, however, the references will need to changed as columns are added, i.e. instead of referencing F11:F14 it would need to be G11:G14. I was able to use the OFFSET function for a few of the formulas and that provided the desired result. However, those were pulling from a single cell on a different sheet. The other formulas on this sheet are SUM, PRODUCT, etc. functions that I cant seem to get the OFFSET function to work like the other formulas.
This is the worksheet that i have been playing around with. When I change the value on the main sheet and have columns inserted to this sheet, I need the formulas in Column F to carry across to the new columns. The OFFSET is working for the first new member, but not any others.
I created a workbook that automatically add a certain number of columns. I need these new columns to copy the formulas over from the original column. For example, I have a main column that is present in every sheet (the formulas are different in every sheet). This column has formulas in it that will be the same for each new column, however, the references will need to changed as columns are added, i.e. instead of referencing F11:F14 it would need to be G11:G14. I was able to use the OFFSET function for a few of the formulas and that provided the desired result. However, those were pulling from a single cell on a different sheet. The other formulas on this sheet are SUM, PRODUCT, etc. functions that I cant seem to get the OFFSET function to work like the other formulas.
This is the worksheet that i have been playing around with. When I change the value on the main sheet and have columns inserted to this sheet, I need the formulas in Column F to carry across to the new columns. The OFFSET is working for the first new member, but not any others.
Test4.xlsm | |||||
---|---|---|---|---|---|
F | G | H | |||
1 | Managerial Member | Member2 | Member3 | ||
2 | NU1008976543 | NU1008976543 | NU1008976543 | ||
3 | AAAAAAAAA | BBBBBBBBB | CCCCCCCCC | ||
4 | 111111111 | 222222222 | 333333333 | ||
5 | |||||
6 | |||||
7 | |||||
8 | -7,181,711 | -76,340 | 0 | ||
9 | 0 | 0 | 0 | ||
10 | 0 | 0 | 0 | ||
11 | 0 | 0 | 0 | ||
12 | -7,181,711 | -76,340 | -76,340 | ||
Sheet3 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F2:H2 | F2 | =DATA!$A$2 |
F3:H3 | F3 | =OFFSET(DATA!$C$2,COLUMN()-6,0) |
F4:H4 | F4 | =OFFSET(DATA!$D$2,COLUMN()-6,0) |
F8:H8 | F8 | =OFFSET(DATA!$L$2,COLUMN()-6,0) |
G9:H11 | G9 | =0 |
F12 | F12 | =SUM(F8:(OFFSET(F11,-1,0))) |
G12 | G12 | =SUM(OFFSET(F8,0,1):OFFSET(F11,0,1)) |
H12 | H12 | =SUM(OFFSET(F8,0,1):OFFSET(F11,0,1)) |