Here, I want to column compare columns and color code green if matches or red if it doesnt match.
for eg
A B C
Here I want to compare Column B& c
Here, I want to column compare columns and color code green if matches or red if it doesnt match.
for eg
A B C
Here I want to compare Column B& c
currentRow.ByField("B").value.Equals(currentRow.ByField("C").value)
currentRow.ByField("B/C which ever is needed")
cheers
What is ByField? Im not getting an option. Im getting Field(OF…)
Are you using for each row in excel?
I guess youa re using datatable…if yes then you wont get…you need to go with direct currentrow("ColumNmae").ToString
and for row index use the index property in for loop
cheers
No need to use the Read range activity and all.
=> Take the Use excel file activity and pass the excel file path.
=> Inside Use excel file activity insert the For each excel row activity. Output - CurrentRow
=> Inside For each Insert the If condition give the below condition
CurrentRow.ByField("B").Equals(CurrentRow.ByField("C").ToString)
=> In then and else give the format cells activity and give the CurrentRow in the Range.
→ In then block give the fill color as Green in the format cells activity.
→ In the else block give the fill color as red in the format cells activity.
Check the below workflow.
Hope it helps!!
Thankyou both @Anil_G @mkankatala
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.