Forum Discussion
eddymalcs
Feb 24, 2022Copper Contributor
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...
- Feb 24, 2022
eddymalcs Perhaps like this?
=SUBSTITUTE(MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1),".xlsx","")
Riny_van_Eekelen
Feb 24, 2022Platinum Contributor
eddymalcs Perhaps like this?
=SUBSTITUTE(MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1),".xlsx","")
eddymalcs
Feb 24, 2022Copper Contributor
Thank you, that works well.