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 / I have to write the va...
Power Automate
Unanswered

I have to write the values into excel a list and have to write items in odd number of rows into one column and items in even rows to other column

(0) ShareShare
ReportReport
Posted on by 76

INPUT:

How to Finish Everything You Start
Jan Yager
மலர்ச்சரமே மாலை சூடவா! ( Malarcharame malai soodava!!) (Tamil Edition)
Ms. Suba Srisi
Harry Potter and the Philosopher's Stone
J.K. Rowling
The 7 Habits of Highly Effective People: Infographics Edition: Powerful Lessons in Personal Change
Stephen R. Covey
30 DAYS: Change your habits
Change your life
Marc Reklau
The Gita
Anant Pai

 

OUTPUT IN EXCEL SHOULD BE LIKE:

Book Name                                                                     Author Name

How to Finish Everything You Start                                Jan Yager

  

It should be like this for all items in the list. Is there a solution to it in Power Automate Desktop? 

  • revv Profile Picture
    76 on at

    I tried giving the column value as "A" + %Counter% but it throws an error of "Unable to write to Excel"

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Assuming your list is stored in a variable called %List%, you could do this:

    Agnius_0-1701934642823.png

    This will loop through it incrementing by 2 on each iteration. And it will write the appropriate values to the row starting at row 2 (assuming you have a header in row 1).

     

    Here's a snippet you can copy and paste into your PAD designer to have the actions created for you:

    LOOP LoopIndex FROM 0 TO List.Count - 1 STEP 2
     Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: List[LoopIndex] Column: $'''A''' Row: LoopIndex / 2 + 2
     Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: List[LoopIndex + 1] Column: $'''B''' Row: LoopIndex / 2 + 2
    END
    

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard