Excel Lookup Functions w/ SharePoint Online source

TreeDude

New Member
Joined
Oct 1, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I'm trying to use an XLOOKUP function in Excel referencing a file that is in SharePoint online (aka SharePoint for web)

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
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.
1673999114082.png

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
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.
 

Attachments

  • 1673997596368.png
    1673997596368.png
    36.8 KB · Views: 14
  • 1673998915053.png
    1673998915053.png
    10.9 KB · Views: 13
  • 1673999047066.png
    1673999047066.png
    7.4 KB · Views: 15

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

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