Skip to main content

Notifications

Power Automate - General Discussion
Answered

How to delete data from specific range of cells?

(0) ShareShare
ReportReport
Posted on by 27

Hi everyone,

 

I want to create a scheduled flow to delete data from a specific range of cells. 

snip.png

 

 

For the above table, I want the flow to automatically delete the data in the "Available hours" column and leave it blank. 

 

Looking forward to your replies! Thank you!

  • calinpff Profile Picture
    calinpff 27 on at
    Re: How to delete data from specific range of cells?

    Thank you very much for your help, Grant! It finally worked. 🙂 

  • calinpff Profile Picture
    calinpff 27 on at
    Re: How to delete data from specific range of cells?

    *

  • calinpff Profile Picture
    calinpff 27 on at
    Re: How to delete data from specific range of cells?

    Hi @grantjenkins ,

     

    Thank you for taking the time! 

     

    I'm adding the string('') expression for my row, however it doesn't stay there after saving the flow. It gets deleted. 

     

    Thanks again!

     

  • Verified answer
    grantjenkins Profile Picture
    grantjenkins 11,057 on at
    Re: How to delete data from specific range of cells?

    This is how you might be able to achieve what you're after. However, this assumes all the Names are unique and not null.

     

    For this example, I'm using the following Excel Table. I'll be clearing the Amount column values.

    grantjenkins_1-1700656948929.png

     

    See full flow below. I'll go into each of the actions.

    grantjenkins_0-1700656893414.png

     

    Recurrence will run on the schedule to suit your needs.

    grantjenkins_3-1700657114721.png

     

    List rows present in a table will retrieve all the rows. Note that by default this will only return the first 256 rows. If you have more rows than this then you can set the Top Count to cover the rows you have. I've set mine to 5000 (max you can have) just as an example.

    grantjenkins_2-1700657097770.png

     

    Apply to each will iterate over each of the rows.

    grantjenkins_4-1700657143780.png

     

    Update a row will update each of the rows using the Name column to uniquely identify each row. This is where it's important that each of your Names are unique and there are no blank names. To update the Amount (remove the value) you would use the following expression.

    string('')

    grantjenkins_5-1700657240361.png

     

    After running the flow we would have the following table (Amount values have been cleared).

    grantjenkins_6-1700657322156.png

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard