cell reference

cary1

New Member
Joined
Jul 8, 2010
Messages
3
Cell U3 has the formula =j1482. I would like cell AA3 to look at cell U3 and return the formula =p1482. That is, in cell AA3, I would like to substitute the column reference "j" for "p" but keep the row reference 1482 shown in U3.
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I'm not sure why you wouldn't just put =P1482 in cell AA3 but if you are using Excel 2013 or later, try

=OFFSET(INDIRECT(MID(FORMULATEXT(U3),2,99)),,6)
or
=INDIRECT(MID(SUBSTITUTE(FORMULATEXT(U3),"J","P"),2,99))

Note that both OFFSET and INDIRECT are volatile functions so if you are using a lot of them they may adversely affect your sheet's performance.
 
Last edited:
Upvote 0
Some further comments:

If any columns are subsequently inserted or deleted to the left of column J
- The post #3 formula will error
- The second formula in post #2 will return the value from an incorrect cell
- The first formula from post #2 should 'follow' the target cell and still return the same result.

If any columns are subsequently inserted or deleted between column J and column P
- all 3 formulas will return results from different (presumably incorrect) cells.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,121
Members
452,381
Latest member
Nova88

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