Hi,
I am a new member to the forum and this is my first post. I've looked through the archive, however was unable to get any further with this issue.
I have a button to insert a new row within a table. As well as inserting a new row, this will also copy a calculation section in which one of the formulas for a row is shown below.
=IF($J$7="Standard rate","("&$E$5&" + "&$F$5&") x "&$N$5&") = ",IF($J$7="CO standard","(("&$E$5&" x "&$N$6&") + ("&$F$5&" x "&$N$5&")) - ("&$D$5&" x "&$N$8&"))"&" = ",IF($J$7="CO reduced","("&$E$5&" + "&$F$5&") x "&$N$7&") =")))
This formula works fine upon the one row being held within the table, however I would like the cell references $E$5, $F$5 and $D$5 to be incremented to row 6 for the new calculation section created (whilst also retaining the previous calculation) upon each insert. As the calculation button inserts a new calculation section to the sheet I would need this somehow reference the new row added (within ContTable). I have tried a counter as well as trying ways with the INDIRECT and INDEX functions however was unsuccessful
An example of how I would like it to change is shown below:
=IF($J$17="Standard rate","("&$E$6&" + "&$F$6&") x "&$N$5&") = ",IF($J$17="CO standard","(("&$E$6&" x "&$N$6&") + ("&$F$6&" x "&$N$5&")) - ("&$D$6&" x "&$N$8&"))"&" = ",IF($J$17="CO reduced","("&$E$6&" + "&$F$5&") x "&$N$7&") =")))
I have copied my Add macro and calculate macro to hopefully provide a better view of what i'm trying to do.
![]()
Please Login or Register to view this content.
Thanks![]()
Please Login or Register to view this content.
Matt
Bookmarks