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
原文地址:https://www.cnblogs.com/m0488/p/12330589.html
时间: 2024-10-07 05:07:05