Thì dùng công thức sauThế nếu em muôn lấy mỗi Book1 (C:\Documents and Settings\ANHTUAN\Desktop\[Book1.xls]Sheet1) Tức là em chỉ muôn lấy mỗi tên của file thôi?
PHP:
=MID(CELL("filename",A1), FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)
Nếu không lấy đuôi file và tên thư mục file không chứa dấu . thì (thường là vậy). công thức như sau
PHP:
=MID(CELL("filename",A1), FIND("[",CELL("filename",A1))+1,FIND(".",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)
-
-