Not sure how to reference a path.

DeanRobinson

New Member
Joined
Sep 1, 2011
Messages
35
Hi all, ive got a yearly holiday register that i want to take information directly off of different departments daily registers.

what id like to do is use a cell reference to put in the file location of the sheet i need.

ive tried the formula

="'"&INDIRECT("B12")&" "&INDIRECT("a252")&INDIRECT("B11")

which returns the below.
<TABLE style="WIDTH: 449pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=598><COLGROUP><COL style="WIDTH: 449pt; mso-width-source: userset; mso-width-alt: 21869" width=598><TBODY><TR style="HEIGHT: 24pt" height=32><TD style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent; WIDTH: 449pt; HEIGHT: 24pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0" class=xl68 height=32 width=598>'[SL Attendance Register Aug.xls]SL1'!$C$5:$AG$100

now this works in my formula if its typed in but i dont want it hard coded into the formula, the full formula is

Code:
=IF(IF(ISERROR(VLOOKUP(I$10,CHOOSE(MID(I$11,3,1),'[SL Attendance Register NOV.xls]SL1'!$C$5:$AG$65,'[SL Attendance Register NOV.xls]SL2'!$C$5:$AG$65),MATCH($E17,CHOOSE(MID(I$11,3,1),'[SL Attendance Register NOV.xls]SL1'!$D$4:$AH$4,'[SL Attendance Register NOV.xls]SL2'!$D$4:$AH$4))+1,0)),"",(VLOOKUP(I$10,CHOOSE(MID(I$11,3,1),'[SL Attendance Register NOV.xls]SL1'!$C$5:$AG$65,'[SL Attendance Register NOV.xls]SL2'!$C$5:$AG$65),MATCH($E17,CHOOSE(MID(I$11,3,1),'[SL Attendance Register NOV.xls]SL1'!$D$4:$AH$4,'[SL Attendance Register NOV.xls]SL2'!$D$4:$AH$4))+1,0)))=0,"",(IF(ISERROR(VLOOKUP(I$10,CHOOSE(MID(I$11,3,1),'[SL Attendance Register NOV.xls]SL1'!$C$5:$AG$65,'[SL Attendance Register NOV.xls]SL2'!$C$5:$AG$65),MATCH($E17,CHOOSE(MID(I$11,3,1),'[SL Attendance Register NOV.xls]SL1'!$D$4:$AH$4,'[SL Attendance Register NOV.xls]SL2'!$D$4:$AH$4))+1,0)),"",(VLOOKUP(I$10,CHOOSE(MID(I$11,3,1),'[SL Attendance Register NOV.xls]SL1'!$C$5:$AG$65,'[SL Attendance Register NOV.xls]SL2'!$C$5:$AG$65),MATCH($E17,CHOOSE(MID(I$11,3,1),'[SL Attendance Register NOV.xls]SL1'!$D$4:$AH$4,'[SL Attendance Register NOV.xls]SL2'!$D$4:$AH$4))+1,0)))))
which im trying to shorten.


</TD></TR></TBODY></TABLE>
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,224,517
Messages
6,179,233
Members
452,898
Latest member
Capolavoro009

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