If the name of the file is in A1 you can use in b1 = LEN(A1)