Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default vlookup where sheet name=cell value

Can you help me to set up a Vlookup to another sheet where the sheet name is
the taken from the cell value in cell (I2). For example:

=VLOOKUP(A2,'(I2)'!$A$2:$A$260,3,FALSE)

Dylan Dawson

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default vlookup where sheet name=cell value

Hello Dylan
Use INDIRECT to build your reference ie:

=VLOOKUP(A2,INDIRECT(I2 & "'!$A$2:$A$260"),3,FALSE)

HTH
Cordially
Pascal

"DDawson" a écrit dans le message de
news: ...
Can you help me to set up a Vlookup to another sheet where the sheet name
is
the taken from the cell value in cell (I2). For example:

=VLOOKUP(A2,'(I2)'!$A$2:$A$260,3,FALSE)

Dylan Dawson



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default vlookup where sheet name=cell value

Thanks P.

I fiddled about with it and got this to work:
=VLOOKUP(A2,INDIRECT("'"&I2 & "'!$A$2:$C$260"),3,FALSE)

I also tried to make it tidier. The other sheets are named after people and
the I:I column also refers to the same people names.

I tried creating a named Range called "Resource" =Left(I2,5) to pick up the
first five letters of the persons name/sheetname and I created dynamic ranges
with the same names for the ranges in the other sheets. I thought I would be
able to call "Resource" to refer to the different ranges, but, I get a
volatile result with the following formulae.
=VLOOKUP(A3,INDIRECT(Resource),3,FALSE)

"papou" wrote:

Hello Dylan
Use INDIRECT to build your reference ie:

=VLOOKUP(A2,INDIRECT(I2 & "'!$A$2:$A$260"),3,FALSE)

HTH
Cordially
Pascal

"DDawson" a écrit dans le message de
news: ...
Can you help me to set up a Vlookup to another sheet where the sheet name
is
the taken from the cell value in cell (I2). For example:

=VLOOKUP(A2,'(I2)'!$A$2:$A$260,3,FALSE)

Dylan Dawson




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
take sheet name from a cell in VLOOKUP Gaurav[_5_] Excel Worksheet Functions 3 October 6th 09 04:17 PM
Can I find a cell with vlookup formula on sheet Steele Excel Worksheet Functions 1 October 10th 08 03:39 AM
Vlookup a part of a cell value in another sheet Salman Excel Worksheet Functions 0 March 22nd 06 07:56 AM
Vlookup a part of a cell value in another sheet Salman Excel Worksheet Functions 0 March 22nd 06 07:52 AM
Using a cell reference of a sheet in Vlookup crazybass2 Excel Worksheet Functions 3 August 12th 05 07:51 PM


All times are GMT +1. The time now is 09:40 AM.

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

About Us

"It's about Microsoft Excel"