cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
brodosi
Frequent Visitor

Change value for all cells in a column?

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

6 REPLIES 6
DamoBird365
Microsoft
Microsoft

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

NorthernChuck
Advocate II
Advocate II

NorthernChuck_0-1617810412130.png

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

brodosi
Frequent Visitor

@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

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 - which error is it feeding? Looking at those screenshots that's basically where I was headed......

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

 

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,670)