I have used:
=RIGHT(LEFT(CELL(“filename”),(SEARCH(".ods’",CELL(“filename”),1)+3)),LEN(LEFT(CELL(“filename”),(SEARCH(".ods’",CELL(“filename”),1)+3)))-FIND("@",SUBSTITUTE(LEFT(CELL(“filename”),(SEARCH(".ods’",CELL(“filename”),1)+3)),"/","@",LEN(LEFT(CELL(“filename”),(SEARCH(".ods’",CELL(“filename”),1)+3)))-LEN(SUBSTITUTE(LEFT(CELL(“filename”),(SEARCH(".ods’",CELL(“filename”),1)+3)),"/",""))),1))
It is very long.
Can you please show yours shorter than this ?