ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   using cell reference in a formula (https://www.excelbanter.com/excel-discussion-misc-queries/150527-using-cell-reference-formula.html)

[email protected]

using cell reference in a formula
 
What I am trying to do is something like this. Using B17 which will
return a letter, say G so that this formula (or actually a corrected
version of it!)
=SUM("B17"&2:"B17"&2000)

would give =SUM(G2:G2000)

Could anyone suggest how this can be done,
Thanks,
Barbara


bj

using cell reference in a formula
 
try
=sum(indirect(b17&"2:"&b17&"2000"))

" wrote:

What I am trying to do is something like this. Using B17 which will
return a letter, say G so that this formula (or actually a corrected
version of it!)
=SUM("B17"&2:"B17"&2000)

would give =SUM(G2:G2000)

Could anyone suggest how this can be done,
Thanks,
Barbara



MartinW

using cell reference in a formula
 
Hi Barbara,

Try
=SUM(INDIRECT(B17&"2:"&B17&"2000"))

HTH
Martin


wrote in message
ups.com...
What I am trying to do is something like this. Using B17 which will
return a letter, say G so that this formula (or actually a corrected
version of it!)
=SUM("B17"&2:"B17"&2000)

would give =SUM(G2:G2000)

Could anyone suggest how this can be done,
Thanks,
Barbara




Dallman Ross

using cell reference in a formula
 
In . com,
spake thusly:

What I am trying to do is something like this. Using B17 which
will return a letter, say G so that this formula (or actually a
corrected version of it!)


=SUM("B17"&2:"B17"&2000)

would give =SUM(G2:G2000)


This would be one way:

=SUM(INDIRECT(B17&"2:"&B17&"2000"))

--
dman

No Name

using cell reference in a formula
 
Thanks guys that worked exactly how I needed it.
Barbara

wrote in message
ups.com...
What I am trying to do is something like this. Using B17 which will
return a letter, say G so that this formula (or actually a corrected
version of it!)
=SUM("B17"&2:"B17"&2000)

would give =SUM(G2:G2000)

Could anyone suggest how this can be done,
Thanks,
Barbara





All times are GMT +1. The time now is 08:51 PM.

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