A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi Esha Jones,
Good day to you! Thank you for reaching out to Microsoft Community.
In order to use the VLOOKUP formula between 2 excel files, please take the following steps:
- Open the SharePoint file in Excel:
- Open the SharePoint-hosted file in Excel app (not in the browser)
- Excel will map the SharePoint file to a web-based path like: https://yourcompany.sharepoint.com/sites/YourSite/SharedDocuments/FileB.xlsx
- Use the full path in the VLOOKUP formula in file A, referencing file B: =VLOOKUP(A2, '[https://yourcompany.sharepoint.com/sites/YourSite/SharedDocuments/FileB.xlsx]Sheet1'!$A$2:$B$100, 2, FALSE), in which:
- A2: The value you’re looking up.
- '[https://yourcompany.sharepoint.com/sites/YourSite/SharedDocuments/FileB.xlsx]Sheet1'!$A$2:$B$100: The range in File B where the lookup should happen.
- 2: The column number in the range from which to return the value.
- FALSE: Ensures an exact match.
- Authentication
- You must be authenticated to SharePoint (usually via Microsoft 365 login).
- If you're not signed in, Excel may prompt you to log in or fail to load the data.
This is the result after taking the steps above:
Hi Esha Jones,
Good day to you! Thank you for reaching out to Microsoft Community.
In order to use the VLOOKUP formula between 2 excel files, please take the following steps:
- Open the SharePoint file in Excel:
- Open the SharePoint-hosted file in Excel app (not in the browser)
- Excel will map the SharePoint file to a web-based path like: https://yourcompany.sharepoint.com/sites/YourSite/SharedDocuments/FileB.xlsx
- Use the full path in the VLOOKUP formula in file A, referencing file B: =VLOOKUP(A2, '[https://yourcompany.sharepoint.com/sites/YourSite/SharedDocuments/FileB.xlsx]Sheet1'!$A$2:$B$100, 2, FALSE), in which:
- A2: The value you’re looking up.
- '[https://yourcompany.sharepoint.com/sites/YourSite/SharedDocuments/FileB.xlsx]Sheet1'!$A$2:$B$100: The range in File B where the lookup should happen.
- 2: The column number in the range from which to return the value.
- FALSE: Ensures an exact match.
- Authentication
- You must be authenticated to SharePoint (usually via Microsoft 365 login).
- If you're not signed in, Excel may prompt you to log in or fail to load the data.
This is the result after taking the steps above:
Note
- Make sure the file paths and sheet names are correct.
- If File B is moved or renamed, the formula will break.
- For better performance and flexibility, consider using Power Query or INDEX/MATCH as alternatives
- Both files must be open in Excel for the formula to resolve easily.
If you have any further questions, please don’t hesitate to ask. Looking forward to your response.
Best regards,
Jay-Tr– MSFT | Microsoft Community Support Specialist
Note
- Make sure the file paths and sheet names are correct.
- If File B is moved or renamed, the formula will break.
- For better performance and flexibility, consider using Power Query or INDEX/MATCH as alternatives
- Both files must be open in Excel for the formula to resolve easily.
If you have any further questions, please don’t hesitate to ask. Looking forward to your response.
Best regards,
Jay-Tr– MSFT | Microsoft Community Support Specialist