Forum Discussion

eddymalcs's avatar
eddymalcs
Copper Contributor
Feb 24, 2022
Solved

Insert current file name only

I am using the formula  =MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1) to insert the file name into a cell. I would like th...
  • Riny_van_Eekelen's avatar
    Feb 24, 2022

    eddymalcs Perhaps like this?

     

    =SUBSTITUTE(MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1),".xlsx","")

     

Resources