Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPA JPA is offline
external usenet poster
 
Posts: 5
Default Name Cell or Worksheet

Is it possible to use the function "cell" to access only the name of the
worksheet, instead of the whole path?

Formula-- =CELL("filename";A1)
Result-- C:\My Documents\[Table.xls]Sheet2

Result expected-- Sheet2

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Name Cell or Worksheet

=RIGHT(A1,LEN(A1)-FIND("]",A1))

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"JPA" wrote in message ...
| Is it possible to use the function "cell" to access only the name of the
| worksheet, instead of the whole path?
|
| Formula-- =CELL("filename";A1)
| Result-- C:\My Documents\[Table.xls]Sheet2
|
| Result expected-- Sheet2
|


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Name Cell or Worksheet

=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

For more on this subject see Bob Phillips' site.

http://www.xldynamic.com/source/xld.xlFAQ0002.html


Gord Dibben MS Excel MVP


On Sat, 10 Nov 2007 01:14:01 -0800, JPA wrote:

Is it possible to use the function "cell" to access only the name of the
worksheet, instead of the whole path?

Formula-- =CELL("filename";A1)
Result-- C:\My Documents\[Table.xls]Sheet2

Result expected-- Sheet2


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
copy cell from one worksheet to another worksheet in exel luvs_choc8 Excel Discussion (Misc queries) 1 July 10th 07 04:16 PM
Variable worksheet name (tab) linked to cell in same worksheet azbob Excel Worksheet Functions 6 January 9th 07 06:27 PM
copy data in a cell from worksheet A to worksheet B rajesh Excel Discussion (Misc queries) 1 February 21st 06 07:40 AM
How can I link cell colours from worksheet to worksheet/workbook? Evelyn Excel Worksheet Functions 1 July 5th 05 09:16 PM
Worksheet reference (i.e placing worksheet name in a cell) Roger Roger Excel Worksheet Functions 1 January 20th 05 03:40 PM


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