Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default function to use sheet's name as variable

Hi,

I have a worksheet with contracts. For each contract I have a sheet which
has as name the client's code. There are lots of sheets. In each sheet the
structure is the same, so, for example in cell D9 in every sheet you'll find
the same info regarding that client
In another sheet, I want to put in a cell the client's code and to extract
the info I want from the client's sheet. So I want to use the sheet's name as
variable.
Is there a way I can do that with a function ?

Thx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default function to use sheet's name as variable

One way:

A1: <client code

D1: =INDIRECT("'" & A1 & "'!D9")

In article ,
tibby wrote:

Hi,

I have a worksheet with contracts. For each contract I have a sheet which
has as name the client's code. There are lots of sheets. In each sheet the
structure is the same, so, for example in cell D9 in every sheet you'll find
the same info regarding that client
In another sheet, I want to put in a cell the client's code and to extract
the info I want from the client's sheet. So I want to use the sheet's name as
variable.
Is there a way I can do that with a function ?

Thx

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default function to use sheet's name as variable

=MID(CELL("filename"),(FIND("]",CELL("filename"))+1),50)

This will extract the name of the sheet.

"tibby" wrote:

Hi,

I have a worksheet with contracts. For each contract I have a sheet which
has as name the client's code. There are lots of sheets. In each sheet the
structure is the same, so, for example in cell D9 in every sheet you'll find
the same info regarding that client
In another sheet, I want to put in a cell the client's code and to extract
the info I want from the client's sheet. So I want to use the sheet's name as
variable.
Is there a way I can do that with a function ?

Thx

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default function to use sheet's name as variable

Thanks guys ...

it worked

"tibby" wrote:

Hi,

I have a worksheet with contracts. For each contract I have a sheet which
has as name the client's code. There are lots of sheets. In each sheet the
structure is the same, so, for example in cell D9 in every sheet you'll find
the same info regarding that client
In another sheet, I want to put in a cell the client's code and to extract
the info I want from the client's sheet. So I want to use the sheet's name as
variable.
Is there a way I can do that with a function ?

Thx

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
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Sort : how can I use a variable in a VB sort function? El Bee Excel Worksheet Functions 3 February 16th 06 09:34 PM
excel should have a function to count sheets carlos sosa Excel Worksheet Functions 7 April 24th 05 08:29 PM
how do i use the function to copy and paste a determined variable. Strem Excel Worksheet Functions 2 January 8th 05 05:31 PM


All times are GMT +1. The time now is 11:41 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"