How to change all cell values that do not equal "Complete" to "In Complete" using Studio X

Hello,

I want to change all cell values that do not equal “ Complete “ to “Not Complete.” I tried using and an “IF”, “ Write Cell” and “Replace” activities but it is not working. I am using Studio X.

Hi,

Can you try ForEachExcelRow activity instead of WriteCell as the following post?

Regards,

Hi @vielesh

Add a for each row in excel

Then use a if condition with
Not currentRow("ColumnName").ToString.Trim.Equals("Complete")

Inside then use a set variable

currentRow("ColumnName") = "In Complete"

Leave else blank

Cheers

Hi,
Thanks for the response. It’s still not working for me. Are you able to take a screen shot in studio x ?
Best

Hi,

Can you try the following sample?

Workflow

Result

image

NewBlankTask20221213-1.zip (62.6 KB)

Hope this helps you.

Regards,

Thanks so much it worked!

Best

1 Like