Forcing a Relative Reference

thaichef

New Member
Joined
Sep 10, 2010
Messages
4
Is it possible to force a relative reference for the following:

=INDIRECT("a"&1)

I understand that this is an odd thing to try to do. What I'm trying to accomplish is too complicated for me to attempt to explain.

Here is one of the formulas that I'm trying to force to be a relative reference:

INDIRECT(("Backpacking!"&CHAR(RIGHT(A1,LEN(A1)-FIND(" ",A1))+67)&3)

Thanks for any help that you can provide.

--ThaiChef
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Welcome to the board!

What do you mean, you want to force it to be a relative reference? This:

=Indirect("a"&1)

is the same as this

=Indirect("A1")

...which will always return the same as this:

=$A$1

So... what are you trying to do??
 
Upvote 0
Thanks for the welcome!

I understand that INDIRECT("A1") will always result in $A$1. I'm trying to find a way to build a reference from a string that results in A1.

Can anyone think of a way to do this?

Thanks,

--ThaiChef
 
Upvote 0
Ok, I think I have a better way to explain it...

For columns A | B

My current cell contents are:

2 | INDIRECT("Sheet"&$A1&"!B1")
3 | INDIRECT("Sheet"&$A2&"!B2")
4 | INDIRECT("Sheet"&$A3&"!B3")

So you can see that by using the partially relative address of $A1, I can copy and paste new rows going down. However, I'd like to figure out a way to not have to change the values in the string. If I were to copy and paste the next row, I would get:

5 | INDIRECT("Sheet"&$A4&"!B3") and I'd have to change the "!B3" to "!B4" manually.

Any thoughts on solving this?

Thanks,

--ThaiChef
 
Upvote 0
Hello ThaiChef, you can use the row() function for this. So this:

4 | INDIRECT("Sheet"&$A3&"!B3")

...becomes this:

4 | INDIRECT("Sheet"&$A3&"!B" & Row(A3))

...A3 could be B3 or C3, it is just returning the row #. Hope that resolves it for you - sorry it took me awhile to get back on here!
 
Upvote 0
Hello ThaiChef, you can use the row() function for this. So this:

4 | INDIRECT("Sheet"&$A3&"!B3")

...becomes this:

4 | INDIRECT("Sheet"&$A3&"!B" & Row(A3))

...A3 could be B3 or C3, it is just returning the row #. Hope that resolves it for you - sorry it took me awhile to get back on here!

That worked perfectly...thanks very much for your help!

--ThaiChef
 
Upvote 0

Forum statistics

Threads
1,215,126
Messages
6,123,198
Members
449,090
Latest member
bes000

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