can XLOOKUP search in closed workbook?

Arie Bos

Board Regular
Joined
Mar 25, 2016
Messages
224
Office Version
  1. 365
Platform
  1. Windows
I have the following formula:
Excel Formula:
=XLOOKUP($C$7;Customers.xlsx!CustomerData[Name];Customers.xlsx!CustomerData[Address])&""
THis works fine as long as the workbook 'Customers' is open. But when I close that file, the full path is inserted, resulting in #REF!:
Excel Formula:
=XLOOKUP($C$7;'https://xxxxxxxxx.sharepoint.com/sites/Corporate/Shared Documents/Sales/PO/Customers.xlsx'!CustomerData[Name];'https://xxxxxxxxx.sharepoint.com/sites/Corporate/Shared Documents/Sales/PO/Customers.xlsx'!CustomerData[Address])&""
(Note : xxxxxxxxx replaces company name)
Is there a way to still get the right result?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You cannot use structured references to closed workbooks, you will need use ranges instead.
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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