I'm trying to use an XLOOKUP function in Excel referencing a file that is in SharePoint online (aka SharePoint for web)
When the file opens, Excel seems to substitute servername-my.sharepoint.com" plus the active path for "servername.sharepoint.com" and the specified path and thus it returns an error.
However, once the file is open, it seems to look in the right place. If I change the Lookup_value, the formula returns the correct rate.
Is there anything I can do to force Excel to look in the specified path, and not "SERVERNAME-my.sharepoint path" when opening the file??
There are no issues with access to the file or the SharePoint location, and as I said, once the file is open and the two error messages dismissed, the lookup works correctly. I tried disabling auto-calculation in the Workbook_Open() macro. I've tried
to force Excel to update the links. Nothing. The workbook works without error if I add the tax table to a hidden sheet in the same file. But I want to be able to simply maintain the external tax table and have all copies of the template file the formula is in accurate regardless of when they were created.
I have found similar issues on other threads and other forums. But no satisfactory answers.
Thank You.
Excel Formula:
=XLOOKUP(NUMBERVALUE(B9),'https://SERVERNAME.sharepoint.com/sites/XXXStoreDevelopment/Doc Box/[SUT_Rates_01012023.xlsx]TxRates_20230101'!$G:$G,'https://SERVERNAME.sharepoint.com/sites/XXXStoreDevelopment/Doc Box/[SUT_Rates_01012023.xlsx]TxRates_20230101'!$I:$I,"",0,1)/100
However, once the file is open, it seems to look in the right place. If I change the Lookup_value, the formula returns the correct rate.
Is there anything I can do to force Excel to look in the specified path, and not "SERVERNAME-my.sharepoint path" when opening the file??
There are no issues with access to the file or the SharePoint location, and as I said, once the file is open and the two error messages dismissed, the lookup works correctly. I tried disabling auto-calculation in the Workbook_Open() macro. I've tried
VBA Code:
ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources, Type:=xlExcelLinks
I have found similar issues on other threads and other forums. But no satisfactory answers.
Thank You.