![]() |
![]() |
|
|||||||
| 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: 45
|
SheetX contains data.
in b5 of a worksheet, there is a name==> "SheetX" What should the formula be to look up SheetX!C10 in the worksheet? Can you have a variable instead of "SheetX!"? |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Feb 2002
Posts: 76
|
Quote:
INDIRECT(worksheet&"!c10") Or you could just forget the name and do: INDIRECT(B5&"!c10") [ This Message was edited by: John McGraw on 2002-04-19 12:49 ] |
|
|
|
|
|
|
#3 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,315
|
Quote:
Caution needed with the second method. =INDIRECT("'"&B5&"'!C10") Aladin |
||
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 45
|
Thanks for the help it works great!
Now on the sheetX!, I want to find a value that will be beside a cell containing Total. Can I use Vlookup with INDIRECT? You guys are great! |
|
|
|
|
|
#5 | |
|
Board Regular
Join Date: Feb 2002
Posts: 76
|
Quote:
Thanks |
|
|
|
|
|
|
#6 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,315
|
Quote:
Addendum: Just test it: Naming the cell housing the sheet-name and using the cell name in the formula does not resolve the problem, alas. Adding a single quote per precaution is the only solution. That's the way Excel does it in order to disambiguate sheet names that contain punctuation marks. Aladin [ This Message was edited by: Aladin Akyurek on 2002-04-19 13:32 ] |
||
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Feb 2002
Posts: 76
|
Haha. I forgot about multiple word sheets! Thanks.
|
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,315
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|