ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   increment cell reference whilst reading numeric contents (https://www.excelbanter.com/excel-programming/333427-increment-cell-reference-whilst-reading-numeric-contents.html)

Pete Collings

increment cell reference whilst reading numeric contents
 
Using an Excel 2000 (9.0.2720) macro I want to sum two adjacent cells in a
row and display the result in the next cell in the row, and do this for a
column of figures. I have incremented the result output OK (it displayed an
error message with another formula), but cannot get the sum calculation to
work. using a cell reference of the type C[i] and D[i] to increment the sum
over the ranges C10:C34 + D10:D34

Tom Ogilvy

increment cell reference whilst reading numeric contents
 
Range("E10:E34").Formula = "=Sum(C10:D10)"

--
Regards,
Tom Ogilvy


"Pete Collings" <Pete wrote in message
...
Using an Excel 2000 (9.0.2720) macro I want to sum two adjacent cells in a
row and display the result in the next cell in the row, and do this for a
column of figures. I have incremented the result output OK (it displayed

an[i]
error message with another formula), but cannot get the sum calculation to
work. using a cell reference of the type C[i] and D to increment the

sum
over the ranges C10:C34 + D10:D34





All times are GMT +1. The time now is 11:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com