Skip to main content

Notifications

Community site session details

Community site session details

Session Id : hPlKEnCq+Vtxs0+NpLQY8+
Power Automate - Using Connectors
Answered

Need Help with Excel File Automation in SharePoint

Like (1) ShareShare
ReportReport
Posted on 30 Oct 2023 13:46:10 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,859 Super User 2025 Season 1 on 06 Oct 2024 at 23:03:31
    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 01 Nov 2023 at 01:41:49
    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 31 Oct 2023 at 10:50:30
    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 31 Oct 2023 at 10:11:05
    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 31 Oct 2023 at 09:26:50
    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 31 Oct 2023 at 07:36:42
    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics