
Hi @Daniel Murphy,
To sum cells of the same workbook across an entire folder located on OneDrive, you can use Power Automate flow to combine the worksheets into a single workbook and then use the SUM function to add up the values of the desired cells. Follow the steps below:
- Create a new Excel file in your OneDrive. The file name "Combination.xlsx" is used in this sample.
- Create and save the two scripts from this sample: "Return worksheet data" and "Add worksheets".
- Create a folder in your OneDrive and add one or more workbooks with data to it. The folder name "output" is used in this sample.
- Build a flow (as described in the Power Automate flow section of this article) to perform these steps:
- List all the files in the "output" folder.
- Use the "Return worksheet data" script to get the data from every worksheet in each of the workbooks.
- Use the "Add worksheets" script to create a new worksheet in the "Combination.xlsx" workbook for every worksheet in all the other files.
- In the "Combination.xlsx" workbook, use the SUM function to add up the values of the desired cells.
Reference:
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.