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 / Loop Index not increme...
Power Automate
Unanswered

Loop Index not incrementing

(0) ShareShare
ReportReport
Posted on by 15

Hello I am trying to iterate through a an excel document but it keeps come back to the same row.  

 

Maybe I should be doing a for each loop but I created variable and a each column of the spreadsheet

 

bhope_0-1651613548112.pngbhope_1-1651613617832.png

 

 

bhope_2-1651613684477.png

 

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    You want F and %LoopIndex%. Not 2. It’s looking at row 2 every time. Use your %LoopIndex% variable to define the row. 

    good luck!

  • VJR Profile Picture
    7,635 on at

    Apply the solution shared by Michael in "Read from Excel worksheet".

     

    Two things Additionally,

    1. In the "Loop" action use Start From 2 instead of 1 because of headers and that you want to start from F2.

    2. Before starting the Loop,

       Use "Get first free row on column" action for Column F.

       This will give you a variable called %FirstFreeRowOnColumn%

     

    - Then in the "Loop" action, use %FirstFreeRowOnColumn - 1% in the "End To" box. 

    This is to make your code dynamic. Not matter if there are 5, 10, 50, or xx rows, it will loop till the last available row.

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 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard