Returning a result related to a cell with a defined name

HelloAce

New Member
Joined
Apr 26, 2018
Messages
14
Hi all, I have a cell that is linked to a defined name of a cell from another sheet. Is it possible to use a formula to return the cell to the left of this linked cell from the other sheet?

Thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
If you mean return the value to the left of a named range (single cell) where the named range is on another sheet? Short answer is yes, if that's what you mean, using the Offset() function. Here the named range is on sheet 2 (called NamedRange), the offset formula is on sheet 1.
Book1
AB
1
2123
3
Sheet1
Cell Formulas
RangeFormula
A2A2=OFFSET(Book1!NamedRange,0,-1,1,1)


Book1
AB
1
2123named
3
Sheet2
 
Upvote 0
If you mean return the value to the left of a named range (single cell) where the named range is on another sheet? Short answer is yes, if that's what you mean, using the Offset() function. Here the named range is on sheet 2 (called NamedRange), the offset formula is on sheet 1.
Book1
AB
1
2123
3
Sheet1
Cell Formulas
RangeFormula
A2A2=OFFSET(Book1!NamedRange,0,-1,1,1)


Book1
AB
1
2123named
3
Sheet2
Thank you for your prompt response. I might have done something wrong with your solution or I probably didn't explain it well. As seen in attached images, the cell FP1 in Sheet 1 is linked to cell AM2 in sheet 2. AM2 has the defined name Lee. I want to return the result from AL2, one left, which is 347. Hoping this is possible. Thanks again
 

Attachments

  • Sheet 1.png
    Sheet 1.png
    5.8 KB · Views: 4
  • Sheet 2.png
    Sheet 2.png
    5.8 KB · Views: 4
Upvote 0
You haven't said where you want to put your formula, so I've put it in FO1 on sheet 1, but you can put it anywhere really.
Book1
FOFP
134765.71%
2
Sheet1
Cell Formulas
RangeFormula
FO1FO1=OFFSET(Book1!Lee,0,-1,1,1)
FP1FP1=Lee
Named Ranges
NameRefers ToCells
Lee=Sheet2!$AM$2FP1


Book1
ALAM
121
234765.71%
Sheet2
 
Upvote 0
You haven't said where you want to put your formula, so I've put it in FO1 on sheet 1, but you can put it anywhere really.
Book1
FOFP
134765.71%
2
Sheet1
Cell Formulas
RangeFormula
FO1FO1=OFFSET(Book1!Lee,0,-1,1,1)
FP1FP1=Lee
Named Ranges
NameRefers ToCells
Lee=Sheet2!$AM$2FP1


Book1
ALAM
121
234765.71%
Sheet2
Sorry yes FO1 was correct. What do you mean by Book 1?
 
Upvote 0
You don't really need that, just use:
Excel Formula:
=OFFSET(Lee,0,-1,1,1)
 
Upvote 0
Book1
FOFP
134765.71%
2
Sheet1
Cell Formulas
RangeFormula
FO1FO1=OFFSET(Lee,0,-1,1,1)
FP1FP1=Lee
Named Ranges
NameRefers ToCells
Lee=Sheet2!$AM$2FP1
 
Upvote 0
It doesn't matter, the formula will always return the value one cell to the left of the range you have named "Lee" - except if Lee is in column A, in which case you'll get an error (because there are no cells to the left of column A).
AM2 has the defined name Lee.
 
Upvote 0
It doesn't matter, the formula will always return the value one cell to the left of the range you have named "Lee" - except if Lee is in column A, in which case you'll get an error (because there are no cells to the left of column A).
Sorry I didn't articulate that well, instead of typing in Lee, am I able to somehow use the FP2 reference so I am able to autofill for all the rest of the column to match?
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,232
Members
449,092
Latest member
SCleaveland

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