Both work, but the first uses six function calls while the second uses
four. String functions are relatively slow, so I prefer to use fewer of
them.
If you only have one such construction, you'd be hard pressed to put the
millisecond saved to good use. OTOH, if your model is function
intensive, maximizing the efficiency of calculations may be worthwhile.
Note that "cellref" can be any cell on the desired worksheet.
Jack Schitt said:
=RIGHT(CELL("filename",cellref),LEN(CELL("filename",cellref))-FIND("]",CELL(
"filename",cellref)))
Or some use
=MID(CELL("filename",cellref),1+FIND("]",CELL("filename",cellref)),255)
Not sure if there is any preference between the two.
For "cellref" substitute the cell reference of the formula.