Concatenating Cell References in ExcelID: Q47492
|
A cell reference can be concatenated. Ways to use them differ, depending on whether the cell reference is on a macro sheet or a worksheet. Examples on how to use each type follow the general description below.
Use the text concatenation symbol & (an ampersand) to join cell references.
Enclose literal strings with double quotation marks. To refer to the value
in another cell or a defined name, use only the cell's reference, or the
name, without the quotation marks.
For example, if A5 contains the number 3, and Name is a defined name
referring to the number 16, the following is true:
Concatenation Refers to
------------- ---------
"B"&A5 Cell B3
"Sheet1.XLS!J"&Name Cell J16 on Sheet1.XLS
"R"&Name&"C1" Cell R16C1 (or A16)
"R["&Name&"]C1" 16 cells down from where the active cell
is, but in column A
=INDIRECT("B"&A5)
=SELECT("R["&Name&"]C1")
=ROW(TEXTREF("R["&Name&"]C1"))
=FORMULA.GOTO("R["&Name&"]C1")
Online Help, version 5.0, Reference Information, Microsoft Excel Macro
Functions Contents
"Function Reference," version 4.0, page 174
"Function Reference," version 3.0, page 93
"Functions and Macros," version 2.x, page 287
Additional query words: concat
Keywords :
Version :
Platform :
Issue type :
Last Reviewed: March 15, 1999