excel formula - reference date in cell for file name in vlookup -


i have vlookup references prior month end file on shared drive. these files saved date in file name mmddyyyy.

=vlookup([@[dealercode]],'\\mypath\[performance_07312017.xlsm]sheetname'!$b:$k,10,false) 

the formula must manually changed @ beginning of each month. want have formula previous months file referencing current date in c1. i've tried following, #value.

=vlookup([@[dealer code]],concatenate("'\\mypath\[performance_",text(eomonth($c$1,-1),"mmddyyyy"),".xlsm]sheetname'!$b:$k"),10,false) 

i want leave month end files closed, don't think indirect option.

it seems should simple, i'm stumped. in advance guidance y'all can give.

the solution short of vba indirect, mentioned, not work closed files. there free add-in called morefunc.dll, has function called indirectext, works closed workbooks.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -