This tutorial will teach you how to get a file name using a formula in Excel Get File Name In Excel there isn't a function to get the file name directly However, the CELL Function will return the file path, name, and sheet Using the text functions FIND and MID, you can extract just the file nameHere is the full Excel formula to display the sheet name in a cell;Get Sheet Name In Excel there isn't any one function to get the sheet name directly But you can get a sheet name using VBA, or you can use the CELL, FIND, and MID functions 1 = MID(CELL(filename),FIND(,CELL(filename)) 1,31) Let's go through the above formula
How To Reference Tab Name In Cell In Excel