aka_krakur
Active Member
- Joined
- Jan 31, 2006
- Messages
- 438
I have a vlookup that I am trying to lookup a file on the network.
When the file is open it's no problem and the simple method works
So I found some solutions online that I was hoping would work;
and I just can't seem to get it to work. The results of the below code give me a #REF! result
The results of the long network path is because I want it to update according to how the folders/files will update for future quarters/years.
so path of the file today is truly:
\\NETWORK1\folder1\2011\2011 BSI Folder\Q4 2011\Filename.xls with a worksheet tab being Q4-2011
Any help would be greatly appreciated. Not sure what I'm getting wrong here.
When the file is open it's no problem and the simple method works
Code:
=vlookup($a2,INDIRECT("'[Filename.xls]Q" &
Roundup(month(today())/3,0) & "-" &
text(today(),"YYYY") & "'!$A:B"),2,FALSE)
So I found some solutions online that I was hoping would work;
and I just can't seem to get it to work. The results of the below code give me a #REF! result
The results of the long network path is because I want it to update according to how the folders/files will update for future quarters/years.
so path of the file today is truly:
\\NETWORK1\folder1\2011\2011 BSI Folder\Q4 2011\Filename.xls with a worksheet tab being Q4-2011
Code:
=vlookup($a2, INDIRECT("\\NETWORK1\folder1\" & TEXT(TODAY(),"YYYY") &
"\" &TEXT(TODAY(),"YYYY")&" BSI Folder\Q" & ROUNDUP(MONTH(TODAY())/3,0)
&" " & TEXT(TODAY(),"YYYY") &"\'[Filename.xls]Q" & ROUNDUP(MONTH(TODAY())/3,0)
& "-" & TEXT(TODAY(),"YYYY") & "'!$A:G"),2,0)