I have the following formula in cell A1 where I am simply adding and subtracting some numbers...
=B1+D1+F1-C1-E1-G1
And I repeat this going down to row 100 such that the formula in A2 is...
=B2+D2+F2-C2-E2-G2
And so on. Then I run a macro that inserts two columns in front of column B and places two new numbers in what is now the new columns B and C, with the other six columns moved to the right. But I want the formula in A1 to reference the same columns as before, not follow the original columns. How can I do this and also be able to drag the formula from A1 down to A100?
$signs from the addresses Excel generate, otherwise the named formula will shift when you insert columns. – GSerg Dec 28 '18 at 09:15