The context:
Depending on the size of a few input columns, I'd like to have a column with formulas that adjust to the size of those inputcolumns. I know how to do this with VBA, but I would really like to know if there's another way to do this.
The details:
This is a basic setup where columns A and B are values, and column C consists of a simple formula where specifically range C2 has the formula =A2+B2. Now i can make the columns A and B dynamic ranges by using Formulas > Name Manager and inserting the formulas rng_A=OFFSET(Sheet1!$A$2;;;COUNTA(Sheet1!$A$2:$A$40);) and rng_B=OFFSET(Sheet1!$B$2;;;COUNTA(Sheet1!$B$2:$B$40);) like this:
This comes in handy for charts where you can use the named ranges for a dynamic display of the data like this:
Now, If I insert two new numbers in column A, the chart would automatically add them to the line:
The question:
If I'd like to add column C in the chart, that could be done just as easily by adding a new named range, but I would have to insert two new formulas in range C8 and C9. Is it in any way possible to make column C a dynamic range that consists of formulas? Without filling the entire column with formulas such as =IF(A8="";"";A8+B8) here:
Or using a VBA snippet?
Than you for any suggestions!




