ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Getting contents of a cell when cell reference is in the sheet (https://www.excelbanter.com/excel-discussion-misc-queries/48765-getting-contents-cell-when-cell-reference-sheet.html)

A Nelson

Getting contents of a cell when cell reference is in the sheet
 
If I have a cell reference in a cell, how could I get the contents of the
cell instead of the cell reference again.

For example,

A B C D
1
2 5
3 'A2'
4

How could I see the contents of cell A2 using the information in cell C3.
I'm matching one number with another in different worksheets and want to get
a value from the same row as the match. I can get it to return the address of
the data I want to get, but can't get the data.

David Billigmeier

Incorporate INDIRECT()... i.e. =INDIRECT(A2) will return the contents of A2.

--
Regards,
Dave


"A Nelson" wrote:

If I have a cell reference in a cell, how could I get the contents of the
cell instead of the cell reference again.

For example,

A B C D
1
2 5
3 'A2'
4

How could I see the contents of cell A2 using the information in cell C3.
I'm matching one number with another in different worksheets and want to get
a value from the same row as the match. I can get it to return the address of
the data I want to get, but can't get the data.


A Nelson

Thanks Dave,
For some reason it was just returning the cell reference before.

Andy

"David Billigmeier" wrote:

Incorporate INDIRECT()... i.e. =INDIRECT(A2) will return the contents of A2.

--
Regards,
Dave


"A Nelson" wrote:

If I have a cell reference in a cell, how could I get the contents of the
cell instead of the cell reference again.

For example,

A B C D
1
2 5
3 'A2'
4

How could I see the contents of cell A2 using the information in cell C3.
I'm matching one number with another in different worksheets and want to get
a value from the same row as the match. I can get it to return the address of
the data I want to get, but can't get the data.


David Billigmeier

Just noticed a typo, my previous post should read "=INIDRECT(C3) will return
the contents of A2.


--
Regards,
Dave


"David Billigmeier" wrote:

Incorporate INDIRECT()... i.e. =INDIRECT(A2) will return the contents of A2.

--
Regards,
Dave


"A Nelson" wrote:

If I have a cell reference in a cell, how could I get the contents of the
cell instead of the cell reference again.

For example,

A B C D
1
2 5
3 'A2'
4

How could I see the contents of cell A2 using the information in cell C3.
I'm matching one number with another in different worksheets and want to get
a value from the same row as the match. I can get it to return the address of
the data I want to get, but can't get the data.



All times are GMT +1. The time now is 07:25 AM.

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