document name reference

RobTalbert

New Member
Joined
Apr 15, 2002
Messages
1
I want to create a formula which refers to a cell in a different wroksheet. However, I want to point to any number of different worksheets, depending on the value I store in an adjacent cell. For example, I would like to use a pointer to cell A2 in my formula below and have the formula insert the "sh2" so the formulat would have the correct document name. Any way to do this without creating a bunch of nexted if statements?

A1 A2 A3
10 sht2 vlookup(A1, [A2]!a1:c10, 2)
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi, sorry I am in a bit of a rush, but this sounds to me like you need to use the indirect function.

RET79
 
Upvote 0
On 2002-04-16 11:48, RobTalbert wrote:
I want to create a formula which refers to a cell in a different wroksheet. However, I want to point to any number of different worksheets, depending on the value I store in an adjacent cell. For example, I would like to use a pointer to cell A2 in my formula below and have the formula insert the "sh2" so the formulat would have the correct document name. Any way to do this without creating a bunch of nexted if statements?

A1 A2 A3
10 sht2 vlookup(A1, [A2]!a1:c10, 2)


=VLOOKUP(A1,INDIRECT("'"&A2&"'!A1:C10"),2)
 
Upvote 0

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

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