Variable Folder referencing in a cell formula.

CoolioDude

New Member
Joined
Mar 31, 2011
Messages
21
I have a problem trying to have the various data cell change the folder reference on a monthly basis after the month-end reports are complete. The excel file name reference is constant and does not change except for the folder reference e.g. 'T:\Finance\Finstmts\MB\P05-MAY\[MBSCHED.xls]Sched 1'!$F$16. The folder "P05-MAY" needs to be variable and refers to a vlookup reference that when I change a cell reference to the month e.g. 6 then the folder reference should change to "P06-Jun" but the Cell reference remains the same.

This is the code that I typed but it gives me a "#REF!" in the cell: ='T:\Finance\finstmts\MB\C2011\" & vlookup(C1,Q2:R13,2,FALSE) & "\[MBsched.xls]Sched 1'!$F$16.

Does anyone have any clue how I could get this to work.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Off the top of my head, it looks like you are missing double quotes at the very beginning of your first part, and at the very end of your last part of your formula:

="'T:\Finance\finstmts\MB\C2011\" & vlookup(C1,Q2:R13,2,FALSE) & "\[MBsched.xls]Sched 1'!$F$16"

 
Upvote 0
You could use the Find-Replace feature (Ctrl+H) to replace in the formulas all PO5-MAY with P06-JUN. That's not exactly what you asked for but it's easy enough to do.
 
Last edited:
Upvote 0
Off the top of my head, it looks like you are missing double quotes at the very beginning of your first part, and at the very end of your last part of your formula:

="'T:\Finance\finstmts\MB\C2011\" & vlookup(C1,Q2:R13,2,FALSE) & "\[MBsched.xls]Sched 1'!$F$16"


I have already tried that but it only give it to me as a text and not the data from the file that I am looking for. Is their another way of retriving data using this method?
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,256
Members
452,901
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top