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 / Return next row specif...
Power Automate
Answered

Return next row specified column value from Excel if specific value is equal to

(0) ShareShare
ReportReport
Posted on by 7

Hi, 

 

I have a power automate that is trigged by a form completion. It then looks at an excel table and I want it to return the value of a column of the next row only if column 'Allocated' is 'No'. the value should return into an email that will then be sent to the form submitter. It's currently sending an email for all table row items. I only want it to return the next available row specified value. Are there any other conditions I should set up? 

 

Power Automate.jpg

Power Automate.jpg
Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @ADenniss 

     

    By next available row, do you mean the latest row? Could you pls explain the use case?

     

    Thanks

  • ADenniss Profile Picture
    7 on at

    Hi Super User, 

     

    Thanks for responding. 

     

    So I want it to look at the excel file and find the next row where 'Allocated' is 'No' and return the value of the 'Unique ID' and 'Gift Card' column. Once the Power Automate runs and issues the next row item I want it to update the excel file 'Allocated' column to 'Yes'. 

     

    Power Automate - Excel.jpg

  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @ADenniss 

     

    Please modify the "List rows present in a table" action to include the filter query & set top count as 1. With these changes, this action will return only a single row where column 'Allocated' value is No:

    ManishSolanki_1-1699385914183.png

    Filter query used in above screenshot:

    Allocated eq 'No'

     

    Now, from the flow remove the condition action as it is not required. 

     

    Inside "Apply to each" action block, add "Send an email" action and choose the unique id & link column from the dynamic content from the "List rows present in a table" action:

    ManishSolanki_2-1699386159787.png

     

    Finally, add the "Update a row" action to modify the Allocated column to Yes:

    ManishSolanki_3-1699386278634.png

     

    The overall structure of the flow looks like:

    ManishSolanki_4-1699386324348.png

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • ADenniss Profile Picture
    7 on at

    Thank you so much! This solved the problem, I appreciate 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
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard