
Dear @Frank Lin
Thank you for reaching out to the Microsoft Q&A Forum.
I understand that you are trying to get data from multiple workbooks within a folder on your Mac, but the "From Folder" connector is missing from the "Get Data" menu. This is a known limitation in Excel for Mac's Power Query feature compared to the Windows version.
However, I have tested a workaround that will allow you to achieve exactly what you need. It involves two main stages: first, granting Excel permission to access the folder using a simple command, and second, using a blank Power Query to pull in the data. Please follow below steps:
Step 1: Grant Excel Permission to Access the Folder
-Enable the Developer Tab > On the top menu bar, click Excel > Preferences > Select Ribbon & Toolbar > In the list on the right, check the box for Developer and click Save
-Use the Visual Basic Editor > Click on the new Developer tab, then click the Visual Basic button > In its menu bar, click View > Immediate Window > In this panel, type the following command, replacing "Your/Folder/Path/" with the actual path to your folder > Press Enter after typing the command > A macOS security prompt will pop up asking for permission to access files in that folder > Click OK or Grant Access > You can now close the Visual Basic Editor window.
Step 2: Get Data Using a Blank Power Query
-In your Excel workbook, go to the Data tab > Click Get Data (Power Query) > Blank Query > The Power Query Editor window will open > Please follow the steps shown in the two screenshots below, which I have tested in my own environment
After Power Query processes all the files, you will see a preview of your combined data > On the Home tab, click Close & Load. The data from all workbooks in your folder will now be loaded into a new sheet in Excel. While this method is more manual than on Windows, it is a reliable way to get data from a folder on a Mac.
Appreciate your patience and understanding. We hope the details provided will assist you effectively.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread