Does anyone know how to get the filename in cell without using the CELL function (so that it can work if the file is opened in Sharepoint)?
It turns out (see here) we can get the sheet name in a cell using something like below as as a named reference, e.g. 'GetSheetName' and then
I was wondering if anyone knows how to do something similar for the file name?
It turns out (see here) we can get the sheet name in a cell using something like below as as a named reference, e.g. 'GetSheetName' and then
=GetSheetName(Sheet1!A1)
in a cell:
Excel Formula:
=LAMBDA(refCell, LET(frmTxt, FORMULATEXT( INDIRECT( ADDRESS(ROW(),COLUMN()) ) ), SUBSTITUTE(TEXTAFTER( TEXTBEFORE(frmTxt,"!",[B]-1[/B]), "(", -1), "'", "") ))('Sheet1 Copy'!A1)
I was wondering if anyone knows how to do something similar for the file name?