I was writing a function to link indirectly to an external workbook and I came up with this:
=+INDIRECT("=+'"&$W$2&"\"&$Y$4&"\"&$X$4&"\["&$W$4&"]"&MID($W$4,1,LEN($W$4)-4)&"'!"&$U$15)
That though returns #REF!
as result
The part within the () brackets, when evaluated return the following:
"=+'C:\Folder0\Folder1\Folder2\Folder3\Folder4\Folder5\Folder6\Folder7\Folder8\
[MyFile.csv]NameTab'!$D$2"
and if I were to use it directly in a cell (once evaluated) would work
Could someone help me understand what is wrong here?