Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Answered

Need Help with Excel File Automation in SharePoint

(1) ShareShare
ReportReport
Posted on by 8

Hey there, Power Automate enthusiasts!

I'm working on a project where I need to automate some tasks involving Excel files in SharePoint, and I could use some guidance. Here's what I'm trying to accomplish:

  1. Fetch an Excel File: I want to fetch an Excel file (.XLSX) from a specific location in SharePoint.

  2. Extract Content: Once I have the Excel file, I need to extract specific data from it.

  3. Data Manipulation: I want that some of the columns have shortcut like Y and N so in change Y to yes and N to NO , also in one column I am getting full form of address I want only last 5 words of that value.

  4. Store Back in SharePoint: After the data manipulation, I want to store the modified Excel file back in SharePoint AS CSV

I'm somewhat familiar with Power Automate, but I'm not sure how to set up this workflow efficiently and reliably. If anyone has experience with a similar task or any suggestions, I'd greatly appreciate your insights and guidance.

Please feel free to share your knowledge, tips, or even step-by-step instructions if you have them. Any Power Automate gurus out there who can help me out?

Thanks in advance for your assistance!

  • takolota1 Profile Picture
    4,896 Super User 2025 Season 1 on at
    Need Help with Excel File Automation in SharePoint
    You can also use this template Azure Function to pull data from any Excel sheet without the need for table formatting...
    https://community.powerplatform.com/galleries/gallery-posts/?postid=eea06380-8483-ef11-ac21-7c1e5201b42f

    Or if you need something without premium connectors, then you can use these Office Script templates…
  • v-jefferni Profile Picture
    on at
    Re: Need Help with Excel File Automation in SharePoint

    Hi @user12341 ,

     

    Anyway, you need to format excel data as table so that in Power Automate data could be retrieved. Please follow below blog and use office script to format data into table first:

    Get Excel Data into Power Automate That Is Not Formatted as a Table | by Kyle Gibson | Medium

     

    Best regards,

  • user12341 Profile Picture
    8 on at
    Re: Need Help with Excel File Automation in SharePoint

    Yes I have XLSX File And that's why I am not able to get any tables into the LIST ROW FROM TABLE

  • v-jefferni Profile Picture
    on at
    Re: Need Help with Excel File Automation in SharePoint

    Hi @user12341 ,

     

    Have you formatted data in that xlsx file into table? 

     

    Best regards,

  • user12341 Profile Picture
    8 on at
    Re: Need Help with Excel File Automation in SharePoint

    Hello @v-jefferni 
         I've Followed your demonstration but In the first Step of LIST ROW IN TABLE I am not able to get tables in table field.
    So I've Used GET FILE CONTENT FROM SHAREPOINT to get the data but How can I use that data to create CSV File from that ?

    Also In GET FILE CONTENT I am getting data something like this form : 

    user12341_0-1698744562404.png

     

  • v-jefferni Profile Picture
    on at
    Re: Need Help with Excel File Automation in SharePoint

    Hi @user12341 ,

     

    Please refer to below screenshots, the flow I created for demonstration:

    vjefferni_0-1698736980033.png

    vjefferni_1-1698737308785.png

    vjefferni_2-1698737348085.png

     

    Expression in Select:

    for Y/N columns: 

    if(equals(item()?['Column1'],'Y'),'Yes',if(equals(item()?['Column1'],'N'),'No',item()?['Column1']))

     

    for address column:

    join(reverse(take(reverse(split(item()?['Address'], ' ')),5)),' ')

    logic: split the address with space as separator, reverse the order of result array, take the first five words and reverse back the order, at last use space as separator to concatenate the words together and get the result you want.

     

    Best regards,

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics