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 / How to put columns nam...
Power Automate
Answered

How to put columns name in excel file and display the transposed value in the columns.

(0) ShareShare
ReportReport
Posted on by 2

Hello Everyone,

 

It will be grateful if someone can help me out to store the data in the first row after columns headers in excel file.

 

So , I am first splitting the result in text format in list and then i am trying to transpose the list values in excel file. I provide columns in the excel file but when i run the workflow the results are getting transposed and its coming in the first row . I cant see the column names all i want the results should get display in the first row after the columns headers . So , for example say i have four columns Name1, Name2 , Name3 , Name4 . I want the results to get printed for these columns .ListtoExcel.PNGresultlsittoexcel.PNG

  • Verified answer
    VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @Rahul_skl ,

     

    Please find the solution.

     

    VishnuReddy1997_0-1713788990070.png

     

    Code:

    Please Copy the below code to your flow it will work.

     

    SET Names TO $'''Vishnu,Vardhan,Reddy'''
    Text.SplitText.SplitWithDelimiter Text: Names CustomDelimiter: $''',''' IsRegEx: False Result=> HeroList
    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''C:\\Users\\OneDrive\\Desktop\\Power Automate Desktop\\Practice\\Input.xlsx''' Visible: True ReadOnly: False Instance=> ExcelInstance
    SET Column_Value TO 1
    LOOP FOREACH CurrentItem IN HeroList
     Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: CurrentItem Column: Column_Value Row: 2
     Variables.IncreaseVariable Value: Column_Value IncrementValue: 1
    END

     

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Vishnu Reddy

  • Rahul_skl Profile Picture
    2 on at

    Thank you so much Vishnu 🙂 Yes Its working fine now 🙂

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard