Changing Workbook references

garretht

New Member
Joined
Aug 13, 2007
Messages
7
I would like to change the referencing in cells based on a date inputed once. The current code is:
Code:
'C:\Users\Garreth\Documents\Cell Feedback Forms\Other\[Cell Feedback Form - Durward S - 07 August 2007.xls]Feedback Form'!$D$12:$G$12
, and I want the filename to draw reference to a cell with a date in it, to possibly look something like this:
Code:
'C:\Users\Garreth\Documents\Cell Feedback Forms\Other\[Cell Feedback Form - Durward S - C7.xls]Feedback Form'!$D$12:$G$12
, but can't get the filename to draw reference to the cell where the date is. Please help.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Welcome to the Board!

It sounds like you're after INDIRECT. Although if you want to refer to closed wb's you'll need to use INDIRECT.EXT, which is part of the MOREFUNC add-in. You'll find it here: Recommended Add-ins and Links.

I.E. =INDIRECT("'[Feedback Form - Shaun V Staden - "&A1&".xls]Sheet1'!A1")

Where &A1& is referring to the cell with the date.

Hope that helps,

Smitty

EDIT: looks like you edited your post substantially...
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,188
Members
448,554
Latest member
Gleisner2

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