ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding a named range to a cell (https://www.excelbanter.com/excel-programming/302192-adding-named-range-cell.html)

John[_80_]

Adding a named range to a cell
 
This question is about concatenation and named ranges. On sheet2 of my
workbook, I have a value in a cell named Eddie1. On sheet1, I would
like to have a formula generated in a cell as: "=Eddie1". I use the
word "Eddie" at the top of Column B, and have the numbers 1 through 43
running down the A column. So I thought I could concatenate an = sign,
the name Eddie and the number 1, and come up with the formula
"=Eddie1". It works, in so much as it puts the text "=Eddie1" in the
cell, but it's not a formula.

What am I doing wrong?

Thanks
John

keepITcool

Adding a named range to a cell
 
you'll need indirect to force the evaluation of the string to a reference

=indirect("eddie" & 1)



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


(John) wrote:

This question is about concatenation and named ranges. On sheet2 of my
workbook, I have a value in a cell named Eddie1. On sheet1, I would
like to have a formula generated in a cell as: "=Eddie1". I use the
word "Eddie" at the top of Column B, and have the numbers 1 through 43
running down the A column. So I thought I could concatenate an = sign,
the name Eddie and the number 1, and come up with the formula
"=Eddie1". It works, in so much as it puts the text "=Eddie1" in the
cell, but it's not a formula.

What am I doing wrong?

Thanks
John




All times are GMT +1. The time now is 06:22 AM.

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