Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default VLOOKUP using the act shts tab name as a reference for the table_a

Hello, I was wondering if somebody could help me with a VLOOKUP formula.

VLOOKUP(A2,'MHP 01-03-2007 '!A13:T144,12,FALSE)

Is there a way to adjust the formula above so that the MHP 01-03-2007
portion of the above formula will reference the active sheets tab name
instead of hard coded text?

any help would be appreciated.

thanks,

Tim



--
Regards,

timmulla
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default VLOOKUP using the act shts tab name as a reference for the table_a

One way is to use INDIRECT with this Harlan-inspired technique to return the
active sheetname ..

Note: Workbook must be saved first

Click Insert Name Define
Put under "Names in workbook:": WSN
Put in the "Refers to:" box:
=MID(CELL("Filename",INDIRECT("A1")),FIND("]",CELL("Filename",INDIRECT("A1")))+1,32)
Click OK

The above defines WSN as a name we can use to refer to the sheetname in any
sheet. It will auto-extract the sheetname implicitly. Eg, if you enter: =WSN
in any
sheet, any cell, it'll return the sheetname in that cell.

so, with the above set-up your:
VLOOKUP(A2,'MHP 01-03-2007 '!A13:T144,12,FALSE)


would then simply be:
=VLOOKUP(A2,INDIRECT("'"&WSN&"'!A13:T144"),12,FALS E)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"timmulla" wrote:
Hello, I was wondering if somebody could help me with a VLOOKUP formula.

VLOOKUP(A2,'MHP 01-03-2007 '!A13:T144,12,FALSE)

Is there a way to adjust the formula above so that the MHP 01-03-2007
portion of the above formula will reference the active sheets tab name
instead of hard coded text?

any help would be appreciated.

thanks,

Tim



--
Regards,

timmulla

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
External Reference in Vlookup C Brandt Excel Discussion (Misc queries) 4 July 3rd 07 04:45 AM
formula to add cells in multiple shts in the same wkbk busker Excel Worksheet Functions 2 August 9th 06 09:34 PM
VLOOKUP Reference Help Max Excel Discussion (Misc queries) 4 December 19th 05 07:28 PM
Vlookup reference a worksheet Gary Brown Excel Worksheet Functions 1 May 20th 05 07:17 PM
How to Compare Rows on 2 shts .... Les Wegg Excel Discussion (Misc queries) 0 May 11th 05 03:25 PM


All times are GMT +1. The time now is 11:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"