Error in finding tab name formula

ratedr95

New Member
Joined
Oct 5, 2016
Messages
7
Hi there,

I am trying to write a formula (could potentially be easier in VBA but haven't tried that route) which will look at a document called PL and compare the value of a cell on a particular sheet within PL to the another cell on a document called P&L.

Code:
=[PL.xlsx]RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename")))!$C$8

This is what I am using for the formula at the moment, its not finished as it doesn't compare the values just yet mainly because it is not getting the value from the PL sheet.

I have tried writing the document location like

Code:
='P:\Desktop\BUDWIP\[PL.xlsx]

But it doesn't work and gives me an invalid references error highlighting the P: in that code.

Any suggestions on how I can make this work?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Welcome to the board.

You need indirect for that.

Try
=INDIRECT("'[PL.xlsx]"&RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename")))&"'!C8")
 
Upvote 0
If I could kiss you right now I would (not in a weird way)

I spent over two hours trying to get this to work and Googling etc and it was as simple as that!

THANK YOU!!
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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