automating function change

L

leeners82

I'm wondering if there is a way to alter a function so that each month
a reference in a function changes. More specifically, in this case
every month the file "International Breakdown 'Month' changes so tha
'month' is that current month. Is there a way to have this chang
automated such as referencing another cell where the month is entered?

Here is the current function:
=IF(D10="","",VLOOKUP(D10,'[International Breakdown Month.xls]Re
ss'!$A$7:$L$29,8,FALSE)
 
F

Frank Kabel

Hi
this depends if your file is open or not. If it is open you may use
something like
=IF(D10="","",VLOOKUP(D10,INDIRECT("'[International Breakdown " &
TEXT(TODAY(),"MMMM") & ".xls]Recss'!$A$7:$L$29"),8,FALSE))

BUT if this other file is closed, no way to do this
 
L

leeners82

is there a way to allow the user through a prompt or similar to selec
which file will be used in the function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top