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 / Repplace values in Excel
Power Automate
Unanswered

Repplace values in Excel

(0) ShareShare
ReportReport
Posted on by 24

In Excel,

Value of first row is "a", and the next subsequent rows are empty, those needs to be filled with the value same as the first row i.e "a" until it encounters other value. The moment it gets the value "d"  the next rows after "d " should be "d" replacing the empty values and so on irrspective of number of rows below it.

For Eg: The input is,

Swatiba_0-1677849973288.png

and the Desired output should be,

Swatiba_1-1677850077815.png

 

 

I have the same question (0)
  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi @Swatiba ,

     

    Here is a sample flow logic. if required customize it as per your need.

    Kaif_Siddique_0-1677957216759.png

     

    Copy & Paste to flow designer

    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''D:\\Fill Excel\\Sample Data.xlsx''' Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.GetFirstFreeRowOnColumn Instance: ExcelInstance Column: $'''H''' FirstFreeRowOnColumn=> FirstFreeRowOnColumn
    LOOP LoopIndex FROM 2 TO FirstFreeRowOnColumn STEP 1
    Excel.ReadFromExcel.ReadCell Instance: ExcelInstance StartColumn: $'''H''' StartRow: LoopIndex - 1 ReadAsText: False CellValue=> ExcelData1
    Excel.ReadFromExcel.ReadCell Instance: ExcelInstance StartColumn: $'''H''' StartRow: LoopIndex ReadAsText: False CellValue=> ExcelData2
    IF ExcelData2 = $'''%''%''' THEN
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: ExcelData1 Column: $'''H''' Row: LoopIndex
    END
    END

     

     

    If I have answered your question, please mark my post as Solved.

    If you like my response, please give it a Thumbs Up.

     

    Regards

    Kaif

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard