Using Cell Value in File Path

sdcamp3020

Board Regular
Joined
Mar 5, 2008
Messages
54
I have a summary log where I keep up with shop time on all active jobs. Column A contains the Job Folder Name and Cell B contains the Shop Hours excluding Field Hours for that particular job. The formula used to calculate these hours is:

='\\Server08\f\Sandra\Job Cost Logs\2011\[11-09670.xls]Job Summary'!$D$30-'\\Server08\f\Sandra\Job Cost Logs\2011\[11-09670.xls]Job Summary'!$D$28

Is there a way to substitute the value of the corresponding cell A for the file name? Such as using the value found in A151 in place of 11-09670.

Thanks!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
From the link below:

http://office.microsoft.com/en-us/e...nt-excel-file-name-in-a-cell-HA001034627.aspx
Insert the current file name only (for example, test.xls)

Enter the following formula to insert the name of the current file in a cell:
<code>=MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1)</code>
Note If you use this formula on an unsaved worksheet, you receive the error #VALUE!. When you save the worksheet, the error is replaced by the filename.
 
Upvote 0
I am not trying to insert the current file name. I am using a formula to look up values in multiple workbooks out on our server all named for a particular job. The summary sheet I have pulls the shop time listed on the job summary page of the job workbook named in column A. Therefore I want my to replace the section "11-09670" in my formula with whatever is listed in Column A of the corresponding row. That way, when I add the next days open jobs ... 11-09680, 11-09690, 11-09700 ... I won't have to change the formula each time.

Thanks though!
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,833
Members
452,947
Latest member
Gerry_F

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