Feb 24 2022 04:29 AM
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 this to work without inserting the .xlsx suffix. How can this formula be modified to achieve that please?
Feb 24 2022 04:36 AM - edited Feb 24 2022 04:37 AM
Solution@eddymalcs Perhaps like this?
=SUBSTITUTE(MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1),".xlsx","")
Feb 24 2022 04:36 AM - edited Feb 24 2022 04:37 AM
Solution@eddymalcs Perhaps like this?
=SUBSTITUTE(MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1),".xlsx","")