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 / Autofill column B acco...
Power Automate
Suggested Answer

Autofill column B according to the repective row of column A

(0) ShareShare
ReportReport
Posted on by
Hi,
How can I istruct Powe Automate to insert the text FP in the column B if the respective cell of columna A contains any text, like in the example?
 

B1 is FP because A1 contain text
B2 is empty because A1 is empty
B3 is FP because A3 contains text
B4 is FP because A4 contains text
B5 is empty because A5 is empty
….
Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    679 on at
    Hi,
     
    There are several ways to achieve this. In case you have a table in Excel, you can use the Excel actions to read and write to the tables. You can then loop all records in the table and perform actions.
    Your current screenshot shows no table, nor headings. There is an option to edit Excel sheets using Microsoft Graph connections. Here is an example: Power Automate: Read / Write to Excel using Microsoft Graph (Fast!) – PAWIT.PW
     
    Anyway, as you have a pre-defined logic, you can also use an Excel formula.
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    If your Excel table has Column A → source column, Column B → target column
     
    Then in Power Automate:
    • List rows present in a table
    • Apply to each row
    • Add a Condition:
      • If Column A is not empty then
        • Update a row Set Column B = FP  Power Fx - not(empty(items('Apply_to_each')?['ColumnA']))
      • Else
        • Set Column B = empty (optional)
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
     
    If you want to update the Excel file using Power Automate, your Excel range needs to be formatted as a Table. If it is not already a table, select the data range in Excel, then go to Insert > Table.

     
    After that, you can build the flow like this:
     
    1. List rows present in a table and choose your Excel file
    2. Apply to each 
     
    3.  Condition:  
    empty(items('Apply_to_each')?['Column1']) is equal to false
     
    If false meaning column A is not empty update column B with.
     
     
    So when the condition is True:
     
    Update the row
     
     
    If you do not want to, or cannot, use a Table in Excel, then you do not need Power Automate for this. You can simply use an Excel formula in column B:
     
    =IF(A2<>"";"FP";"")
     
    Hope it helps!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard