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 / Conditional logic base...
Power Automate
Answered

Conditional logic based on Excel fields

(0) ShareShare
ReportReport
Posted on by 15

 I have just started learning PAD and I suspect this question reflects a basic misunderstanding of how PAD deals with Excel data.

My first PAD sample takes the rows or one Excel file B and appends it to an existing file A, essentially adding new rows.

It is not a simple append, though, as the columns structure of the two files is not identical. Currently I read in the appropriate fields from B, and write each to its matching column in A.

 

Problems occur only in two areas:

1) When I need to transform a field value in B. For example, replacing a "-'" with a zero

2) Stopping the iteration when I reach a blank row in B.

 

In these cases, the circled conditions are never recognized

 

CliffReeves_0-1620264774132.png

I suspect this is because PAD sees these two fields retrieved from Excel as tables, or perhaps there's a data typing issue. Both fields are typed as  "general" in the Excel source file.

 

I'd welcome any advice, including RTFM (as long as you point me to the manual and, ideally, the chapter)

 

Thank you.

  • fraenK Profile Picture
    2,125 on at

    After opening your main Excel file, you'll need to get the first free row to limit your read from Excel action to the rows with content:

    https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/excel#getfirstfreerowoncolumn 

  • Verified answer
    CliffReeves Profile Picture
    15 on at

    I have solved my own problem: my mistake was that I had read each cell as a range of cells rather  than an individual cell. (in other words I had read Cell Range A1 to A1 (which is a single cell) as a range of cells. Once I corrected that error the conditionals worked just fine.

  • CliffReeves Profile Picture
    15 on at

    Fraenk .... thank you for the suggestion. I found the problem. It was my own error. I have marked the solution.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 198

#3
David_MA Profile Picture

David_MA 197 Super User 2026 Season 2

Last 30 days Overall leaderboard