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
Super User
Super User

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
Helper III
Helper III

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,955)