web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : aYbi+2T48BgdZg2e/pO6cr
Power Automate - Building Flows
Unanswered

Change value for all cells in a column?

Like (0) ShareShare
ReportReport
Posted on 7 Apr 2021 15:40:01 by 18

I have an Excel file with a column "Status" and the status is set to Yes.  I need to automate any value set to yes, changed to no.  Any advice? 

 

This is what I used so far, however it only changes the value on the first row. 

 

Screen Shot 2021-04-07 at 11.38.38 AM.png

I have the same question (0)
  • NorthernChuck Profile Picture
    152 on 07 Apr 2021 at 16:32:18
    Re: Change value for all cells in a column?

    I'm pretty close, you can probably make due from here. The single ticks are apparently not needed. All cells marked "Yes" were updated to "Maybe'" in my spreadsheet (see below)

    NorthernChuck_0-1617813022694.png

    Here's the flow. 

    NorthernChuck_1-1617813104738.png

     

    NorthernChuck_2-1617813129415.png

     

     

  • NorthernChuck Profile Picture
    152 on 07 Apr 2021 at 16:02:32
    Re: Change value for all cells in a column?

    @brodosi - which error is it feeding? Looking at those screenshots that's basically where I was headed......

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on 07 Apr 2021 at 16:02:13
    Re: Change value for all cells in a column?

    Hi @brodosi 

     

    I believe (but might be wrong) your filter query is wrong.

     

    Should be 

    Status eq 'Yes'

     

    But also, your key column needs to be unique, i.e. 1,2,3,4,5,6  You cannot have multiple rows with the same key value as it will always find the first one and therefore only update ONE row.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

     

     

  • brodosi Profile Picture
    18 on 07 Apr 2021 at 15:55:34
    Re: Change value for all cells in a column?

    @NorthernChuck Yes, that it.  

     

    Screen Shot 2021-04-07 at 11.52.29 AM.pngScreen Shot 2021-04-07 at 11.52.58 AM.pngScreen Shot 2021-04-07 at 11.52.49 AM.png

  • NorthernChuck Profile Picture
    152 on 07 Apr 2021 at 15:47:27
    Re: Change value for all cells in a column?

    NorthernChuck_0-1617810412130.png

    Is the above a good example of the table your are working with? 

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on 07 Apr 2021 at 15:45:24
    Re: Change value for all cells in a column?

    Hi @brodosi 

     

    With List rows, I would set a filter, where

     

    Status eq 'Yes'

     

    Then your apply to each should traverse through all "values" and update the row to No.

     

    When you say it only updates 1 row, how have your built the apply to each and update row?

     

    Does the get rows show more than one row in the output of the history?

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 626 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 374 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 284 Most Valuable Professional

Last 30 days Overall leaderboard