ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Linking cell values (https://www.excelbanter.com/excel-discussion-misc-queries/84894-linking-cell-values.html)

Frazer

Linking cell values
 
Didnt quite know how to define what i wanted to ask in the title but ill
explain more clearly here....

I have used a function that will return a certain value in a cell, for
example it may return the value '5'. In this case, i then want the next cell
to return the value of cell A5. If the value is 4, i want it to retrun the
value of A4, if it is 3, return the value of A3, etc. Can anyone help me with
how to do this??

kassie

Linking cell values
 
You use the IDIRECT function. Say the cell containing the value is D1, then
where you want to show the value of the related cell in col A, enter the
following formula:
=INDIRECT("A"&D1) With sy a 5 in D1, you will get the value of A5.

"Frazer" wrote:

Didnt quite know how to define what i wanted to ask in the title but ill
explain more clearly here....

I have used a function that will return a certain value in a cell, for
example it may return the value '5'. In this case, i then want the next cell
to return the value of cell A5. If the value is 4, i want it to retrun the
value of A4, if it is 3, return the value of A3, etc. Can anyone help me with
how to do this??


paul

Linking cell values
 
if you dont have too many values
if(A1=5,a5,if(a1=4,a4,if(a1=3,a3,"")))
--
paul

remove nospam for email addy!



"Frazer" wrote:

Didnt quite know how to define what i wanted to ask in the title but ill
explain more clearly here....

I have used a function that will return a certain value in a cell, for
example it may return the value '5'. In this case, i then want the next cell
to return the value of cell A5. If the value is 4, i want it to retrun the
value of A4, if it is 3, return the value of A3, etc. Can anyone help me with
how to do this??



All times are GMT +1. The time now is 12:35 AM.

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