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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dividing data into two...
Power Automate
Unanswered

Dividing data into two sheets

(0) ShareShare
ReportReport
Posted on by 79

Hi All,
I want to create a flow wherein , i have created a flow wherein i import the excel data from localhost to SharePoint documents , but now what my agenda is the localhost excel file contains 6 columns , and when i import it to SharePoint documents the columns should be divided i.e 3 columns in Sheet 1 and 3 columns in sheet 2 but same excel file.

Categories:
I have the same question (0)
  • Yutao Huang Profile Picture
    Microsoft Employee on at

    Hello @sabeoleonunes ,

     

    Wondering if you can give the new "Run script" action of the Excel Online (Business) connector a try. I think you should be able to write some script (in Excel Online) and run it against the workbook to:

    • Add a new sheet to that workbook
    • Move the three columns from Sheet 1 to Sheet 2

     

    Here are a few links that might be helpful to learn more about this new "Run script" action of the Excel Online (Business) connector:

     

    And to learn more about Office Scripts in general:

    https://docs.microsoft.com/en-us/office/dev/scripts/overview/excel

     

    Hope this helps!

  • sabeoleonunes Profile Picture
    79 on at

    Hi @Yutao 

    It's not possible to directly create a flow for that?

  • Yutao Huang Profile Picture
    Microsoft Employee on at

    I think I'm just not sure if there is an easy way to move columns using the other actions in the Excel Online (Business) connector. Moving rows seems to be possible but that's not what we want here...

     

    Although we can probably work around it by first reading rows from the source table and selectively writing data into another table (which has only three columns) on the second sheet. But not sure how we can remove the last three columns from the source table once we've copied out the data.

     

    Anyone else have any suggestions?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard