Cell refererence

pedram

New Member
Joined
Aug 12, 2014
Messages
27
Hi All this is my problem:
I would like to make a cell reference variable depending on another cell.
So if i write in cell C1 =B(A1) it equals cell B1
I want C2 cell to look into column B and use the row that A2 indicates ( so it will be B3).

If i change A1 from 1 to 88 i would want C1 to have the formula =B88..
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 65"]
<!--StartFragment--> <colgroup><col width="65" style="width:65pt"> </colgroup><tbody>[TR]
[TD="width: 65, align: right"]A[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]andrew[/TD]
[TD]=B1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]roger[/TD]
[TD]=B3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]bob
[/TD]
[TD]=B15[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]ted[/TD]
[TD]=B7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]pete[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


THanks for you help
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Sounds like you're looking for INDIRECT:


Excel 2012
ABC
11andrewandrew
23rogerbob
35bobpete
47ted0
55petepete
Sheet1
Cell Formulas
RangeFormula
C1=INDIRECT("B"&A1)
C2=INDIRECT("B"&A2)
C3=INDIRECT("B"&A3)
C4=INDIRECT("B"&A4)
C5=INDIRECT("B"&A5)


HTH,
 
Upvote 0
Sounds like you want to use something like indirect maybe?


the below into c1 and copied down would work.
Code:
=INDIRECT("b" & A1,TRUE)


*** Edit *** Too slow :-) but I learnt you don't need the True then, I though you did to specify the A1 style rather than r1c1 but i learnt something.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top