ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do I use variable column and rows using other cell reference . (https://www.excelbanter.com/excel-worksheet-functions/32617-how-do-i-use-variable-column-rows-using-other-cell-reference.html)

Bomber

how do I use variable column and rows using other cell reference .
 
without using VB - how do I say sum a range where the row /column values
depend upon the value in another cell (i.e. =SUM(A[2+value in cell say
k4]:A[3+value of cell say k5]). In other words, the column row in the above
case is dependent upon another cell value.

Bob Phillips

=SUM(INDIRECT("A"&K4&":A"&K5))

--
HTH

Bob Phillips

"Bomber" wrote in message
...
without using VB - how do I say sum a range where the row /column values
depend upon the value in another cell (i.e. =SUM(A[2+value in cell say
k4]:A[3+value of cell say k5]). In other words, the column row in the

above
case is dependent upon another cell value.




Gidders

I want to do something similar to this but want to vary the columns

ie = (current column +/- number of columns specified by value in say cell
A1, constant row value)

Gidders

"Bob Phillips" wrote:

=SUM(INDIRECT("A"&K4&":A"&K5))

--
HTH

Bob Phillips

"Bomber" wrote in message
...
without using VB - how do I say sum a range where the row /column values
depend upon the value in another cell (i.e. =SUM(A[2+value in cell say
k4]:A[3+value of cell say k5]). In other words, the column row in the

above
case is dependent upon another cell value.






All times are GMT +1. The time now is 01:48 AM.

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