PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Charting Re: Return Sheet Name?

Reply

Re: Return Sheet Name?

 
Thread Tools Rate Thread
Old 08-07-2003, 02:21 PM   #1
dvt
Guest
 
Posts: n/a
Default Re: Return Sheet Name?


Nick Fuller @ BFA wrote:
> Is there a way to return a sheetname in a cell?
>
> i.e ='sheetname'
>
> any help would be greatly appreciated.


On Sheet2, enter:

=CELL("address",'Sheet1'!A1)

You'll get 'Sheet1' as the first part of the result. Use some text string
commands to remove the extra stuff, and voila! Here's a sample command that
might work to remove your sheetname from the above result:

=MID(A1,SEARCH("]",A1,1)+1,SEARCH("'",A1,2)-SEARCH("]",A1,1)-1)

Note that this only works if your =CELL formula is on a different sheet than
the sheet of interest. The =MID command might be located anywhere.

Dave
dvt at psu dot edu


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off