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 / Need Help with Excel F...
Power Automate
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!

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    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,

  • user12341 Profile Picture
    8 on at

    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
    Microsoft Employee on at

    Hi @user12341 ,

     

    Have you formatted data in that xlsx file into table? 

     

    Best regards,

  • user12341 Profile Picture
    8 on at

    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
    Microsoft Employee on at

    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,

  • takolota1 Profile Picture
    4,980 Moderator on at
    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…

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard