ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Range (https://www.excelbanter.com/excel-discussion-misc-queries/36575-range.html)

jouj

Range
 
Dear All,

I am exporting data ( table) from SQL to Excel.
I want to export a formula column, where I can specify the range in Code:
what is the similar/equivalent code to: =B(Row()) + A(Row() +1)??
[Is there an Eval function in MS Excel?]

Thanks.
jouj

Bob Phillips

Not quite sure, but are you trying to get the values in cells Bn & Am? if so

=INDIRECT("B"&ROW()) + INDIRECT("A"&ROW()+1)

--
HTH

Bob Phillips

"jouj" wrote in message
...
Dear All,

I am exporting data ( table) from SQL to Excel.
I want to export a formula column, where I can specify the range in Code:
what is the similar/equivalent code to: =B(Row()) + A(Row() +1)??
[Is there an Eval function in MS Excel?]

Thanks.
jouj




jouj

Thank you.
jouj

"Bob Phillips" wrote:

Not quite sure, but are you trying to get the values in cells Bn & Am? if so

=INDIRECT("B"&ROW()) + INDIRECT("A"&ROW()+1)

--
HTH

Bob Phillips

"jouj" wrote in message
...
Dear All,

I am exporting data ( table) from SQL to Excel.
I want to export a formula column, where I can specify the range in Code:
what is the similar/equivalent code to: =B(Row()) + A(Row() +1)??
[Is there an Eval function in MS Excel?]

Thanks.
jouj






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

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