![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 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) |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
Hi, sorry I am in a bit of a rush, but this sounds to me like you need to use the indirect function.
RET79 |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=VLOOKUP(A1,INDIRECT("'"&A2&"'!A1:C10"),2) |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|