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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,215,461
Messages
6,124,958
Members
449,200
Latest member
indiansth

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