Retreive worksheet name ...

  • Thread starter Thread starter H.B.
  • Start date Start date
H

H.B.

Hi,

Is there a formula to retreive the current worksheet name in excel?

Thanks,

Hugo
 
Is there a formula to retreive the current worksheet name in excel?

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

The file must be saved first for this to work.

Rgds,
Andy
 
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))
+1,255)

Note: wb must saved to work.

HTH
Jason
Atlanta, GA
 
Hi
try one of the following formulas (note: the workbook has
to be save
before). Just use the formulas as they are shown (don't
replace 'filename' with anything else)

File path and file name:
=CELL("filename",A1)

File path only
=LEFT(CELL("filename",A1),FIND("[",CELL("filename",A1),1)-
1)

File name only
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)
+1,FIND("]",CEL
L("filename",A1),1)-FIND("[",CELL("filename",A1),1)-1)

The sheet name
=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND
("]",CELL("file
name",A1),1))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Retreive data for same agent 3
Multiple sheet querries 4
Vlookup from series of tabs 3
Deleted Data 2
Retreive data based on multiple column input 1
Lookup formula help 4
IF an array.. 1
How to Rank Name? 4

Back
Top