Sheet Name Code Template

Sheet Name Code Template

This sheet name code template allows you to display the name of an Excel sheet in a cell using a combination of formulas.

Here are the screenshots of the sheet name code template:

Sheet Name Code Template Screenshot

 

Sheet Name Code Template Screenshot 2

 

Download the Free Template

Enter your name and email in the form below and download the free template now!

Sheet Name Formula Template

Download the free Excel template now to advance your finance knowledge!

 

Sheet name formula

=MID(CELL(“filename”,A1),FIND(“]”,CELL(“filename”,A1))+1,500)

(See screenshots below)

Example of creating the sheet name code

Step 1: Type “CELL(“filename”,A1)”. The cell function is used to get the full filename and path . This function returns the filename of .xls workbook, including the sheet name.  This is our starting point, and then we need to remove the file name part and leave only the sheet name.

Step 2: Type “FIND(“]”,CELL(“filename”)+1,500″.  Essentially what the formula does is it goes into the file name, finds the “]” which is where the workbook name ends.  From there it moves over one character (+1) to where the sheet name starts.  Finally, we add 500 to the end, or any number that is larger than the number of characters a sheet name would realistically have.

 

More Free Templates

For more resources, check out our business templates library to download numerous free Excel modeling, PowerPoint presentation and Word document templates.

Financial Analyst Certification

Become a certified Financial Modeling and Valuation Analyst (FMVA)™ by completing CFI’s online financial modeling classes and training program!