web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to split Excel tab...
Power Automate
Unanswered

How to split Excel table data into workbooks, save to sharepoint and send as email with workbook sharepoint links?

(0) ShareShare
ReportReport
Posted on by

I am new to power automate please help me set up this flow.

 

Using power automate to run from an Excel workbook.

The flow needs to split the Excel table data below, according to the column 'E' (user name e.g. jb99, nc9, rl123) and save columns 'A' to 'D' to an Excel workbook named, MonthYear_user.xlsx (e.g. Jan24_jb99.xlsx, Jan24_nc9.xlsx, Jan24_rl123.xlsx) to the sharepoint pathway in column 'G' (Each user will have their Sharepoint pathway/folder).  All the table data will be for the same month and year.  

Email the link of this workbook saved in the sharepoint pathway (Column G), to the email address in column 'E' and CC as per column 'F') with subject 'Month and Year attachment'  (e.g. Jan 24 attachment), email body 'Please see review file at the link'.

 

nc8_1-1712215848190.png

 

Example of files to be saved.

 

Jan24_jb99.xlsx to be saved in sharepoint folder jb99

nc8_3-1712218262524.png

 

Jan24_nc9.xlsx to be saved in sharepoint folder nc9

 

nc8_4-1712218326519.png

 

Jan24_rl123.xlsx to be saved in sharepoint folder rl123

 

nc8_5-1712218382706.png

 

Hope the requirements are clear enough.  Please let me know if you need more information.

 

Any assistance would be greatly appreciated.

 

 

 

 

 

Categories:
I have the same question (0)
  • Robby_WW Profile Picture
    115 on at

    Hey,

    I made a copy of your excel workbook and turned your data into a table and added an extra worksheet to it.

    changed the month to current month if you wanna do a recurrence every month on the same workbook.

    Robby_WW_0-1712324792008.pngRobby_WW_1-1712324832106.png

    Robby_WW_2-1712324882986.pngRobby_WW_3-1712324919706.png

     

     

    for unique emails 

    union(xpath(xml(json(concat('{"Root":{"Item":', union(body('Select_Excel_Data'), body('Select_Excel_Data')), '}}'))),'//Email/text()'),json('[]'))
     
    for filter data by date
    concat('/', formatDateTime(utcNow(), 'MM'), '/')
     
    for Create file
    formatDateTime(utcNow(),'MMMyy') & 
    slice(items('Apply_to_each_Email'),0,indexOf(items('Apply_to_each_Email'),'@'))
     
    For the script you need to open excel and go to automatization and make a script there.
    function main(workbook: ExcelScript.Workbook) { let data = workbook.getWorksheet("Blad1"); data.delete() }
     
    sorry if this is what messy, had to write this fast. 
    hope this helps you on your way.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard