1. EXCEL中获得工作表(sheet)的名称:
RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename")))
=MID(CELL("filename",$A$1),FIND("]",CELL("filename",$A$1)) 1,LEN(CELL("filename",$A$1))-FIND("]",CELL("filename",$A$1)))
2. Excel 工作簿(文件)名 (WorkBook)
=RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename")))
=MID(CELL("filename",$A$1),FIND("[",CELL("filename",$A$1)),FIND("]",CELL("filename",$A$1))-FIND("[",CELL("filename",$A$1)) 1)
3. 取工作表名及路径
=CELL("filename",$A$1